add_new_instructor.php
7 years ago
addons.php
7 years ago
answer.php
7 years ago
enable_disable_addons.php
7 years ago
get-pro.php
7 years ago
instructors.php
7 years ago
question_answer.php
7 years ago
quiz_attempts.php
7 years ago
status.php
7 years ago
students.php
7 years ago
tutor-pro-addons.php
7 years ago
uninstall.php
7 years ago
view_attempt.php
7 years ago
withdraw_requests.php
7 years ago
instructors.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | $sub_page = tutor_utils()->avalue_dot('sub_page', $_GET); |
| 4 | if ( ! empty($sub_page)){ |
| 5 | $include_file = tutor()->path."views/pages/{$sub_page}.php"; |
| 6 | if (file_exists($include_file)){ |
| 7 | include $include_file; |
| 8 | return; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | $instructorList = new \TUTOR\Instructors_List(); |
| 13 | $instructorList->prepare_items(); |
| 14 | ?> |
| 15 | |
| 16 | |
| 17 | <div class="wrap"> |
| 18 | <h1 class="wp-heading-inline"><?php _e('Instructors', 'tutor'); ?></h1> |
| 19 | <a href="<?php echo add_query_arg(array('sub_page' => 'add_new_instructor')); ?>" class="page-title-action"><i class="tutor-icon-plus"></i> |
| 20 | <?php _e('Add New Instructor', 'tutor'); |
| 21 | ?></a> |
| 22 | <hr class="wp-header-end"> |
| 23 | |
| 24 | <form id="students-filter" method="get"> |
| 25 | <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" /> |
| 26 | <?php |
| 27 | $instructorList->search_box(__('Search', 'tutor'), 'instructors'); |
| 28 | $instructorList->display(); ?> |
| 29 | </form> |
| 30 | </div> |