Esempio n. 1
0
<?php

use app\guess\GuessManager;
use app\template\PageFooterBuilder;
use app\template\PageHeaderBuilder;
// Include the page top
require_once 'top.php';
?>
<div data-role="page" id="page-main">
    <?php 
PageHeaderBuilder::create()->build();
?>
    <div data-role="main" class="ui-content">

        <div data-role="main" class="ui-content" align="center">
            <img src="<?php 
echo $site_root;
?>
style/image/cake/cake.png" style="max-height: 220px; max-width: 100%;" />
        </div>

        <div data-role="main" class="ui-content" align="center">
            <p>
                <b>Noot: </b>Deze actie is inmiddels verlopen.<br />
                <br />
                Welkom bij de Mohicanen NJO van 2016.<br />
                <br />
                Weet jij hoe zwaar deze taart is?<br />
                Stuur jouw schatting in en maak kans op het winnen van deze taart.
            </p>
        </div>
Esempio n. 2
0
<?php

use app\template\PageFooterBuilder;
use app\template\PageHeaderBuilder;
// Include the page top
require_once 'top.php';
?>

<div data-role="page" id="page-about" data-unload="false">
    <?php 
PageHeaderBuilder::create(__('general', 'about'))->setBackButton('index.php')->build();
?>

    <div data-role="main" class="ui-content" align="center">
        <br />
        <img src="style/image/logo/logo_original.png" style="height: 120px;" />
        <br />
        <br />

        <p><b>Version <?php 
echo APP_VERSION_NAME;
?>
 <sup>(<?php 
echo APP_VERSION_CODE;
?>
)</sup></b></p>
        <br />
        <br />
        <p><?php 
echo __('pageAbout', 'developer');
?>
Esempio n. 3
0
<?php

use app\guess\Guess;
use app\guess\GuessManager;
use app\template\PageFooterBuilder;
use app\template\PageHeaderBuilder;
// Include the page top
require_once 'top.php';
?>
    <div data-role="page" id="page-my-guesses">
        <?php 
// Construct the builder
PageHeaderBuilder::create("Mijn schattingen")->setBackButton('index.php')->build();
?>
        <div data-role="main" class="ui-content">

            <p>Hier onder zie je een overzicht van de schattingen die je hebt ingestuurd via dit apparaat.</p>
            <br />

            <?php 
if (GuessManager::hasClientGuesses()) {
    ?>
                <table data-role="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>Naam</th>
                        <th>E-mail</th>
                        <th>Schatting</th>
                    </tr>
                    </thead>
                    <tbody>
Esempio n. 4
0
<?php

use app\guess\GuessManager;
use app\template\PageFooterBuilder;
use app\template\PageHeaderBuilder;
// Include the page top
require_once 'top.php';
?>
    <div data-role="page" id="page-preview">
        <?php 
PageHeaderBuilder::create('Overzicht')->setBackButton('index.php')->build(true);
?>
        <div data-role="main" class="ui-content">
            <p>Hier vindt je een live overzicht van alle ingestuurde schattingen.</p>
            <br />

            <center>
                <div id="guess-counter-container">
                    Totaal aantal schattingen: <div id="guess-counter">?</div>
                </div>
            </center>
            <br />

            <div id="guess-chart" style="height: 250px;"></div>
            <br />

            <p>Meest recente schattingen:</p>
            <br />

            <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>
Esempio n. 5
0
            <fieldset data-role="controlgroup" data-type="vertical" class="ui-shadow ui-corner-all">
                <a href="guess.php?guess_step=6" class="ui-btn ui-icon-home ui-btn-icon-left">Overzicht bekijken</a>
            </fieldset>
        </div>

        <?php 
    // Build the footer and sidebar
    PageFooterBuilder::create()->build();
    ?>
    </div>
    <?php 
} elseif ($guessStep == 6) {
    ?>
    <div data-role="page" id="page-guess-success" data-unload="false">
        <?php 
    PageHeaderBuilder::create("Schatting ingestuurd")->build();
    ?>

        <div data-role="main" class="ui-content">
            <p>
                Bedankt voor het insturen van je schatting! We nemen contact met je op via het opgegeven E-mail adres als je de gelukkige winnaar bent.<br />
                <br />
                Vindt je het interessant om live te zien wat andere bezoekers gestemd hebben? Bekijk dan het <i>overzicht</i>.
            </p><br />

            <fieldset data-role="controlgroup" data-type="vertical" class="ui-shadow ui-corner-all">
                <a href="overview.php" class="ui-btn ui-icon-home ui-btn-icon-left">Overzicht bekijken</a>
            </fieldset>
            <br />
            <br />
Esempio n. 6
0
<?php

use app\template\PageFooterBuilder;
use app\template\PageHeaderBuilder;
// Include the page top
require_once 'top.php';
?>
    <div data-role="page" id="page-screen" data-theme="b">
        <?php 
// Construct the builder
PageHeaderBuilder::create('Mohicanen NJO&nbsp;&nbsp;&middot;&nbsp;&nbsp;Hoe zwaar is de taart?')->build(true);
?>
        <div data-role="main" class="ui-content">

            <br />

            <fieldset class="ui-grid-a">
                <div class="ui-block-a" style="width: 60%;">
                    <div data-role="main" class="ui-content" align="center">
                        <img src="<?php 
echo $site_root;
?>
style/image/cake/cake.png" style="height: 210px;" />
                    </div>
                </div>
                <div class="ui-block-b" style="width: 40%;">
                    <div data-role="main" class="ui-content" align="center">
                        <img src="<?php 
echo $site_root;
?>
style/image/logo/logo_original.png" style="height: 210px;" />
Esempio n. 7
0
<?php

use app\guess\GuessManager;
use app\template\PageFooterBuilder;
use app\template\PageHeaderBuilder;
use app\template\PageSidebarBuilder;
// Include the page top
require_once 'top.php';
?>
<div data-role="page" id="page-status">
    <?php 
PageHeaderBuilder::create(__('pageAbout', 'applicationStatus'))->setBackButton('index.php')->build();
?>

    <div data-role="main" class="ui-content" align="center">
        <p><?php 
echo __('pageStatus', 'currentStatusShownBelow');
?>
</p><br />

        <table class="ui-responsive list-table">
            <tr>
                <td><?php 
echo __('general', 'database');
?>
</td>
                <td><span style="color: green;">Connected!</span></td>
            </tr>
            <tr>
                <td>Schattingen</td>
                <td><?php 
Esempio n. 8
0
/**
 * 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;
}