Exemple #1
0
            $text = JText::_("GURU_FREE_FOR_STUDENTS_AC_PRICE");
        } elseif ($step_access_courses == 0 && $selected_course > -1) {
            $text = JText::_("GURU_FREE_FOR_STUDENTS_SC_PRICE") . " " . $all_title;
        }
        $details .= '<b>' . JText::_("GURU_BUY_PRICE") . ': </b>' . $text . '<br/>';
    } else {
        if (isset($prices)) {
            if ($res["currencypos"] == '0') {
                $details .= '<b>' . JText::_("GURU_BUY_PRICE") . ': </b>' . JText::_($curent_currency) . " " . $prices . "<br/>";
            } else {
                $details .= '<b>' . JText::_("GURU_BUY_PRICE") . ': </b>' . $prices . " " . JText::_($curent_currency) . "<br/>";
            }
        }
    }
}
$res_progr = $guruModelguruProgram->getLessonReleaseType($program->id);
if ($res["course_lesson_release"] == '0') {
    if ($res_progr["course_type"] == 1 && $res_progr["lesson_release"] == 0) {
        $details .= '<br/><b>' . JText::_("GURU_RELEASED_DATE") . ': </b>' . JText::_("GURU_ALL_AT_ONCE");
    } elseif ($res_progr["course_type"] == 1 && $res_progr["lesson_release"] == 1) {
        $details .= '<br/><b>' . JText::_("GURU_RELEASED_DATE") . ': </b>' . JText::_("GURU_ONE_PER_DAY");
    } elseif ($res_progr["course_type"] == 1 && $res_progr["lesson_release"] == 2) {
        $details .= '<br/><b>' . JText::_("GURU_RELEASED_DATE") . ': </b>' . JText::_("GURU_ONE_PER_W");
    } elseif ($res_progr["course_type"] == 1 && $res_progr["lesson_release"] == 3) {
        $details .= '<br/><b>' . JText::_("GURU_RELEASED_DATE") . ': </b>' . JText::_("GURU_ONE_PER_M");
    }
}
if (isset($certificate_term) && $certificate_term != 0) {
    if ($certificate_term == 1) {
        $details .= '<br/><b>' . JText::_("GURU_CERTIFICATE_COL") . ': </b>' . JText::_("GURU_NO_CERT_GIVEN");
    } elseif ($certificate_term == 2) {