Exemplo n.º 1
0
<?php

require '../include/core/common.php';
require_once PATHS_INCLUDE . 'libraries/age_guess.lib.php';
$output['result'] = age_guess_result();
$output['hourglass'] = age_guess_hourglass();
$output['toplist'] = age_guess_toplist();
$output['statistics'] = age_guess_statistics();
$output['main'] = age_guess_image();
echo json_encode($output);
Exemplo n.º 2
0
<?php

require '../include/core/common.php';
require_once PATHS_LIBRARIES . 'age_guess.lib.php';
$ui_options['menu_path'] = array('traeffa', 'age_guess');
$ui_options['title'] = 'Gissa åldern på Hamsterpaj';
$ui_options['javascripts'][] = 'age_guess.js';
$ui_options['stylesheets'][] = 'age_guess.css';
ui_top($ui_options);
?>

<h1>Gissa åldern</h1> 

	<div id="age_guess_main">
		<?php 
echo age_guess_image();
?>
	</div>
	<div class="age_guess_panel">
		<div id="age_guess_result">
			<p>
				Hur poängräkningen fungerar kan du läsa om en bit ner.<br />
			</p>
		</div>
		<div id="age_guess_inputs">
			<h3>Hur gammal tror du personen till vänster är?</h3>
			<?php 
for ($i = 6; $i < 26; $i++) {
    echo '<div id="age_guess_input_' . $i . '">' . $i . '</div>' . "\n";
}
?>