Beispiel #1
0
}
foreach ($types_used as $type => $no_papers) {
    $url = '../paper/type.php?module=' . $module . '&type=' . $type;
    echo "<div class=\"f2\"><div class=\"f_icon\"><a href=\"{$url}\"><img src=\"../artwork/yellow_folder.png\" alt=\"Folder\" /></a></div><div class=\"f_details\"><a href=\"{$url}\">" . Paper_utils::type_to_name($type, $string) . "</a><br /><span class=\"grey\">" . number_format($no_papers) . " " . strtolower($string['papers']) . "</span></div></div>\n";
}
echo "<br clear=\"left\">\n";
echo "<div class=\"f2\"><div class=\"f_icon\"><a href=\"../paper/search.php?module={$module}\"><img src=\"../artwork/search_48.png\" alt=\"Folder\" /></a></div><div class=\"f_details\"><a href=\"../paper/search.php?module={$module}\">" . $string['search'] . "</a><br /><span class=\"grey\">" . $string['forpapers'] . "</span></div></div>\n";
if ($module != 0) {
    // Don't want new papers created from the Unassigned folder.
    echo "<div class=\"f2\"><div class=\"f_icon\"><a href=\"\" onclick=\"newPaper({$module}); return false;\"><img src=\"../artwork/new_paper_48.png\" alt=\"" . $string['newpaper'] . "\" /></a></div><div class=\"f_details\"><a href=\"\" onclick=\"newPaper({$module}); return false;\">" . $string['newpaper'] . "</a></div></div>\n";
}
// Question bank section
echo "<br clear=\"left\">\n";
echo "<div class=\"subsect_table\" style=\"clear:both\"><div class=\"subsect_title\"><nobr>" . $string['questionbank'] . "</nobr></div><div class=\"subsect_hr\"><hr noshade=\"noshade\" /></div></div>\n";
$qbank = new QuestionBank($module, $module_details['moduleid'], $string, $notice, $mysqli);
$qbank->get_categories('all');
$stats = $qbank->get_stats('all');
$question_no = 0;
foreach ($stats as $stat_name => $stat_no) {
    $question_no += $stat_no;
}
echo "<div class=\"f2\"><div class=\"f_icon\"><a href=\"../question/list.php?type=all&module={$module}\"><img src=\"../artwork/yellow_folder.png\" alt=\"Folder\" /></a></div><div class=\"f_details\"><a href=\"../question/list.php?type=all&module={$module}\">" . $string['allquestions'] . "</a><br /><span class=\"grey\">" . number_format($question_no) . " " . strtolower($string['questions']) . "</span></div></div>\n";
$bank_types = array($string['bykeyword'] => '../question/bank.php?type=keyword&module=' . $module, $string['byquestiontype'] => '../question/bank.php?type=type&module=' . $module, $string['bystatus'] => '../question/bank.php?type=status&module=' . $module, $string['bybloom'] => '../question/bank.php?type=bloom&module=' . $module, $string['byperformance'] => '../question/bank.php?type=performance&module=' . $module);
if (strpos($module_details['checklist'], 'mapping') !== false) {
    $bank_types[$string['byobjective']] = '../question/bank.php?type=objective&module=' . $module;
}
foreach ($bank_types as $type_name => $url) {
    echo "<div class=\"f2\"><div class=\"f_icon\"><a href=\"{$url}\"><img src=\"../artwork/yellow_folder.png\" alt=\"Folder\" /></a></div><div class=\"f_details\"><a href=\"{$url}\">" . $type_name . "</a></div></div>\n";
}
echo "<br clear=\"left\">\n";
echo "<div class=\"f2\"><div class=\"f_icon\"><a href=\"../question/search.php?module={$module}\"><img src=\"../artwork/search_48.png\" alt=\"Folder\" /></a></div><div class=\"f_details\"><a href=\"../question/search.php?module={$module}\">" . $string['search'] . "</a><br /><span class=\"grey\">" . $string['forquestions'] . "</span></div></div>\n";
Beispiel #2
0
echo $module;
?>
"><?php 
echo $module_details['moduleid'];
?>
</a></div>
  <div class="page_title"><?php 
echo $string['questionbank'];
?>
: <span style="font-weight:normal"><?php 
echo $display_type;
?>
</span></div>
</div>
<?php 
$bank_types = $qbank->get_categories($type);
$stats = $qbank->get_stats($type);
if (count($stats) == 0) {
    echo $notice->info_strip($zero_warning, 100) . "\n</div>\n</body>\n</html>";
    exit;
}
if ($type != 'keyword') {
    echo "<br />\n";
}
if ($type == 'performance') {
    echo "<div class=\"subsect_table\"><div class=\"subsect_title\"><nobr>" . $string['bydifficulty'] . "</nobr></div><div class=\"subsect_hr\"><hr noshade=\"noshade\" /></div></div>\n";
}
$old_section = '';
foreach ($bank_types as $id => $type_name) {
    $grey_text = '';
    $url = 'list.php?type=' . $type . '&subtype=' . $id . '&module=' . $module;