Ejemplo n.º 1
0
<?php

require_once "global/menu_nabz.php";
$menu = display_menu();
echo $menu;
?>
<h2>Abreuver son lapin</h2>

<table>
	<tr><!-- First line --!>
		<td><!-- First column --!>
		<?php 
display_avatar_name();
display_skill($_SESSION['id_nabz']);
?>
		</td>
		<td id="td_secondcol"><!-- Second line --!>
		<?php 
if ($item_cat != NULL) {
    echo 'Pour abreuver votre lapin vous disposez de :';
} else {
    echo 'Vous ne disposez d\'aucun produit pour abreuver votre lapin :( ';
}
?>
		<?php 
//display each product as in the rabbit store
foreach ($item_cat as $value) {
    $infos_product = infos_product($value);
    echo '<table id=\'table_product_profile\'><tbody><tr>';
    echo '<td>';
    echo '<img src=' . PATH_IMAGE_STORE . $infos_product['product_image'] . '>' . '<br \\>';
Ejemplo n.º 2
0
<div id="nabz_summary">
	<?php 
//require_once("menu_nabz.php");
?>
	<?php 
require_once PATH_MODEL . 'nabz.php';
require_once "global/menu_nabz.php";
$infos_nabz = read_infos_nabz($_SESSION['id']);
if ($infos_nabz !== false) {
    $id_nabz = $infos_nabz['rabbit_id'];
    $nabz_name = $infos_nabz['rabbit_name'];
    $_SESSION['nabzname'] = $nabz_name;
    //extract skills of the nabz
    $skill_nabz = read_skill_nabz($id_nabz);
    $skill_angry = $skill_nabz['skill_angry'];
    $skill_thirst = $skill_nabz['skill_thirst'];
    $skill_health = $skill_nabz['skill_health'];
}
display_avatar_name();
?>
<br />
	<?php 
display_skill($id_nabz);
/*call display skill function */
?>
</div>