Exemplo n.º 1
0
        <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';
Exemplo n.º 2
0
if (isset($_GET['guess_step'])) {
    // Get the value
    $registerStepValue = $_GET['guess_step'];
    // Make sure the value is an integer, or show an error page instead
    if (!is_numeric($registerStepValue)) {
        showErrorPage();
    }
    // Set the register step
    $guessStep = (int) $registerStepValue;
}
// Make sure the user isn't guessing more than it's allowed to
if (!GuessManager::hasClientGuessesLeft() && $guessStep != 6) {
    showErrorPage('Je kunt geen schattingen meer insturen via dit apparaat. Je hebt het maximum van <b>' . GuessManager::getMaximumGuessesPerClient() . '</b> schattingen ingestuurd.', 'Rustig aan!');
}
if ($guessStep == 1) {
    if (!GuessManager::hasClientGuesses() || isset($_GET['ignoreWarning'])) {
        ?>
        <div data-role="page" id="page-guess" data-unload="false">
            <?php 
        PageHeaderBuilder::create("Schatting insturen")->setBackButton('index.php')->build();
        ?>

            <div data-role="main" class="ui-content">
                <p>
                    Vul hier onder uw voor- en achternaam in om mee te doen met het raden van het gewicht van de taart.<br />
                    <br />
                    <i><?php 
        echo __('general', 'note');
        ?>
: Om mee te kunnen doen moet je je echte naam invullen.</i>
                </p><br />