[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.119.163.163: ~ $
<?php
/**
 * Frontend Students Quiz Attempts
 *
 * @package Tutor\Templates
 * @subpackage Dashboard
 * @author Themeum <support@themeum.com>
 * @link https://themeum.com
 * @since 1.4.0
 */

use TUTOR\Input;
use Tutor\Models\QuizModel;

if ( isset( $_GET['view_quiz_attempt_id'] ) ) {
	// Load single attempt details if ID provided.
	include __DIR__ . '/quiz-attempts/quiz-reviews.php';
	return;
}

$item_per_page = tutor_utils()->get_option( 'pagination_per_page' );
$current_page  = max( 1, Input::get( 'current_page', 1, Input::TYPE_INT ) );
$offset        = ( $current_page - 1 ) * $item_per_page;

// Filter params.
$course_filter = Input::get( 'course-id', '' );
$order_filter  = Input::get( 'order', 'DESC' );
$date_filter   = Input::get( 'date', '' );
?>

<div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mb-24 tutor-text-capitalize"><?php esc_html_e( 'Quiz Attempts', 'tutor' ); ?></div>
<?php
// Load filter template.
tutor_load_template_from_custom_path( tutor()->path . 'templates/dashboard/elements/filters.php' );

$course_id           = tutor_utils()->get_assigned_courses_ids_by_instructors();
$quiz_attempts       = QuizModel::get_quiz_attempts( $offset, $item_per_page, '', $course_filter, $date_filter, $order_filter, null, false, true );
$quiz_attempts_count = QuizModel::get_quiz_attempts( $offset, $item_per_page, '', $course_filter, $date_filter, $order_filter, null, true, true );

tutor_load_template_from_custom_path(
	tutor()->path . '/views/quiz/attempt-table.php',
	array(
		'attempt_list' => $quiz_attempts,
		'context'      => 'frontend-dashboard-students-attempts',
	)
);

$pagination_data = array(
	'total_items' => $quiz_attempts_count,
	'per_page'    => $item_per_page,
	'paged'       => $current_page,
);
if ( $quiz_attempts_count > $item_per_page ) {
	$pagination_template_frontend = tutor()->path . 'templates/dashboard/elements/pagination.php';
	tutor_load_template_from_custom_path( $pagination_template_frontend, $pagination_data );
}
?>

Filemanager

Name Type Size Permission Actions
announcements Folder 0755
assignments Folder 0755
elements Folder 0755
enrolled-courses Folder 0755
instructor Folder 0755
my-courses Folder 0755
my-quiz-attempts Folder 0755
notifications Folder 0755
question-answer Folder 0755
quiz-attempts Folder 0755
reviews Folder 0755
settings Folder 0755
withdraw-method-fields Folder 0755
announcements.php File 4.33 KB 0644
assignments.php File 4.98 KB 0644
create-course.php File 644 B 0644
dashboard.php File 16.61 KB 0644
enrolled-courses.php File 4.32 KB 0644
index.php File 459 B 0644
logged-in.php File 261 B 0644
my-courses.php File 13.89 KB 0644
my-profile.php File 2.07 KB 0644
my-quiz-attempts.php File 1.79 KB 0644
purchase_history.php File 10.45 KB 0644
question-answer.php File 4.59 KB 0644
quiz-attempts.php File 1.95 KB 0644
registration.php File 6.16 KB 0644
reviews.php File 3.84 KB 0644
settings.php File 775 B 0644
wishlist.php File 2.02 KB 0644
withdraw.php File 13.21 KB 0644