123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <script>
- $(document).on('ready', function () {
- $('select#session').on('change', function () {
- var sessionId = parseInt(this.value, 10),
- $selectCourse = $('select#course');
- $selectCourse.empty();
- $.get('{{ _p.web_main }}inc/ajax/course.ajax.php', {
- a: 'display_sessions_courses',
- session: sessionId
- }, function (courseList) {
- $('<option>', {
- value: 0,
- text: "{{ 'Select' | get_lang }}"
- }).appendTo($selectCourse);
- if (courseList.length > 0) {
- $.each(courseList, function (index, course) {
- $('<option>', {
- value: course.id,
- text: course.name
- }).appendTo($selectCourse);
- });
- }
- }, 'json');
- });
- });
- </script>
- {{ search_by_session_form }}
- <hr>
- {{ search_form }}
- {% if not certificate_students is empty %}
- <h2 class="page-header">{{ "GradebookListOfStudentsCertificates" | get_lang }}</h2>
- {% if not export_all_link is null %}
- <div class="actions">
- <a href="{{ export_all_link }}" class="btn btn-info">
- <em class="fa fa-check"></em> {{ 'ExportAllCertificatesToPDF' | get_lang }}
- </a>
- </div>
- {% endif %}
- <table class="table table-striped">
- <thead>
- <tr>
- <th>{{ 'Student' | get_lang }}</th>
- <th>{{ 'Sesion' | get_lang }}</th>
- <th>{{ 'Course' | get_lang }}</th>
- <th>{{ 'Date' | get_lang }}</th>
- <th>{{ 'Certificate' | get_lang }}</th>
- </tr>
- </thead>
- <tfoot>
- <tr>
- <th>{{ 'Student' | get_lang }}</th>
- <th>{{ 'Sesion' | get_lang }}</th>
- <th>{{ 'Course' | get_lang }}</th>
- <th>{{ 'Date' | get_lang }}</th>
- <th>{{ 'Certificate' | get_lang }}</th>
- </tr>
- </tfoot>
- <tbody>
- {% for student in certificate_students %}
- <tr>
- <td>{{ student.fullName }}</td>
- <td>{{ student.sessionName }}</td>
- <td>{{ student.courseName }}</td>
- <td>
- {% for certificate in student.certificates %}
- <p>{{ certificate.createdAt }}</p>
- {% endfor %}
- </td>
- <td>
- {% for certificate in student.certificates %}
- <a href="{{ _p.web }}certificates/index.php?id={{ certificate.id }}" class="btn btn-default">
- <em class="fa fa-floppy-o"></em> {{ 'Certificate' | get_lang }}
- </a>
- {% endfor %}
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- <p class="alert alert-info">{{ 'NoResults' | get_lang }}</p>
- {% endif %}
|