コード例 #1
0
ファイル: view.php プロジェクト: JozefAB/neoacu
" alt="<?php 
    echo JText::_("GURU_REFRESH_PAGE");
    ?>
" title="<?php 
    echo JText::_("GURU_REFRESH_PAGE");
    ?>
"/>
                    </a>
                <?php 
}
?>
                <!-- stop refresh icon -->
                
                <!-- start next icon -->
                <?php 
$lessons_order = $guruModelguruTask->getLessonOrder($step->pid);
$key_of_lesson = array_search(@$step->nexts, $lessons_order);
if (isset($step->id)) {
    $isquizornot = $guruModelguruTask->getIsQuizOrNot($step->id);
    $studfailedquiz = $guruModelguruTask->studFailedQuiz($step->id);
}
if (isset($step->nexts) && $step->nexts != 0) {
    $chb_free_courses1 = $guruModelguruTask->getChbAccessCourses();
    $step_access_courses1 = $guruModelguruTask->getStepAccessCourses();
    if ($chb_free_courses1 == 1 && $step_access_courses1 == 2) {
        $step->nextaccess = 2;
    }
    if ($user->id <= 0 && $step->nextaccess != 2 || $user->id > 0 && !in_array($user->id, $author) && (accessToLesson($step->nexts, $course_id) === FALSE && $step->nextaccess != 2)) {
        ?>
                        <a href="#" onclick="openMyModal(400, 400, '<?php 
        echo JRoute::_("index.php?option=com_guru&view=guruEditplans&course_id=" . intval($catid) . "&tmpl=component");