예제 #1
0
파일: gquiz.php 프로젝트: revcozmo/ProQuiz
    }
    ?>
        <!-- Setup End  -->
        <style>
            form li {
                float: none;
            }
        </style>
        <form name="pq_quiz_form" id="pq_quiz_form" action="<?php 
    $_SERVER['PHP_SELF'];
    ?>
?action=process_quiz" method="post" >
        <?php 
    if (!empty($_SESSION['PQ_QUIZ'])) {
        foreach ($_SESSION['PQ_QUIZ']['DATA'] as $key => $value) {
            getQuizModule($value, $key + 1);
        }
    }
    ?>
        
        
        
        
            <!-- Footer Buttons -->
            <?php 
    if (!empty($_SESSION['PQ_QUIZ'])) {
        include 'modules/buttons.php';
    }
    ?>
            <!-- End Footer Buttons  -->
            
예제 #2
0
function getAllActiveModules()
{
    $conn = getConnection();
    $list = array();
    $query = "SELECT * FROM modules WHERE activeflag=1 AND type=0 ORDER BY ID ASC";
    //echo $query;
    $result = mysql_query($query);
    while ($member = mysql_fetch_array($result)) {
        $temp = getQuizModule($member['ID']);
        array_push($list, $temp);
    }
    if (count($list) != 0) {
        return $list;
    }
    return NULL;
}