コード例 #1
0
            }
            $display_data[$row]['title'] = $performance['title'];
            if (!array_key_exists('screen', $performance)) {
                $performance['screen'] = '?';
            }
            $display_data[$row]['screen'] = $performance['screen'];
            if (!array_key_exists('calendar_year', $performance)) {
                $performance['calendar_year'] = '?';
            }
            $display_data[$row]['calendar_year'] = $performance['calendar_year'];
            if (isset($performance['performance'][1]['taken'])) {
                $display_data[$row]['taken'] = $performance['performance'][1]['taken'];
                $display_data[$row]['cohort'] = $performance['performance'][1]['cohort'];
                $display_data[$row]['parts'] = question_info::display_parts($performance['performance'], $q_type);
                $display_data[$row]['p'] = question_info::display_p($performance['performance'], $q_type);
                $display_data[$row]['d'] = question_info::display_d($performance['performance'], $q_type);
            }
        }
    }
}
$sortby = 'calendar_year';
$ordering = 'asc';
$display_data = array_csort($display_data, $sortby, $ordering);
$row = 0;
foreach ($display_data as $display_line) {
    if ($display_line['q_id'] == $q_id) {
        echo "<tr style=\"font-weight:bold\">";
    } else {
        echo "<tr>";
    }
    echo "<td><img src=\"../artwork/" . $display_line['icon'] . "\" width=\"16\" height=\"16\" alt=\"icon\" /></td>";
コード例 #2
0
ファイル: info.php プロジェクト: vinod-co/centa
    }
    
    function loadModule(moduleID) {
      window.opener.location = "../module/index.php?module=" + moduleID;
      window.close();
    }
    
    function openLongitudinal(questionID) {
      window.open("longitudinal_performance.php?q_id=" + questionID);
    }
  </script>
</head>

<body>

<?php 
echo question_info::full_question_information($q_id, $mysqli, $userObject, $string, $notice);
?>


<div style="text-align:center; padding-top:5px">
<form>
<input type="button" style="width:120px" name="ok" onclick="javascript:window.close();" value="<?php 
echo $string['close'];
?>
" />
</form>
</div>
</body>
</html>
コード例 #3
0
ファイル: questioninfo.class.php プロジェクト: vinod-co/centa
 /**
  * Format and output D values for a question.
  * @param array $perform_data
  * @param text $q_type
  * @return formatted value for D.
  */
 static function display_d($perform_data, $q_type)
 {
     $html = '';
     if (question_info::multi_part_question($q_type)) {
         foreach ($perform_data as $single_data) {
             $html .= question_info::d_warning(number_format($single_data['d'] / 100, 2)) . '<br />';
         }
     } else {
         $html = question_info::d_warning(number_format($perform_data[1]['d'] / 100, 2));
     }
     return $html;
 }
コード例 #4
0
ファイル: index.php プロジェクト: vinod-co/centa
    echo render_comments($comments, $string);
    ?>
      </div>

      <div id="performance" class="tab-area">
      <table style="font-size:90%; width:100%" class="data">
<?php 
    echo "<tr><th></th><th>" . $string['papername'] . "</th><th>" . $string['screenno'] . "</th><th>" . $string['examdate'] . "</th><th>" . $string['cohort'] . "</th><th></th><th>" . $string['p'] . "</th><th>" . $string['d'] . "</th></tr>\n";
    $performance_array = $question->id > -1 ? question_info::question_performance($question->id, $mysqli) : array();
    foreach ($performance_array as $paper => $performance) {
        echo "<tr><td><img src=\"../../artwork/" . $performance['icon'] . "\" width=\"16\" height=\"16\" /></td>";
        echo "<td>" . $performance['title'] . "</td>";
        echo "<td class=\"num\">" . $performance['screen'] . "</td>";
        $q_type = $question->get_type();
        if (isset($performance['performance'][1]['taken'])) {
            echo "<td>" . $performance['performance'][1]['taken'] . "</td><td class=\"num\">" . $performance['performance'][1]['cohort'] . "</td><td style=\"text-align:right\">" . question_info::display_parts($performance['performance'], $q_type) . "</td><td class=\"num\">" . question_info::display_p($performance['performance'], $q_type) . "</td><td class=\"num\">" . question_info::display_d($performance['performance'], $q_type) . "</td>";
        } else {
            echo "<td></td><td></td><td></td><td></td><td></td>";
        }
        echo "</tr>\n";
    }
    ?>
      </table>
      </div>

      <div id="mapping" class="tab-area" style="padding-left:10px; padding-right:10px">
<?php 
    echo render_objectives_mapping_form($mysqli, $paper_id, $string);
    ?>

      </div>