-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access to attendance sheets for parents #3093
Comments
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 13, 2020
Work In Progress Get all attendance sheet of a student. By now can access like admin by: /main/attendance/index2.php?action=all_attendance_sheet_list&student_id={STUDENT ID }&startDate=2020-07-09+00%3A00&endDate=2020-07-09+23%3A59&submit=&_qf__attendance_calendar_edit=
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 13, 2020
Work In Progress Add -1 week to initial end date
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 13, 2020
RH Can see attendance list
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 13, 2020
Add Start date and End date to filter options. Add fields optional in get_users_attendance_sheet and get_attendance_calendar
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 13, 2020
Add icon to navigate for all attendance sheet by student
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 14, 2020
Renaming name's function.
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 14, 2020
Renaming name's variable.
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 14, 2020
$w to $attendanceWork $v to $attendanceSheet $k to $attendanceData
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 15, 2020
Making flint happiness
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 15, 2020
In order not to modify the following code, I put in line 1090 Display::display_footer(); exit(); this way mystudent is not duplicated and it does not interfere with the code either.
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 15, 2020
Removed ** in display icon, all attendance list file. Restoring student_id in ink notebookteacher Display::display_footer(); exit(); this way mystudent is not duplicated and it does not interfere with the code either.
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 15, 2020
Apply flint diff
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 16, 2020
Moved student detail to down. Changed cols order Add Link to attendance courses and sessions Lang AttendanceFromTo be like "attendance from %s to %s"
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 16, 2020
Apply flint diff
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 16, 2020
Set absent to '-'. Teachers will be show in next commits
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 16, 2020
change order of table
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 16, 2020
275/5000 Added search for all student attendance to courses like RH. They are adjusted in ascending order with a link to the course or session. Changed functions in attendance.lib.php: get_users_attendance_sheet get_attendance_calendar Added getCoursesWithAttendance to allow SQL search and not overload for loops. By default it takes the last week
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 16, 2020
Added search for all student attendance to courses like RH. They are adjusted in ascending order with a link to the course or session. Changed functions in attendance.lib.php: get_users_attendance_sheet get_attendance_calendar Added getCoursesWithAttendance to allow SQL search and not overload for loops. By default it takes the last week
carlangas159
added a commit
to carlangas159/chamilo-lms
that referenced
this issue
Jul 16, 2020
* origin/3093_clean: Access to attendance sheets for parents chamilo#3093
ywarnier
added a commit
that referenced
this issue
Jul 21, 2020
Attentances: Access to attendance sheets for parents - refs #3093
ywarnier
added a commit
that referenced
this issue
Jul 21, 2020
ywarnier
added a commit
that referenced
this issue
Jul 21, 2020
I think we can close this already. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The DRH/parent role should have access, through his personal drop-down menu, to a page where he can see the list of students he follows, with a possibility to quickly see attendances (or failed attendances) in date order between all the courses/sessions followed by his "children".
Context:
The Human Resources Manager is a role that can be assigned to a user in Chamilo (the best way to progress here is to create a new user and immediately set him as DRH).
In other contexts (primary/secondary schools), we generally just change the name of this role to "Parent", because essentially what the role does is enable the user to follow the progress of another user on the platform, with practically no other useful permission.
To assign a "student" to a "parent", you create a student user, then go to the users list in the administration page, search for the DRH and click the "Assign users" icon (next to the admin star icon).
Once the student is assigned to the parent, the parent can enter the interface and see student progress in the "Reporting" tab. However, there is currently no clear/prominent way to access the attendance sheets of students.
The difficulty here is that, normally, a student can access his own attendance sheet per course. This means that there is no existing screen showing, for one given student, his/her attendances in all of his/her courses.
The goal of this issue is to create a new page, accessible as an action next to the student's reporting data in the reporting tab of the DRH, where we have a filter by date (by default the current week) and we see all the attendances by dates in a vertical table. Something like this:
To collect this information, it will be necessary to scan the c_attendance_calendar (and c_attendance_calendar_rel_group) table to get the dates, and the c_attendance_sheet table to get the attendances (or absence thereof) of students for these dates.
The attendance tables schema is roughly like this:
The most efficient way is probably to first scan the c_attendance_sheet table for the user_id we're looking for, then get the attendance_calendar_id which is a reference to the c_attendance_calendar, but c_attendance is the only table that has information on the course and the session.
However, doing it this way would prevent any practical filter on dates.
So it would have to be something like this in terms of query:
This could be filtered by dates (date1 and date2 above) and by user_id, and you would get the attendance_id, which is a link to the c_attendance.iid which gives you course and session to create the link:
Something like that...
In a first implementation, this could ignore the "group" notion in the c_attendance_calendar_rel_group table, but this will later have to be implemented too.
The important aspect to keep in mind here is that you should only show the results for a limited period of time by default (current week from Monday to Sunday, for example), and only of one single user at a time, otherwise the pages will start becoming slow to load.
I am not entirely sure (not considered yet) if it's a good idea to start with c_attendance_sheet, as maybe the user doesn't appear there if he/she is marked absent.
Would that be the case, then it might be better to get a list of all courses/sessions of the user and start from there, looking for c_attendance data only for the courses where the user is subscribed...
The text was updated successfully, but these errors were encountered: