<div class="ui-block-b" style="width: 40%; padding-left: 20px;"> <table data-role="table" id="guess-table" data-mode="reflow" class="ui-body-d ui-shadow table-stripe ui-responsive" data-column-btn-theme="a" > <thead> <tr class="ui-bar-d"> <th>#</th> <th>Naam</th> <th>Schatting</th> </tr> </thead> <tbody></tbody> </table> </div> </fieldset> <br /> <br /> <center> <div id="guess-counter-container"> Totaal aantal schattingen: <div id="guess-counter">?</div> </div> </center> </div> <?php PageFooterBuilder::create()->build(true); ?> </div> <?php // Include the page bottom require_once 'bottom.php';
<fieldset data-role="controlgroup" data-type="vertical" class="ui-shadow ui-corner-all"> <?php if (!GuessManager::hasClientGuesses()) { ?> <a href="guess.php" class="ui-btn ui-icon-plus ui-btn-icon-left">Schatting insturen</a> <?php } elseif (GuessManager::hasClientGuessesLeft()) { ?> <a href="guess.php" class="ui-btn ui-icon-plus ui-btn-icon-left">Schatting voor een ander insturen</a> <?php } ?> <a href="overview.php" class="ui-btn ui-icon-info ui-btn-icon-left">Overzicht bekijken</a> <?php if (GuessManager::hasClientGuesses()) { ?> <a href="myguesses.php" class="ui-btn ui-icon-bullets ui-btn-icon-left">Mijn schattingen</a> <?php } ?> </fieldset> </div> <?php PageFooterBuilder::create()->build(); ?> </div> <?php // Include the page bottom require_once 'bottom.php';
/** * Show a regular error page. * * @param string|null $errorMsg [optional] A custom error message, or null to show the default. * @param string|null $errorTitle [optional] A custom error page title, or null to show the default. */ function showErrorPage($errorMsg = null, $errorTitle = null) { // Parse the title if ($errorTitle == null || strlen(trim($errorTitle)) == 0) { $errorTitle = __('error', 'oops'); } // Show an error page ?> <div data-role="page" id="page-main"> <?php PageHeaderBuilder::create($errorTitle)->setBackButton('index.php')->build(); if ($errorMsg === null) { ?> <div data-role="main" class="ui-content"> <p><?php echo __('error', 'errorOccurred'); ?> <br /><?php echo __('error', 'goBackTryAgain'); ?> </p><br /> <fieldset data-role="controlgroup" data-type="vertical"> <a href="index.php" data-ajax="false" data-rel="back" class="ui-btn ui-icon-back ui-btn-icon-left" data-direction="reverse"><?php echo __('navigation', 'goBack'); ?> </a> </fieldset> </div> <?php } else { ?> <div data-role="main" class="ui-content"> <p><?php echo $errorMsg; ?> </p><br /> <fieldset data-role="controlgroup" data-type="vertical" class="ui-shadow ui-corner-all"> <a href="index.php" data-ajax="false" data-rel="back" class="ui-btn ui-icon-back ui-btn-icon-left" data-direction="reverse"><?php echo __('navigation', 'goBack'); ?> </a> </fieldset> </div> <?php } PageFooterBuilder::create()->build(); ?> </div> <?php // Print the bottom of the page require 'bottom.php'; die; }