Beispiel #1
0
</th>
						<th width="15%"><?php 
echo JText::_('GURU_QUIZ_SCORE');
?>
</th>
						<th width="15%"><?php 
echo JText::_('GURU_QUIZ_SHOW_RESULTS');
?>
</th>
                    </tr>
                </thead>                
                <tbody>
                <?php 
for ($i = 0; $i < $n; $i++) {
    $value = $this->ads;
    $quiz_name = guruAdminModelguruQuiz::getQuizName($value[$i]->quiz_id);
    $score = $value[$i]->score_quiz;
    $score = explode("|", $score);
    $how_many_right_answers = $score[0];
    $number_of_questions = $score[1];
    $score = $how_many_right_answers . '/' . $number_of_questions;
    ?>
                    <tr colspan="4"> 
                         <td align="center"><?php 
    echo $quiz_name;
    ?>
</td>		
                         <td align="center"><?php 
    echo date("" . $format_date . "", strtotime($value[$i]->date_taken_quiz));
    ?>
</td>  
Beispiel #2
0
/*------------------------------------------------------------------------
# com_guru
# ------------------------------------------------------------------------
# author    iJoomla
# copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.ijoomla.com
# Technical Support:  Forum - http://www.ijoomla.com/forum/index/
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
$doc = JFactory::getDocument();
$doc->addStyleSheet("../components/com_guru/css/quiz.css");
$k = 0;
$n = count($this->ads);
$quiz_id = intval(JRequest::getVar("id", ""));
$quiz_name = guruAdminModelguruQuiz::getQuizName($quiz_id);
$quiz_name = '"' . $quiz_name . '"';
$total_students_quiz = $this->getNrStudentsQuiz();
$total_avg = $this->getTotalAvg();
$db = JFactory::getDBO();
$sql = "Select datetype FROM #__guru_config where id=1 ";
$db->setQuery($sql);
$format_date = $db->loadColumn();
$dateformat = $format_date[0];
?>

    <div id="editcell">
        <table class="table">
		 <tr>
			<span style="font-size:16px; padding-left:10px"><?php 
echo JText::_("GURU_ADMIN_QUIZ_STUD_RES") . " " . $quiz_name;
# com_guru
# ------------------------------------------------------------------------
# author    iJoomla
# copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.ijoomla.com
# Technical Support:  Forum - http://www.ijoomla.com/forum/index/
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
$doc = JFactory::getDocument();
$doc->addStyleSheet("../components/com_guru/css/quiz.css");
$k = 0;
$n = count($this->ads);
$quiz_id = intval(JRequest::getVar("id", ""));
$model_quizz = new guruAdminModelguruQuiz();
$quiz_name = $model_quizz->getQuizName($quiz_id);
$quiz_name = '"' . $quiz_name . '"';
$total_students_quiz = $this->getNrStudentsQuiz();
$total_avg = $this->getTotalAvg();
$db = JFactory::getDBO();
$sql = "Select datetype FROM #__guru_config where id=1 ";
$db->setQuery($sql);
$format_date = $db->loadColumn();
$dateformat = $format_date[0];
?>

    <div id="editcell">
        <table class="table">
		 <tr>
			<span style="font-size:16px; padding-left:10px"><?php 
echo JText::_("GURU_ADMIN_QUIZ_STUD_RES") . " " . $quiz_name;