Ejemplo n.º 1
0
function vue_criteres()
{
    $zoom = $_REQUEST["zoom"];
    $taille_vue = $_REQUEST["taille_vue"];
    $trolls_disparus = $_REQUEST["trolls_disparus"];
    $anim = $_REQUEST["anim"];
    $options = $_SESSION["options"];
    echo "\n\t\t\t<input type='hidden' name='cX_direct' value='" . $_REQUEST["cX"] . "'>\n\t\t\t<input type='hidden' name='cY_direct' value='" . $_REQUEST["cY"] . "'>\n\t\t\t<input type='hidden' name='cZ_direct' value='" . $_REQUEST["cZ"] . "'>\n\t\t\t<input type='hidden' name='max_pa_direct' value='" . $_REQUEST["max_pa"] . "'>\n\t\t\t<input type='hidden' name='pcenter' value='" . $_REQUEST["pcenter"] . "'>\n\t\t\t<select name='id_troll_list' id='id_troll_list' onChange='document.form_cockpit.id_troll.value=this.value;get_map();'>\n\t\t";
    showListeCache($_REQUEST["id_troll"], true);
    echo "\n\t\t\t</select>\n\t\t\t<input type='hidden' value='" . $_REQUEST["id_troll"] . "' name='id_troll' id='id_troll'>\n\t\t";
    echo " Vue ";
    if (empty($taille_vue)) {
        $taille_vue = $options["vue_taille_option"];
    }
    formulaire_listbox("taille_vue", 0, LIMITE_MAX_VUE, 1, $taille_vue, "moinsplus", "", false, true, "onChange='get_map();'");
    afficheAideVueTailleVue();
    if (empty($zoom)) {
        $zoom = $options["vue_zoom_option"];
    }
    vue_afficher_zoom_select($zoom, "zoom", "onChange='get_map();'");
    if (empty($anim)) {
        $anim = $options["vue_animations_option"];
    }
    if (empty($trolls_disparus)) {
        $trolls_disparus = $options["vue_fantomes_option"];
    }
    echo " Animations ";
    echo "<select name='anim' onChange='get_map();'>";
    afficher_listbox_select("oui", $anim, "Oui");
    afficher_listbox_select("non", $anim, "Non");
    echo "</select>";
    afficheAideVueAnimation();
    echo " Trolls Disparus ";
    echo "<select name='trolls_disparus' onChange='get_map();'>";
    afficher_listbox_select("oui", $trolls_disparus, "Oui");
    afficher_listbox_select("non", $trolls_disparus, "Non");
    echo "</select>";
    afficheAideVueTrollsDisparus();
    $js_id = "id_troll=\"+document.form_cockpit.id_troll.value";
    echo " Rafraichir <input type='button' onClick='document.location.href=\"cockpit.php?refresh=s_public&{$js_id}' value='Auto' class='mh_form_submit' alt='Rafraichir la vue avec les scripts publics'> ";
    echo "<input type='button' onClick='document.location.href=\"cockpit.php?refresh=copie_colle&{$js_id}' value='Manuel' class='mh_form_submit'  alt='Rafraichir la vue avec un copi&eacute; coll&eacute;'>";
}
Ejemplo n.º 2
0
function afficherRechercheTresorsFormulaire($id_tresor, $nom_tresor, $x_tresor, $y_tresor, $z_tresor, $limite)
{
    $page = "engine_view.php";
    echo "<form name='rechercheForm' action='{$page}'>";
    echo "<input type='hidden' name='recherche' value='tresors'>";
    echo "<h2>Recherche de Trésors : </h2><br>";
    echo "<table>";
    echo "<tr><td>N° de Trésors</td>";
    echo "<td><input type='text' name='id_tresor' value='{$id_tresor}'></td></tr>";
    echo "<tr><td>Nom Trésor</td>";
    echo "<td><input type='text' name='nom_tresor' value='{$nom_tresor}'></td></tr>";
    echo "<tr><td>X=</td><td>";
    formulaire_listbox("x_tresor", -200, 200, 1, $x_tresor, "plusmoins", "yes");
    echo "<font size=1> obligatoire si vous renseignez y et z</font></td></tr>";
    echo "<tr><td>Y=</td><td>";
    formulaire_listbox("y_tresor", -200, 200, 1, $y_tresor, "plusmoins", "yes");
    echo "<font size=1> obligatoire si vous renseignez x et z</font></td></tr>";
    echo "<tr><td>Z=</td><td>";
    formulaire_listbox("z_tresor", 0, 200, 1, $z_tresor, "plusmoins", "yes");
    echo "<font size=1> obligatoire si vous renseignez x et y</font></td></tr>";
    echo "<tr><td>Limite +/-</td><td>";
    formulaire_listbox("limite_tresor", 0, 100, 1, $limite, "", "yes");
    echo "</td></tr>";
    echo "</table>";
    echo "<br>";
    echo "<input type='submit' value='Rechercher'>";
    echo "</form>";
}
Ejemplo n.º 3
0
function vue_criteres()
{
    ?>
      <select name='id_troll' id='id_troll'
       onChange='get_map();'>
       <?php 
    if ($_REQUEST[id_troll] != "") {
        showListeCache($_REQUEST[id_troll], true);
    } else {
        showListeCache("", true);
    }
    ?>
       </select>
  <?php 
    if ($zoom == "") {
        $zoom = 1;
    }
    echo "<select name='zoom' onChange='get_map();'>";
    afficher_listbox_select(5.0, $zoom, "toupeti");
    afficher_listbox_select(4.5, $zoom, "=====");
    afficher_listbox_select(4.0, $zoom, "====-");
    afficher_listbox_select(3.6, $zoom, "===--");
    afficher_listbox_select(3.2, $zoom, "==---");
    afficher_listbox_select(2.9, $zoom, "=----");
    afficher_listbox_select(2.6, $zoom, "peti");
    afficher_listbox_select(2.3, $zoom, "-----");
    afficher_listbox_select(2.0, $zoom, "----");
    afficher_listbox_select(1.6, $zoom, "---");
    afficher_listbox_select(1.4, $zoom, "--");
    afficher_listbox_select(1.2, $zoom, "-");
    afficher_listbox_select(1, $zoom, "Normal");
    afficher_listbox_select(0.9, $zoom, "+");
    afficher_listbox_select(0.8, $zoom, "++");
    afficher_listbox_select(0.7, $zoom, "+++");
    afficher_listbox_select(0.6, $zoom, "++++");
    afficher_listbox_select(0.5, $zoom, "BIG");
    echo "</select>";
    echo "Taille de la vue ";
    if ($taille_vue == "") {
        $taille_vue = 3;
    }
    formulaire_listbox("taille_vue", 0, LIMITE_MAX_VUE, 1, $taille_vue, "moinsplus", "", false, true, "onChange='get_map();'");
    echo "Animations";
    echo "<select name='anim' onChange='get_map();'>";
    afficher_listbox_select("oui", $anim, "Oui");
    afficher_listbox_select("non", $anim, "Non");
    echo "</select>";
    echo "Trolls Disparus";
    echo "<select name='trolls_disparus' onChange='get_map();'>";
    afficher_listbox_select("oui", $trolls_disparus, "Oui");
    afficher_listbox_select("non", $trolls_disparus, "Non");
    echo "</select>";
}
Ejemplo n.º 4
0
function affiche_liste_options()
{
    $options = new options($_SESSION[AuthTroll]);
    $display_mouches_option = $options->get_display_mouches_option();
    $display_noms_mouches_option = $options->get_display_noms_mouches_option();
    $refresh_dla_option = $options->get_refresh_dla_option();
    $vue_zoom_option = $options->get_vue_zoom_option();
    $vue_taille_option = $options->get_vue_taille_option();
    $vue_max_pa_option = $options->get_vue_max_pa_option();
    $vue_animations_option = $options->get_vue_animations_option();
    $vue_display_trollometer_option = $options->get_vue_display_trollometer_option();
    $vue_fantomes_option = $options->get_vue_fantomes_option();
    ?>
	<form action='options.php' method='POST'>
		<input type='hidden' value='upd' name='upd'>
		<table width='80%' cellspacing='0' class='mh_tdborder' align='center'>
		<?php 
    affiche_option('display_mouches_option', $display_mouches_option, "Affichage des mouches dans ma fiche RG");
    affiche_option('display_noms_mouches_option', $display_noms_mouches_option, "Affichage du nom de mes mouches dans ma fiche RG", "Il faut autoriser l'affichage des mouches pour activer cette option");
    affiche_option('refresh_dla_option', $refresh_dla_option, "Activer l'utilisation de scripts publics pour mettre à jour le ggc automatiquement.", "Outils pas encore en service");
    ?>
			<tr class='mh_tdpage' align="center">
				<td>Zoom dans la vue2d</td>
				<td><?php 
    vue_afficher_zoom_select($vue_zoom_option, "vue_zoom_option");
    ?>
</td>
				<td></td>
			</tr>

			<tr class='mh_tdpage' align="center">
				<td>Taille dans la vue2d</td>
				<td><?php 
    formulaire_listbox("vue_taille_option", 0, LIMITE_MAX_VUE, 1, $vue_taille_option, "moinsplus", "", false, true, "");
    ?>
</td>
				<td></td>
			</tr>
			<?php 
    affiche_option('vue_animations_option', $vue_animations_option, "Activer les animations dans la vue 2d", "Les animations ralentissent l'affichage des grandes vues");
    affiche_option('vue_display_trollometer_option', $vue_display_trollometer_option, "Afficher le trollometer en m&ecirc;me temps que la vue 2d", "Si vous ne regardez pas tout le temps le trollometer, merci de mettre non ici :-)");
    affiche_option('vue_fantomes_option', $vue_fantomes_option, "Afficher les trolls disparus", "");
    ?>
	
			<tr class='mh_tdpage' align="center">
				<td>Taille en PA du trollometer</td>
				<td><?php 
    formulaire_listbox("vue_max_pa_option", 0, LIMITE_MAX_TAILLE_PA, 1, $vue_max_pa_option, "moinsplus", "", false, true, "");
    ?>
</td>
				<td></td>
			</tr>
			<?php 
    ?>
		<tr class='mh_tdtitre'>
			<td colspan='3' align='center'>
				<input type='submit' value='Modifier' class='mh_form_submit'>
			</tr>
		</tr>
		</table>
	</form>

	<?php 
}
Ejemplo n.º 5
0
function afficher_liste_gtanieres()
{
    $lien = "/tanieres/tanieres.php?taniere=new";
    $button = "<input type='button' onClick='Javascript:document.location.href=\"{$lien}\"' value='Ajouter une tanière'";
    $button .= " class='mh_form_submit'>";
    $position = "Tris en distance en PA, Position de départ : <br>";
    $position .= "X=" . formulaire_listbox("x_troll", -150, 150, 1, $_REQUEST['x_troll'], "plusmoins", "yes", true, false);
    $position .= "Y=" . formulaire_listbox("y_troll", -150, 150, 1, $_REQUEST['y_troll'], "plusmoins", "yes", true, false);
    $position .= "Z=" . formulaire_listbox("z_troll", 0, 100, 1, $_REQUEST['z_troll'], "plusmoins", "yes", true, false);
    $lien_base = "/tanieres/tanieres.php?taniere=liste&nb_ppage={$nb_ppage}&criteres=";
    $position .= " <input type='submit' value='Trier' class='mh_form_submit'>";
    echo "<form name='trieForm' action='{$lien_base}' method='POST'>";
    afficher_titre_tableau("Les Grandes Tanières", $button . "<br><br>" . $position);
    echo "</form>";
    $lesGTanieres = selectDbGrandesTanieres();
    $debut = $_REQUEST['debut'];
    $order = $_REQUEST['order'];
    $criteres = $_REQUEST['criteres'];
    $nb_ppage = $_REQUEST['nb_ppage'];
    if (!isset($debut)) {
        $debut = 0;
    }
    if ($criteres == "") {
        $criteres = 'nom_gtaniere';
    }
    if ($nb_ppage == "") {
        $nb_ppage = 10;
    }
    $lien_base = "/tanieres/tanieres.php?taniere=liste&";
    $lien_base .= "x_troll=" . $_REQUEST['x_troll'];
    $lien_base .= "&y_troll=" . $_REQUEST['y_troll'];
    $lien_base .= "&z_troll=" . $_REQUEST['z_troll'];
    $lien_base .= "&criteres=";
    ?>
  <table class='mh_tdborder' width='60%' align='center'>
    <tr>
      <td>
      <table width='100%' cellspacing='0'>
        <tr class='mh_tdtitre' align="center">
        <td>
  Nombre de tanières par page :
  <a href='<?php 
    echo $lien_base . $criteres . "&order=" . $order . "&nb_ppage=10";
    ?>
'>10</a>
  <a href='<?php 
    echo $lien_base . $criteres . "&order=" . $order . "&nb_ppage=50";
    ?>
'>50</a>
  <a href='<?php 
    echo $lien_base . $criteres . "&order=" . $order . "&nb_ppage=100";
    ?>
'>100</a>
  <a href='<?php 
    echo $lien_base . $criteres . "&order=" . $order . "&nb_ppage=200";
    ?>
'>200</a>
  <a href='<?php 
    echo $lien_base . $criteres . "&order=" . $order . "&nb_ppage=500";
    ?>
'>500</a>
	
	<table width='100%'  class='mh_tdpage' cellpadding=2>

	<?php 
    $lien_base = "/tanieres/tanieres.php?taniere=liste&nb_ppage={$nb_ppage}&criteres=";
    $x_troll = $_REQUEST['x_troll'];
    $y_troll = $_REQUEST['y_troll'];
    $z_troll = $_REQUEST['z_troll'];
    $nbtotal = selectDbGrandesTanieresCount();
    $lesGTanieres = selectDbGrandesTanieres("", $debut, $nb_ppage, $criteres, $order, $x_troll, $y_troll, $z_troll);
    $nbGTanieres = count($lesGTanieres);
    if (is_numeric($x_troll) && is_numeric($y_troll) && is_numeric($z_troll)) {
        usort($lesGTanieres, "callbackSortDistancePa");
    }
    $criteres .= "&x_troll=" . $x_troll;
    $criteres .= "&y_troll=" . $y_troll;
    $criteres .= "&z_troll=" . $z_troll;
    $barre_nav = construct_barre_navigation($debut, $nbGTanieres, $nbtotal, $cfg_nbres_ppage, $nb_ppage, $lien_base, $criteres, $order);
    $i = 0;
    $j = 0;
    while (list($key, $res) = each($lesGTanieres)) {
        $j++;
        if ($j < $debut) {
            next;
        }
        if ($j > $nb_ppage) {
            break;
        }
        if ($i % 10 == 0) {
            afficher_entete_liste_gtaniere($lien_base, $criteres, $order, $x_troll, $y_troll, $z_troll);
        }
        $res = $lesGTanieres[$i];
        afficher_ligne_gtaniere($res, $x_troll, $y_troll, $z_troll);
        $i++;
    }
    ?>
	</table>
 <?php 
    echo $barre_nav;
    ?>
   </td>
   </tr>
   </table>
   </tr>
   </td>
  </table><br>

	<?php 
}
Ejemplo n.º 6
0
function afficherOptionsVue2d($info)
{
    $cX = $info['x_position'];
    $cY = $info['y_position'];
    $cZ = $info['z_position'];
    $taille_vue = $info['taille_vue'];
    $max_pa = $info['max_pa'];
    $mytroll = $info['myTroll'];
    $id_troll = $mytroll['id_troll'];
    $zoom = $_REQUEST['zoom'];
    if ($zoom <= 0) {
        $zoom = 1;
    }
    $anim = $info['anim'];
    $trolls_disparus = $info['trolls_disparus'];
    $taille_niveau_z = $info['taille_niveau_z'];
    ?>
<script language='Javascript'>
	function control_id_script_public(){
		myForm = document.select_troll;
		id_troll = myForm.id_troll.value;
		x = myForm.cX.value;
		y = myForm.cY.value;
		z = myForm.cZ.value;
		go_submit = false;

		if (document.getElementById('refresh_ss').checked == true) {
			if (id_troll == "") {
				alert('Vous devez s&eacute;lectionner un Troll Relais&Mago');
			} else {
				go_submit = true;
			}
		} else if (document.getElementById('refresh').checked == true) {
			if ( (x != "") && (y != "") && (z != "") )
				go_submit = true;
			else
				alert('Positions invalides');
		} else {
			go_submit = true;
		}

		if (go_submit == true)
			myForm.submit();
	}
</script>

	<table width='100%' cellspacing='0'>
		<tr class='mh_tdtitre'>
			<td align='center' colspan='3'>Options Vue2d</td>
		</tr>
		<tr class='mh_tdpage'>
			<td>
				<form name='select_troll' method='GET' action='cockpit.php'>
				<input type='hidden' name='vue_refresh' value='oui'>
				<input type='hidden' name='id_troll' size=6 value='<?php 
    echo $id_troll;
    ?>
'>
			</td>
		</tr>

	<?php 
    /*--------------------*/
    echo "<tr><td valign='top'>";
    echo "Centrer sur ";
    echo "</td><td>";
    echo "<input type='text' value='{$cX}' name='cX' size='2' onChange='javascript:clear_id_troll()'>";
    echo "<input type='text' value='{$cY}' name='cY' size='2' onChange='javascript:clear_id_troll()'>";
    echo "<input type='text' value='{$cZ}' name='cZ' size='2' onChange='javascript:clear_id_troll()'>";
    echo "</td><td>";
    afficheAideVueCenterSur();
    echo "</td></tr>";
    /*--------------------*/
    echo "<tr><td>Taille de la vue </td><td>";
    formulaire_listbox("taille_vue", 0, LIMITE_MAX_VUE, 1, $taille_vue, "moinsplus", "", false);
    echo "</td><td>";
    afficheAideVueTailleVue();
    echo "</td></tr>";
    /*--------------------*/
    echo "<tr><td>Limite verticale</td>";
    echo "<td><input type=text name='taille_niveau_z' size=2 value='{$taille_niveau_z}'></td>";
    echo "<td>";
    afficheAideVueLimiteVerticale();
    echo "</td></tr>";
    /*--------------------*/
    echo "<tr><td> Zoom </td>";
    echo "<td><select name='zoom'>";
    // Prototype : afficher_listbox_select($val, $val_to_select,$display="");
    afficher_listbox_select(5.0, $zoom, "toupeti");
    afficher_listbox_select(4.5, $zoom, "=====");
    afficher_listbox_select(4.0, $zoom, "====-");
    afficher_listbox_select(3.6, $zoom, "===--");
    afficher_listbox_select(3.2, $zoom, "==---");
    afficher_listbox_select(2.9, $zoom, "=----");
    afficher_listbox_select(2.6, $zoom, "peti");
    afficher_listbox_select(2.3, $zoom, "-----");
    afficher_listbox_select(2.0, $zoom, "----");
    afficher_listbox_select(1.6, $zoom, "---");
    afficher_listbox_select(1.4, $zoom, "--");
    afficher_listbox_select(1.2, $zoom, "-");
    afficher_listbox_select(1, $zoom, "Normal");
    afficher_listbox_select(0.9, $zoom, "+");
    afficher_listbox_select(0.8, $zoom, "++");
    afficher_listbox_select(0.7, $zoom, "+++");
    afficher_listbox_select(0.6, $zoom, "++++");
    afficher_listbox_select(0.5, $zoom, "BIG");
    echo "</select></td><td>";
    afficheAideVueZoom();
    echo "</td></tr>";
    /*--------------------*/
    echo "<tr><td>Taille en PA du <br>troll-O-meter </td><td>";
    formulaire_listbox("max_pa", 0, LIMITE_MAX_TAILLE_PA, 1, $max_pa, "moinsplus", "", false);
    echo "</td><td>";
    afficheAideVueTrollometer();
    echo "</td></tr>";
    /*--------------------*/
    echo "<tr><td>Animations </td>";
    echo "<td> <input type='radio' name='anim' value='oui'";
    if ($anim == "oui") {
        echo "CHECKED";
    }
    echo "> oui <input type='radio' name='anim' value='non'";
    if ($anim == "non") {
        echo "CHECKED";
    }
    echo "> non";
    echo "</td><td>";
    afficheAideVueAnimation();
    echo "</td></tr>";
    /*--------------------*/
    echo "<tr><td>Trolls disparus </td>";
    echo "<td nowrap> <input type='radio' name='trolls_disparus' value='oui'";
    if ($trolls_disparus == "oui") {
        echo "checked";
    }
    echo "> afficher <input type='radio' name='trolls_disparus' value='non'";
    if ($trolls_disparus == "non") {
        echo "checked";
    }
    echo "> cacher";
    echo "</td><td>";
    afficheAideVueTrollsDisparus();
    echo "</td></tr>";
    /*--------------------*/
    echo "<tr><td valign='top' nowrap>";
    echo "Rafraîchir la vue</td>";
    echo "<td valign='top' nowrap>";
    echo "<input type='radio' id='refresh' name='refresh' value='non' checked>";
    echo "non <br>";
    echo "<input type='radio' id='refresh_cc' name='refresh' value='copie_colle'>";
    echo "copier/coller <br>";
    echo "<input type='radio' id='refresh_ss' name='refresh' value='s_public' >";
    echo "scripts publics <br>";
    echo "</td>";
    echo "<td valign='top' nowrap>";
    echo "<br><br>";
    afficheAideVueCopierColler();
    informationImportanteScriptsPublics($id_troll);
    echo "<br>";
    afficheAideVueRefreshPublic();
    vue2d_afficher_utilisation_scripts_publics($id_troll);
    echo "</td>";
    echo "</tr>";
    ?>
		<tr>
			<td colspan='3' align='center'>
				<input type='button' name='button' class='mh_form_submit' value='On y va !' onClick='javascript:control_id_script_public()'> &nbsp;
				<input type='reset' name='reset' class='mh_form_submit' value='Par d&eacute;faut'>
			</td>
			<td>&nbsp;</td>
		</tr>
	</table>
  </form>
<?php 
}
Ejemplo n.º 7
0
function afficherCockpitRecherchator()
{
    ?>
	<form name='cockpitRecherchator' method='POST' action='cockpit.php' >
	<input type='hidden' name='old_recherche'>

	<table width='100%' cellspacing='0'>
		<tr class='mh_tdtitre'>
			<td align='center'>Recherchator</td>
		</tr>
		<tr class='mh_tdpage'>
			<td>
				<select name='recherche' onChange="Javascript:change_type();">
				<?php 
    afficher_listbox_select("trolls", $_REQUEST['recherche'], "Trolls");
    afficher_listbox_select("monstres", $_REQUEST['recherche'], "Monstres");
    afficher_listbox_select("lieux", $_REQUEST['recherche'], "Lieux");
    ?>
				</select>

				<div name="conteneur" class="conteneur">
					<div id="trolls" name="trolls" style='display:block'>
					<select name='trolls_rm_num' id='trolls_rm_num'
					onChange='change_infos_RM(false)'>
					<?php 
    if ($_REQUEST[id_troll] != "") {
        $hidden = showListeCache($_REQUEST[id_troll], true);
    } else {
        if ($_REQUEST[trolls_rm_num] != "") {
            $hidden = showListeCache($_REQUEST[trolls_rm_num], true);
        } else {
            $hidden = showListeCache($_SESSION[AuthTroll], true);
        }
    }
    ?>
					</select>
					<a id='link_rg' href=''><img src='images/puce_rg.gif' title='Accès à la fiche RG' border=0></a>&nbsp;
					<a id='link_mh' href='' target='_blank'><img src='images/puce_mh.gif' title='Accès au profil MH' border=0></a>
					<a id='link_gps' href=''><img src='images/puce_gps.gif' title='Accès au GPS centré sur ce troll' border=0></a>
					<?php 
    echo $hidden;
    ?>
					<?php 
    $act = "onClick=\"JavaScript:document.getElementById('troll_avatar').style.display =";
    $act .= "swapSpan('trolls_plus','img_trolls_plus','swap_trolls_plus')\"";
    echo "<input type='hidden' id='swap_trolls_plus' name='swap_reglage' value='visible'>";
    if ($_REQUEST['recherche'] != "") {
        $id_troll_recherche = $_REQUEST[id_troll];
    }
    ?>
					<table>
						<tr>
							<td nowrap>N° <input type='textbox' name='id_troll' size='6' value='<?php 
    echo $id_troll_recherche;
    ?>
'></td>
							<td nowrap>Nom <input type='textbox' name='nom_troll' size='6' value='<?php 
    echo $_REQUEST[nom_troll];
    ?>
'></td>
							<td colspan='2' nowrap>Guilde <input type='textbox' name='nom_guilde' size='6' value='<?php 
    echo $_REQUEST[nom_guilde];
    ?>
'>
								<img id='img_trolls_plus' src='images/triangle-bleu.gif' <?php 
    echo $act;
    ?>
 > plus d'options
							</td>
						</tr>
					</table>
				</div>

				<div id="troll_avatar" name="troll_avatar" style='display:block' align='center'>
    			<table  border='0' class='mh_tdborder' cellpadding='0' cellspacing='1' align='center'>
				    <tr class='mh_tdtitre'>
							<td valign='bottom' align='center'>
				    		<font color=black>
									<img id='avatar' src=''>
								</font>
					    </td>
						</tr>
			    </table>

				</div>

				<div id="trolls_plus" name="trolls_plus" style='display: none'>
					<table width='100%'>
						<tr>
							<td nowrap>Niveau 
								<input type='textbox' name='niveau_troll' size='2' value='<?php 
    echo $_REQUEST[niveau_troll];
    ?>
'>
							</td>
							<td colspan='3' nowrap>Race 
								<select name='race_troll'>
								<?php 
    afficher_listbox_select("", $_REQUEST['race_troll']);
    afficher_listbox_select("Durakuir", $_REQUEST['race_troll']);
    afficher_listbox_select("Kastar", $_REQUEST['race_troll']);
    afficher_listbox_select("Skrim", $_REQUEST['race_troll']);
    afficher_listbox_select("Tomawak", $_REQUEST['race_troll']);
    ?>
							  </select>
							</td>
						</tr>
						<tr>
							<td colspan='4'>
	
								<table width='100%'>
									<tr valign='top'>
									  <td nowrap>Tk </td><td nowrap>
		<?php 
    afficher_radio("is_tk_troll", "oui", $_REQUEST['is_tk_troll'], "oui");
    ?>
<br>
		<?php 
    afficher_radio("is_tk_troll", "", $_REQUEST['is_tk_troll'], "n'importe");
    ?>

  </td><td nowrap>Wanted  </td><td nowrap>
		<?php 
    afficher_radio("is_wanted_troll", "oui", $_REQUEST['is_wanted_troll'], "oui");
    ?>
<br>
		<?php 
    afficher_radio("is_wanted_troll", "", $_REQUEST['is_wanted_troll'], "n'importe");
    ?>

  </td><td nowrap>Chatié  </td><td nowrap>
		<?php 
    afficher_radio("is_venge_troll", "oui", $_REQUEST['is_venge_troll'], "oui");
    ?>
 <br>
		<?php 
    afficher_radio("is_venge_troll", "", $_REQUEST['is_venge_troll'], "n'importe");
    ?>
	
	</td></tr>
	</table>

	</tr><tr>

  <td colspan='3' nowrap>Diplo Troll 
  <select name='statut_troll'>
  	<?php 
    afficher_listbox_select("", $_REQUEST['statut_troll']);
    afficher_listbox_select("neutre", $_REQUEST['statut_troll']);
    afficher_listbox_select("tk", $_REQUEST['statut_troll']);
    afficher_listbox_select("ennemie", $_REQUEST['statut_troll']);
    afficher_listbox_select("amie", $_REQUEST['statut_troll']);
    afficher_listbox_select("alliee", $_REQUEST['statut_troll'], "alliée");
    ?>
  </select>

  Diplo Guilde 
  <select name='statut_guilde'>
  <?php 
    afficher_listbox_select("", $_REQUEST['statut_guilde']);
    afficher_listbox_select("neutre", $_REQUEST['statut_guilde']);
    afficher_listbox_select("tk", $_REQUEST['statut_guilde']);
    afficher_listbox_select("ennemie", $_REQUEST['statut_guilde']);
    afficher_listbox_select("amie", $_REQUEST['statut_guilde']);
    afficher_listbox_select("alliee", $_REQUEST['statut_guilde'], "alliée");
    ?>
  </select></td>

	</tr><tr>

 	<td colspan='4' nowrap>Position X/Y/Z
	<?php 
    formulaire_listbox("x_troll", -150, 150, 1, $_REQUEST['x_troll'], "plusmoins", "yes");
    formulaire_listbox("y_troll", -150, 150, 1, $_REQUEST['y_troll'], "plusmoins", "yes");
    formulaire_listbox("z_troll", 0, 100, 1, $_REQUEST['z_troll'], "plusmoins", "yes");
    ?>
	</td></tr>
	</table>	
	</div>

	<div id="monstres" name="monstres" style='display: none'> 
	<?php 
    $act = "onClick=\"JavaScript:swapSpan('monstres_plus','img_monstres_plus','swap_monstres_plus')\"";
    echo "<input type='hidden' id='swap_monstres_plus' name='swap_monstres_plus' value='visible'>";
    ?>

		<table>
			<tr>
				<td nowrap>N° <input type='textbox' id='id_monstre' name='id_monstre' size='6' value='<?php 
    echo $_REQUEST[id_monstre];
    ?>
'>
				</td>
				<td nowrap>Nom <input type='textbox' id='nom_monstre' name='nom_monstre' size='6' value='<?php 
    echo $_REQUEST[nom_monstre];
    ?>
'>
				</td>
				
				<td>
					<img id='img_monstres_plus' src='images/triangle-bleu.gif' <?php 
    echo $act;
    ?>
 > plus d'options
				</td>
			</tr>
		</table>
	</div>
	<div id="monstres_plus" name="monstres_plus" style='display: none'>
		<table>
			<tr>
		 		<td colspan='2' nowrap>Position X/Y/Z
				<?php 
    formulaire_listbox("x_monstre", -150, 150, 1, $_REQUEST['x_monstre'], "plusmoins", "yes");
    formulaire_listbox("y_monstre", -150, 150, 1, $_REQUEST['y_monstre'], "plusmoins", "yes");
    formulaire_listbox("z_monstre", 0, 100, 1, $_REQUEST['z_monstre'], "plusmoins", "yes");
    ?>
		  </td></tr>
			<tr><td>
			  Niveau du monstre (+/- 1) :  
				<?php 
    formulaire_listbox("niveau_monstre", 0, 40, 1, $_REQUEST[niveau_monstre], "moinsplus", "yes");
    ?>
				</td></tr>
			<tr><td>
			  Race : 
				<?php 
    echo "<select name='race_monstre'>";
    afficher_listbox_race_bestiaire_select($_REQUEST[race_monstre], true);
    echo "</select>";
    ?>
				</td></tr>
			  <tr><td>
			  Famille : 
				<?php 
    echo "<select name='famille_monstre'>";
    afficher_listbox_famille_bestiaire_select($_REQUEST[famille_monstre], true);
    echo "</select>";
    ?>
				</td></tr>
		</table>
	</div>

	<div id="lieux" name="lieux" style='display: none'>
	<?php 
    $act = "onClick=\"JavaScript:swapSpan('lieux_plus','img_lieux_plus','swap_lieux_plus')\"";
    echo "<input type='hidden' id='swap_lieux_plus' name='swap_lieux_plus' value='visible'>";
    ?>

	<table>
	<tr>
	<td nowrap>Nom <input type='textbox' name='nom_lieu' size='6' value='<?php 
    echo $_REQUEST[nom_lieu];
    ?>
'></td>
	<td nowrap>
		<img id='img_lieux_plus' src='images/triangle-bleu.gif' <?php 
    echo $act;
    ?>
 > plus d'options
	</td>
	</tr>
	</table>
	</div>

	<div id="lieux_plus" name="lieux_plus" style='display: none'>
	<table>
 	<td nowrap>Position X/Y/Z
	<?php 
    formulaire_listbox("x_lieu", -150, 150, 1, $_REQUEST['x_lieu'], "plusmoins", "yes");
    formulaire_listbox("y_lieu", -150, 150, 1, $_REQUEST['y_lieu'], "plusmoins", "yes");
    formulaire_listbox("z_lieu", 0, 100, 1, $_REQUEST['z_lieu'], "plusmoins", "yes");
    ?>
  </td></tr>
	</table>
	</div>

	</td></tr>
	<tr><td>

	<center><input type='submit' class='mh_form_submit' value='Rechercher'>
	<input type='reset' class='mh_form_submit' value='Par d&eacute;faut'></center>
	</td></tr>
	</table>
	
<?php 
}