?> "> <?php echo htmlspecialchars($game['name']); ?> </a> </td> <td class="hidden-xs"><?php echo (isset($game['members']) ? $game['members'] : '0') . ' Teilnehmer'; ?> </td> <td class="hidden-xs"><?php echo isset($game['starttime']) ? htmlspecialchars($game['starttime']) : 'Game nicht gestartet'; ?> </td> <td class="hidden-xs"><?php echo htmlspecialchars(FormatUtility::formatTime($game['duration'])); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <!-- panel --> </div> <!-- panel-group --> </div>
?> </span> <?php } ?> </div> <?php echo $this->_['tags'][$i]; ?> </td> <td> <?php if (is_null($question['rating'])) { echo "<span style='font-size:0;'>0</span>Keine Bewertung vorhanden"; } else { echo FormatUtility::formatNumber($question['rating'], 1) . " " . createStarsString($question['rating']); } ?> </td> <td> <?php echo htmlspecialchars(createDifficultyString($question['difficulty'], $question['difficultycount'])); ?> </td> <td style="text-align: center"> <?php echo htmlspecialchars($question['difficultycount']); ?> </td> <?php if ($GLOBALS['loggedin']) {
?> %"><?php echo $gotoCount; ?> </div> <?php } ?> </div> </td> <td><?php echo FormatUtility::formatSeconds($report['timePerQuestion']); ?> </td> <td><?php echo FormatUtility::formatSeconds($report['totalTimeInSec']); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <div class="panel panel-default" id="panel2">
echo '</tr>'; } ?> </tbody> </table> </div> </div> </div> <?php if ($user['superuser']) { ?> <div role="tabpanel" class="tab-pane" id="tab-system-report"> <div class="panel-body"> <p><b>System Status</b></p> <pre><code><?php echo date('Y-m-d H:i:s') . "\n" . "Attachment Memory Usage : " . FormatUtility::formatNumber($systemStatus->attachment_usage / 1000000.0, 2) . "M\n" . "Database Memory Usage : " . FormatUtility::formatNumber($systemStatus->database_usage / 1000000.0, 2) . "M\n" . "Login Attempts (24h) : " . $systemStatus->login_attempts . "\n"; ?> </code></pre> <p><b>Log Files</b></p> <ul> <?php foreach ($systemStatus->log_files as $log) { $log = htmlspecialchars($log); $filename = htmlspecialchars(APP_PATH . '/index.php?view=syslog&logfile=' . $log); echo "<li><a href=\"{$filename}\">{$log}</a></li>"; } ?> </ul> </div> </div> <?php
<?php use quizzenger\utilities\FormatUtility; $ratings = $this->_['ratings']; $comments = $this->_['comments']; $meanRating = $this->_['meanRating']; $question_id = $this->_['questionID']; $userIsModHere = $this->_['userismodhere']; $userHasAlreadyRated = $this->_['useralreadyrated']; if (empty($ratings)) { echo "Es wurden noch keine Kommentare oder Bewertungen abgegeben<br><br>"; } else { echo "Durchschnittliche Bewertung: [" . FormatUtility::formatNumber($meanRating, 1) . "] " . createStarsString($meanRating) . "<br><hr>"; ?> <ul class="list-group"><?php foreach ($ratings as $rating) { ?> <li class="list-group-item"> <?php echo createRatingString($rating, $userIsModHere); foreach ($comments as $comment) { echo "<ul>"; if ($comment['parent'] == $rating['id']) { echo '<li class="list-group-item">' . createRatingString($comment, $userIsModHere) . "</li>"; } echo "</ul>"; } if ($GLOBALS['loggedin']) { ?> <ul><div class="panel panel-default" id="discussioncomment<?php echo $rating['id'];