Esempio n. 1
0
function afficherRechercheLieux($display_form = false)
{
    //	$chargement_id_troll = $_REQUEST[chargement_id_troll];
    $id_lieu = $_REQUEST[id_lieu];
    $nom_lieu = $_REQUEST[nom_lieu];
    $x_lieu = $_REQUEST[x_lieu];
    $y_lieu = $_REQUEST[y_lieu];
    $z_lieu = $_REQUEST[z_lieu];
    $limite = $_REQUEST[limite_lieu];
    if ($x_lieu == "" && $y_lieu == "" && $z_lieu == "") {
        $lesTrolls = selectDbTrolls($_SESSION[AuthTroll]);
        $x_lieu = $lesTrolls[1][x_troll];
        $y_lieu = $lesTrolls[1][y_troll];
        $z_lieu = $lesTrolls[1][z_troll];
    }
    if ($display_form) {
        afficherRechercheLieuxFormulaire($lieu_1, $lieu_2, $lieu_3, $x_lieu, $y_lieu, $z_lieu, $limite);
    }
    //if ($lieu_1 != "")
    afficherRechercheLieuxResultat($id_lieu, $nom_lieu, $x_lieu, $y_lieu, $z_lieu, $limite);
}
Esempio n. 2
0
 function recherche_lieu($val)
 {
     $s = split(",", $val);
     $x_lieu = $this->troll->get_x_troll();
     $y_lieu = $this->troll->get_y_troll();
     $z_lieu = $this->troll->get_z_troll();
     if (!is_numeric($s[0])) {
         $nom_lieu = $s[0];
     }
     if (count($s) == 4) {
         $x_lieu = $s[1];
         $y_lieu = $s[2];
         $z_lieu = $s[3];
     }
     $lesLieux = selectDbLieux($id_lieu, $nom_lieu, $x_lieu, $y_lieu, $z_lieu, $limite);
     afficherRechercheLieuxResultat($id_lieu, $nom_lieu, $x_lieu, $y_lieu, $z_lieu, $limite, $lesLieux);
 }