Exemplo n.º 1
0
function bodyCockpit($info)
{
    if ($_REQUEST['recherche'] != "") {
        engine_recherche($_REQUEST['recherche']);
    } else {
        afficher_vue2d($info);
    }
}
Exemplo n.º 2
0
<?php

require_once 'functions_vue.php';
require_once 'functions_display.php';
include_once 'functions_help.php';
require_once 'includes/troll.class.php';
require_once 'includes/ggc_groupe.class.php';
if ($_REQUEST["action"] == "get_map") {
    if ($_REQUEST[id_troll] == -1 && $_REQUEST[cX] == "" && $_REQUEST[cY] == "" && $_REQUEST[cZ] == "") {
        echo "Pas de vue. S&eacute;lectionnez un troll.<br>";
        exit;
    }
    $tab_cookies = initCookie();
    $info = initVue2d($tab_cookies);
    afficher_vue2d($info);
    ?>
 
 	<table class="mh_tdborder" width="40%" align="center">
		<tr class="mh_tdtitre">
			<td>
 				Trollometer :
		 		<input type='button' onClick="get_trollometer(true);" value="Afficher" name="b_trollometer" class="mh_form_submit">
				Taille en PA du troll-O-meter
				<?php 
    formulaire_listbox("max_pa", 0, LIMITE_MAX_TAILLE_PA, 1, $info[max_pa], "moinsplus", "", false, true, "onChange=\"get_trollometer(true);\"");
    ?>
			</td>
		</tr>
	</table>
<?php 
} elseif ($_REQUEST["action"] == "display_trollometer") {
Exemplo n.º 3
0
    // Si l'on est pas authentifié, on affiche la vue telle quelle
    ?>
            <table class='mh_tdborder' width='60%' align="center">
                <tr>
                    <td>
                        <table width='100%' cellspacing='0'>
                            <tr class='mh_tdtitre' align="center">
                                <td>
                                    <img src='/images/titre-vue.gif'>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <?php 
    $tab["t_trolls"] = $trolls;
    $tab["t_monstres"] = $streums;
    $tab["t_lieux"] = $lieux;
    $tab["t_tresors"] = $came;
    $tab["t_champignons"] = $champi;
    $tab["taille_vue"] = is_numeric($_REQUEST["taille_vue_publique"]) ? $_REQUEST["taille_vue_publique"] : $nCasesVue;
    $tab["max_pa"] = is_numeric($_REQUEST["max_pa_publique"]) ? $_REQUEST["max_pa_publique"] : 50;
    $tab["x_position"] = $Xmoi;
    $tab["y_position"] = $Ymoi;
    $tab["z_position"] = $Zmoi;
    afficher_vue2d($tab);
    include 'foot.php';
    $erreur = unlink("vues/" . $_REQUEST["id_troll"]);
    $erreur = unlink("vues/vue_tmp." . $_REQUEST["id_troll"] . ".txt");
}