Lines Matching refs:data
273 * @param array $data The data from the handler() function
277 function render($mode, Doku_Renderer $renderer, $data) argument
283 if ($data["mode"] == "judge") {
284 $renderer->doc .= $this->render_judge($data);
285 } elseif ($data["mode"] == "scoreboard") {
286 $renderer->doc .= $this->render_scoreboard($data);
292 public function render_judge($data) argument
306 if (page_exists($data['problem_name'])) {
307 $page_answer_exist = page_exists($data['judge']);
308 …_filter(glob($conf['mediadir'] . "/" . str_replace("%3A", "/", urlencode($data['judge'])) . "/" . …
315 … <form onsubmit="return false;" name="judge-submit-' . $data['problem_name'] . '" method="post">';
316 if ($data['type'] === "output-only") {
320 …<input type="text" style="margin-left: 2px;" id="user-output-' . $data['problem_name'] . '" size="…
323 …Key(' . "'" . $data['problem_name'] . "','" . $_SERVER['REMOTE_USER'] . "','" . $data['language'] …
328 } elseif ($data['type'] === "test-case") {
331 …<input id="code-file-' . $data['problem_name'] . '"' . ' onclick="inputFileKey(' . "'" . $data['pr…
332 …<input class="button" onclick="inputFileKey(' . "'" . $data['problem_name'] . "'" . '); return fa…
333 …lePath(' . "'" . $data['problem_name'] . "'" . ');" style="display: none;" name="code-' . $data['p…
336 if ($data['language'] === "all") {
341 … <select style="width: auto;" id="language-' . $data['problem_name'] . '">
352 …Key(' . "'" . $data['problem_name'] . "','" . $_SERVER['REMOTE_USER'] . "','" . $data['language'] …
361 <span id="result-label-' . $data['problem_name'] . '"></span>
362 <span id="result-' . $data['problem_name'] . '"></span>
374 …>querySingle('SELECT COUNT(*) FROM submissions WHERE problem_name = "' . $data['problem_name'] . '…
377 <div class="judge" id="previous_submissions-' . $data['problem_name'] . '">
381 … <div class="judge" style="display: none;" id="previous_submissions-' . $data['problem_name'] . '">
387 … <div style="display: none;" id="previous_submissions-table-' . $data['problem_name'] . '">
393 if ($data['type'] === "test-case") {
401 <tbody id="result-row-' . $data['problem_name'] . '">';
403 …$html .= $crud->tableRender(array('problem_name' => $data["problem_name"], 'type' => $data["type"]…
413 <tbody id="result-row-' . $data['problem_name'] . '">
419 …$html .= $crud->tableRender(array('problem_name' => $data["problem_name"], 'type' => $data["type"]…
426 …="button" type="submit" onclick="resultRefresh(' . "'" . $data['problem_name'] . "','" . $data['ty…
435 if (page_exists($data['problem_name'])) {
436 if (auth_quickaclcheck($data['judge']) >= AUTH_EDIT) {
437 if ($data['type'] === "test-case") {
439 …ass="judge"><p><a target="_blank" href="?tab_files=files&do=media&ns=' . $data['judge'] . '">' . $…
441 …$html .= '<div class="judge"><p><a target="_blank" href="' . DOKU_URL . $data['judge'] . '">' . $t…
443 … $data['judge'] . '?do=edit">' . $this->getLang('btn_submit_testcase_short') . '</a> - <a target="…
448 …$html .= '<div class="judge"><p><a target="_blank" href="' . DOKU_URL . $data['judge'] . '">' . $t…
450 …$html .= '<div class="judge"><p><a target="_blank" href="' . DOKU_URL . $data['judge'] . "?do=edit…
455 …$html .= '<div class="judge"><p><a target="_blank" href="' . DOKU_URL . $data['problem_name'] . "?…
463 public function render_scoreboard($data) argument
475 <tbody id="scoreboard-row-' . implode(",",$data['questions']) . '">';
478 foreach ($data["questions"] as &$problem_name) {
488 …lass="button" type="submit" onclick="resultRefresh(' . "'" . implode(",",$data['questions']) . "',…