Implementing code to generate attendance report

If the user is admin then he can generate report for any user.