tools
4 years ago
add_new_instructor.php
4 years ago
addons.php
4 years ago
announcements.php
4 years ago
answer.php
4 years ago
enable_disable_addons.php
4 years ago
get-pro.php
5 years ago
instructors.php
4 years ago
question_answer.php
4 years ago
quiz_attempts.php
4 years ago
students.php
4 years ago
tools.php
4 years ago
tutor-pro-addons.php
4 years ago
uninstall.php
4 years ago
view_attempt.php
4 years ago
withdraw_requests.php
4 years ago
quiz_attempts.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package @TUTOR |
| 4 | * @since v.1.0.0 |
| 5 | */ |
| 6 | |
| 7 | if (isset($_GET['sub_page'])){ |
| 8 | $page = sanitize_text_field($_GET['sub_page']); |
| 9 | include_once tutor()->path."views/pages/".esc_attr($page).".php"; |
| 10 | return; |
| 11 | } |
| 12 | /** |
| 13 | * Quiz attempt filters added |
| 14 | * |
| 15 | * @since 1.9.5 |
| 16 | */ |
| 17 | $search_filter = isset( $_GET['search'] ) ? sanitize_text_field( $_GET['search'] ) : ''; |
| 18 | $course_filter = isset( $_GET['course-id'] ) ? sanitize_text_field( $_GET['course-id'] ) : ''; |
| 19 | $date_filter = isset( $_GET['date'] ) ? sanitize_text_field( $_GET['date'] ) : ''; |
| 20 | $order_filter = isset( $_GET['order'] ) ? sanitize_text_field( $_GET['order'] ) : "ASC"; |
| 21 | |
| 22 | $quiz_attempt = new \TUTOR\Quiz_Attempts_List(); |
| 23 | $quiz_attempt->prepare_items( $search_filter, $course_filter, $date_filter, $order_filter ); |
| 24 | |
| 25 | ?> |
| 26 | |
| 27 | <div class="wrap"> |
| 28 | <div> |
| 29 | <h2><?php _e('Quiz Attempts', 'tutor'); ?></h2> |
| 30 | </div> |
| 31 | |
| 32 | <form id="quiz_attempts-filter" method="get"> |
| 33 | <input type="hidden" name="page" value="<?php echo \TUTOR\Quiz_Attempts_List::QUIZ_ATTEMPT_PAGE; ?>" /> |
| 34 | <?php $quiz_attempt->display($enable_sorting_field_with_bulk_action = true); ?> |
| 35 | </form> |
| 36 | </div> |