示例#1
0
if (isset($_REQUEST['type'])) {
    switch ($_REQUEST['type']) {
        case 'key':
            if ($_REQUEST['do'] == 'add') {
                echo keyAdd();
            }
            if ($_REQUEST['do'] == 'view') {
                echo keyInfo($_REQUEST['key']);
            }
            break;
        case 'info':
            echo nl2br(serverInfo());
            break;
        case 'console':
            $cmd = '';
            if (isset($_REQUEST['cmd'])) {
                $cmd = $_REQUEST['cmd'];
            }
            echo console($cmd);
            break;
        default:
            # code...
            break;
    }
}
$contentFooter = "</div></main>";
echo $contentFooter;
leftMenu($arKeys);
footer();
endhead();
//html this end
示例#2
0
        $gradestyle = 'font-weight:bold;';
        if ($grade < 5.5) {
            $gradestyle .= 'color:c00;';
        }
        $remark_title = '';
        if ($remark && $remark !== '') {
            $remark_title = " title='{$remark}' style='background:white' class='pulse1'";
        }
        $snip = $_SESSION['snippets'];
        $out .= "<tr style='{$style}'><td align='right' style='width:3em' title='{$operator}'>{$score}</td>" . "<td><a href='cwb.php?stick_event_repo_id={$stick_event_repo_id}&quest={$quest}&snippets={$snip}'>" . "{$cand}</a>({$stick_event_repo_id})</td><th {$remark_title}>{$has_remark}</th><td style='{$gradestyle}'>{$grade}</td></tr>\n";
        $resultSet->moveNext();
        $left_idx++;
    }
    return $out;
}
$table = leftMenu($dbConn, $event, $quest, $stick_event_repo_id);
?>
<table style='border-collapse: collapse; font-family:verdana;font-size:10pt;' border='1' width="220px">
  <caption>Corrector: <?php 
echo $_SERVER['PHP_AUTH_USER'];
?>
</caption>
    <tr><th><?php 
echo $quest;
?>
</th><th>USB Stick</th><th>R</th><th>fin</th></tr>
    <?php 
echo $table;
?>
</table>