Example #1
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>";
}
Example #2
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;'>";
}
Example #3
0
<table class='mh_tdborder' width='70%' align='center'>
	<tr class='mh_tdtitre' align='center'>
		<td><h2>Faire une recherche : </h2></td>
	</tr>
	<tr class='mh_tdtitre' align='center'>
		<td class='mh_tdpage'>
			<form action='result.php' method='post'>
				<table>
					<tr>
						<td>
							<label for='id'>Choix du Troll</label>
						</td>
						<td>
							<select name='id'>
								<?php 
showListeCache($_SESSION["AuthTroll"]);
?>
							</select>
						</td>
					</tr>	
					<tr>
						<td><label for='range'>Distance horizontale maximal</label></td>
						<td align='right'><input id='range' name='range' type='text' value='1' size='3'/></td>
					</tr>					
					<tr>
						<td><label for='level'>Niveau minimum du spot</label></td>
						<td align='right'><input id='level' name='level' type='text' value='1' size='3'/></td>
					</tr>
					<tr>
						<td><label for='number'>Nombre minimum de monstres</label></td>
						<td align='right'><input id='number' name='number' type='text' value='2' size='3'/></td>
Example #4
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 
}