Example #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;'>";
}
Example #2
0
function afficherFicheComposant($id_composant)
{
    global $MUNDIDEY;
    $page = "engine_view.php";
    if ($id_composant == "new") {
        $info = "Ajouter";
        $nom_composant = "";
        $commentaire_composant = "";
        $id_race_composant = "";
        $priorite_composant = "";
    } else {
        $lesComposants = selectDbComposants($id_composant);
        $res = $lesComposants[1];
        $id_composant = $res[id_composant];
        $nom_composant = stripslashes($res[nom_composant]);
        $id_race_composant = stripslashes($res[id_race_composant]);
        // c'est une chaine !
        $priorite_composant = $res[priorite_composant];
        $commentaire_composant = html_entity_decode(stripslashes($res[commentaire_composant]));
        $info = "Modifier";
    }
    echo "<form action='{$page}?composant=edit' method='post' name='formulaire_compo'>";
    echo "<input type='hidden' name='act' value='{$id_composant}'>";
    echo "<input type='hidden' name='id_composant' value='{$id_composant}'>";
    echo "<table style='background-color:#6f7ca2;' class='fiche'>";
    echo "<tr><td>Nom</td>";
    echo "<td><input type='textbox' value=\"" . $nom_composant . "\" name='nom_composant' size='50'</td></tr>";
    echo "<tr><td>Race</td>";
    echo "<td>";
    echo "<select name='id_race_composant'>";
    afficher_listbox_race_bestiaire_select($id_race_composant);
    echo "</select>";
    echo "</td></tr>";
    echo "<tr><td>Priorité</td>";
    echo "<td>";
    echo "<select name='priorite_composant'>";
    afficher_listbox_select("aucune", $priorite_composant, "Hein ?");
    afficher_listbox_select("tresbasse", $priorite_composant, "Pour l'an prochain");
    afficher_listbox_select("basse", $priorite_composant, "Recherché");
    afficher_listbox_select("moyenne", $priorite_composant, "Urgent");
    afficher_listbox_select("haute", $priorite_composant, "Super urgent");
    afficher_listbox_select("superhaute", $priorite_composant, "Pour hier");
    echo "</select>";
    echo "</td></tr>";
    echo "<tr><td>Commentaire</td>";
    echo "<td><textarea name='commentaire_composant'cols='50' rows='10'>";
    echo $commentaire_composant;
    echo "</textarea></td></tr>";
    echo "</table>";
    $res = selectDbVtt($_SESSION['AuthTroll'], "Ecriture Magique");
    // Un bouton modifier pour l'administrateur
    // >10 c'est normal !!
    if (isControlAdministrateur() || count($res) > 10) {
        echo "<input type='submit' name='submit' value='{$info}' class='mh_form_submit'>&nbsp;";
        if ($id_composant != "new") {
            echo "<input type='button' name='suppression' value='Supprimer' class='mh_form_submit'";
            echo " onClick=\"javascript=";
            echo " k=confirm('Confirmer la suppression du composant prioritaire ?');";
            echo " if (k==true) {document.location.href='{$page}?composant=del&id_composant={$id_composant}';}";
            echo "\">&nbsp;";
        }
    }
    echo "<input type='Button' value='Retour à la liste'";
    echo " onClick='JavaScript=document.location.href=\"{$page}?composant=liste\"' class='mh_form_submit'>";
    echo "</form>";
}
Example #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>";
}
Example #4
0
function affiche_option($name, $value, $titre, $tips = "")
{
    ?>
	<tr class='mh_tdpage' align="center">
		<td><?php 
    echo $titre;
    ?>
</td>
		<td>
			<select name='<?php 
    echo $name;
    ?>
'>
			<?php 
    afficher_listbox_select('oui', $value, 'oui');
    ?>
			<?php 
    afficher_listbox_select('non', $value, 'non');
    ?>
			</select>
		</td>
		<td><?php 
    echo $tips;
    ?>
</td>
	</tr>
<?php 
}
function afficher_fiche_gtaniere($id_lieu_gtaniere)
{
    if (is_numeric($id_lieu_gtaniere)) {
        $lesGTanieres = selectDbGrandesTanieres($id_lieu_gtaniere);
        $res = $lesGTanieres[1];
        $id_lieu_gtaniere = $res[id_lieu_gtaniere];
        $id_guilde_gtaniere = $res[id_guilde_gtaniere];
        $nom_gtaniere = $res['nom_gtaniere'];
        $x_gtaniere = $res['x_gtaniere'];
        $y_gtaniere = $res['y_gtaniere'];
        $z_gtaniere = $res['z_gtaniere'];
        $is_tgv_gtaniere = $res['is_tgv_gtaniere'];
        $prix_tgv_guilde_gtaniere = $res['prix_tgv_guilde_gtaniere'];
        $prix_tgv_amis_gtaniere = $res['prix_tgv_amis_gtaniere'];
        $prix_tgv_neutres_gtaniere = $res['prix_tgv_neutres_gtaniere'];
        $prix_tgv_ennemis_gtaniere = $res['prix_tgv_ennemis_gtaniere'];
        $connexions_gtaniere = $res['connexions_gtaniere'];
        $is_soins_gtaniere = $res['is_soins_gtaniere'];
        $prix_soins_guilde_gtaniere = $res['prix_soins_guilde_gtaniere'];
        $prix_soins_amis_gtaniere = $res['prix_soins_amis_gtaniere'];
        $prix_soins_neutres_gtaniere = $res['prix_soins_neutres_gtaniere'];
        $prix_soins_ennemis_gtaniere = $res['prix_soins_ennemis_gtaniere'];
        $is_resurection_gtaniere = $res['is_resurection_gtaniere'];
        $prix_resurection_guilde_gtaniere = $res['prix_resurection_guilde_gtaniere'];
        $prix_resurection_amis_gtaniere = $res['prix_resurection__gtaniere'];
        $prix_resurection_neutres_gtaniere = $res['prix_resurection__gtaniere'];
        $prix_resurection_ennemis_gtaniere = $res['prix_resurection__gtaniere'];
        $is_forgeron_gtaniere = $res['is_forgeron_gtaniere'];
        $prix_forgeron_guilde_gtaniere = $res['prix_forgeron_guilde_gtaniere'];
        $prix_forgeron_amis_gtaniere = $res['prix_forgeron_guilde_gtaniere'];
        $prix_forgeron_neutres_gtaniere = $res['prix_forgeron_guilde_gtaniere'];
        $prix_forgeron_ennemis_gtaniere = $res['prix_forgeron_guilde_gtaniere'];
        $is_commerce_gtaniere = $res['is_commerce_gtaniere'];
        $date_gtaniere = $res['date'];
        $info = "Modifier";
    } else {
        $info = "Ajouter";
    }
    ?>
	<form action='tanieres.php?' method='POST'>
	<input type='hidden' name='type_action' value='editdb'>
	<table class='mh_tdtitre'>
		<tr class='mh_tdpage' valign='top' align='right'>
			<td>
				Nom la tanière <br>
					<input type='text' name='nom_gtaniere' value='<?php 
    echo addslashes($nom_gtaniere);
    ?>
' size='25'> <br>
				Numéro de la tanière <input type='text' name='id_lieu_gtaniere' value='<?php 
    echo $id_lieu_gtaniere;
    ?>
' size='6'> <br>
				Numéro de la guilde <input type='text' name='id_guilde_gtaniere' value='<?php 
    echo $id_guilde_gtaniere;
    ?>
' size='6'> <br>
				Positions X:<input type='text' name='x_gtaniere' value='<?php 
    echo $x_gtaniere;
    ?>
' size="3"> <br>
				Positions Y:<input type='text' name='y_gtaniere' value='<?php 
    echo $y_gtaniere;
    ?>
' size="3"> <br>
				Positions Z:<input type='text' name='z_gtaniere' value='<?php 
    echo $z_gtaniere;
    ?>
' size="3"> <br>
			</td>
			<td>
				TGV : 
				<select name='is_tgv_gtaniere'>
				<?php 
    echo afficher_listbox_select("oui", $is_tgv_gtaniere, "Oui");
    echo afficher_listbox_select("non", $is_tgv_gtaniere, "Non");
    ?>
				</select><br>
				Prix <br>
				Guilde : <input type='text' name='prix_tgv_guilde_gtaniere' value='<?php 
    echo $prix_tgv_guilde_gtaniere;
    ?>
' size="6"> <br>
				Amis : <input type='text' name='prix_tgv_amis_gtaniere' value='<?php 
    echo $prix_tgv_amis_gtaniere;
    ?>
' size="6"> <br>
				Neutres : <input type='text' name='prix_tgv_neutres_gtaniere' value='<?php 
    echo $prix_tgv_neutres_gtaniere;
    ?>
' size="6"> <br>
				Ennemis : <input type='text' name='prix_tgv_ennemis_gtaniere' value='<?php 
    echo $prix_tgv_ennemis_gtaniere;
    ?>
' size="6"> <br>
			</td>
			<td>
				Soins : 
				<select name='is_soins_gtaniere'>
				<?php 
    echo afficher_listbox_select("oui", $is_soins_gtaniere, "Oui");
    echo afficher_listbox_select("non", $is_soins_gtaniere, "Non");
    ?>
				</select><br>
				Prix <br>
				Guilde : <input type='text' name='prix_soins_guilde_gtaniere' value='<?php 
    echo $prix_tgv_guilde_gtaniere;
    ?>
' size="6"> <br>
				Amis : <input type='text' name='prix_soins_amis_gtaniere' value='<?php 
    echo $prix_tgv_amis_gtaniere;
    ?>
' size="6"> <br>
				Neutres : <input type='text' name='prix_soins_neutres_gtaniere' value='<?php 
    echo $prix_tgv_neutres_gtaniere;
    ?>
' size="6"> <br>
				Ennemis : <input type='text' name='prix_soins_ennemis_gtaniere' value='<?php 
    echo $prix_tgv_ennemis_gtaniere;
    ?>
' size="6"> <br>
			</td>
			<td>
				Résurection : 
				<select name='is_resurection_gtaniere'>
				<?php 
    echo afficher_listbox_select("oui", $is_resurection_gtaniere, "Oui");
    echo afficher_listbox_select("non", $is_resurection_gtaniere, "Non");
    ?>
				</select><br>
				Prix <br>
				Guilde : <input type='text' name='prix_resurection_guilde_gtaniere' value='<?php 
    echo $prix_resurection_guilde_gtaniere;
    ?>
' size="6"> <br>
				Amis : <input type='text' name='prix_resurection_amis_gtaniere' value='<?php 
    echo $prix_resurection_amis_gtaniere;
    ?>
' size="6"> <br>
				Neutres : <input type='text' name='prix_resurection_neutres_gtaniere' value='<?php 
    echo $prix_resurection_neutres_gtaniere;
    ?>
' size="6"> <br>
				Ennemis : <input type='text' name='prix_resurection_ennemis_gtaniere' value='<?php 
    echo $prix_resurection_ennemis_gtaniere;
    ?>
' size="6"> <br>
			</td>
			<td>
				Forgeron : 
				<select name='is_forgeron_gtaniere'>
				<?php 
    echo afficher_listbox_select("oui", $is_forgeron_gtaniere, "Oui");
    echo afficher_listbox_select("non", $is_forgeron_gtaniere, "Non");
    ?>
				</select><br>
				Prix <br>
				Guilde : <input type='text' name='prix_forgeron_guilde_gtaniere' value='<?php 
    echo $prix_forgeron_guilde_gtaniere;
    ?>
' size="6"> <br>
				Amis : <input type='text' name='prix_forgeron_amis_gtaniere' value='<?php 
    echo $prix_forgeron_amis_gtaniere;
    ?>
' size="6"> <br>
				Neutres : <input type='text' name='prix_forgeron_neutres_gtaniere' value='<?php 
    echo $prix_forgeron_neutres_gtaniere;
    ?>
' size="6"> <br>
				Ennemis : <input type='text' name='prix_forgeron_ennemis_gtaniere' value='<?php 
    echo $prix_forgeron_ennemis_gtaniere;
    ?>
' size="6"> <br>
			</td>
			<td>
				Commerce : 
				<select name='is_commerce_gtaniere'>
				<?php 
    echo afficher_listbox_select("oui", $is_commerce_gtaniere, "Oui");
    echo afficher_listbox_select("non", $is_commerce_gtaniere, "Non");
    ?>
				</select>
			</td>
			<td>
				Connexions : <br>
				<textarea name='connexions_gtaniere'><?php 
    echo $connexions_gtaniere;
    ?>
</textarea><br>
				<i>Séparez par des ; les numéros des LIEUX concernés.</i>
			</td>
		</tr>

	</table>
	<?php 
    echo "<input type='submit' name='submit' value='{$info}' class='mh_form_submit'>&nbsp;";
    if (isControlAdministrateur()) {
        if ($id_taniere != "new") {
            echo "<input type='button' name='suppression' value='Supprimer' class='mh_form_submit'";
            echo " onClick=\"javascript=";
            echo " k=confirm('Confirmer la suppression de la tanière ?');";
            echo " if (k==true) {document.location.href='taniere.php?type_action=del&id_lieu_gtaniere={$id_lieu_gtaniere}';}";
            echo "\">&nbsp;";
        }
    }
    ?>
	<input type='Button' value='Retour à Liste' class='mh_form_submit' 
	onClick='JavaScript=document.location.href="tanieres.php?type_action=list"'>
	<?php 
}
Example #6
0
function vue_afficher_zoom_select($zoom, $name, $js = "")
{
    echo " Zoom <select name='{$name}' {$js}>";
    echo afficher_listbox_select(5.0, $zoom, "toupeti");
    echo afficher_listbox_select(4.5, $zoom, "=====");
    echo afficher_listbox_select(4.0, $zoom, "====-");
    echo afficher_listbox_select(3.6, $zoom, "===--");
    echo afficher_listbox_select(3.2, $zoom, "==---");
    echo afficher_listbox_select(2.9, $zoom, "=----");
    echo afficher_listbox_select(2.6, $zoom, "peti");
    echo afficher_listbox_select(2.3, $zoom, "-----");
    echo afficher_listbox_select(2.0, $zoom, "----");
    echo afficher_listbox_select(1.6, $zoom, "---");
    echo afficher_listbox_select(1.4, $zoom, "--");
    echo afficher_listbox_select(1.2, $zoom, "-");
    echo afficher_listbox_select(1, $zoom, "Normal");
    echo afficher_listbox_select(0.9, $zoom, "+");
    echo afficher_listbox_select(0.8, $zoom, "++");
    echo afficher_listbox_select(0.7, $zoom, "+++");
    echo afficher_listbox_select(0.6, $zoom, "++++");
    echo afficher_listbox_select(0.5, $zoom, "BIG");
    echo "</select>";
    afficheAideVueZoom();
    echo $text;
}
Example #7
0
function afficherListeBugs()
{
    global $db_vue_rm;
    $debut = $_REQUEST['debut'];
    $order = $_REQUEST['order'];
    $criteres = $_REQUEST['criteres'];
    $nb_ppage = $_REQUEST['nb_ppage'];
    $outil = $_REQUEST['outil'];
    if ($debut == "" && $order == "" && $criteres == "" && $nb_ppage == "" && $outil == "") {
        $criteres = 'etat_bug, type_bug desc, criticite_bug desc';
        $nb_ppage = 50;
    }
    if (!isset($debut)) {
        $debut = 0;
    }
    //if ($criteres == "")
    if ($nb_ppage == "") {
        $nb_ppage = 10;
    }
    $lien_base = "/bugs.php?outil={$outil}&criteres=";
    afficherListeBugsJs();
    ?>
  <table class='mh_tdborder' width='100%' align='center'>
    <tr>
      <td>
      <table width='100%' cellspacing='0'>
        <tr class='mh_tdtitre' align="center">
        <td><form name='formList'>
  Nombre de bugs par pages :
  <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>

	<br>Tri pratique :
	
  <a href='<?php 
    echo $lien_base;
    ?>
etat_bug,type_bug desc,criticite_bug desc&order=&nb_ppage=50'>État, types et criticité</a>

	<br>Filtrer
	<?php 
    echo "<select name='outil' onChange='Javascript:changeOutil();'>";
    afficher_listbox_select("", $outil, "Tous");
    afficher_listbox_select("bestiaire", $outil);
    afficher_listbox_select("bugs", $outil);
    afficher_listbox_select("firemago", $outil_touche_bug);
    afficher_listbox_select("gps", $outil);
    afficher_listbox_select("ggc", $outil);
    afficher_listbox_select("recherchator", $outil);
    afficher_listbox_select("rg", $outil);
    afficher_listbox_select("stats", $outil);
    afficher_listbox_select("trombinoscope", $outil_touche_bug);
    afficher_listbox_select("vue2d", $outil);
    afficher_listbox_select("vtt", $outil);
    afficher_listbox_select("autre", $outil);
    echo "</select></form>";
    ?>
  <table class='mh_tdpage' width='100%' cellpadding=2>

	<?php 
    $lien_base = "/bugs.php?outil={$outil}&nb_ppage={$nb_ppage}&criteres=";
    $nbtotal = selectDbBugsCount();
    $lesBugs = selectDbBugs("", $outil, $debut, $nb_ppage, $criteres, $order);
    $nbBugs = count($lesBugs);
    $barre_nav = construct_barre_navigation($debut, $nbBugs, $nbtotal, $cfg_nbres_ppage, $nb_ppage, $lien_base, $criteres, $order);
    for ($i = 1; $i <= $nbBugs; $i++) {
        if (($i - 1) % 10 == 0) {
            afficherEnteteListeBugs($lien_base, $criteres, $order);
        }
        $res = $lesBugs[$i];
        $etat_bug = $res[etat_bug];
        $criticite_bug = $res[criticite_bug];
        $type_bug = $res[type_bug];
        $description_bug = stripslashes($res[description_bug]);
        // Si la description est trop longue, on la coupe
        if (strlen($description_bug) >= 85) {
            $description_bug = substr($description_bug, 0, 85) . "...";
        }
        if ($etat_bug == "clos") {
            $etat_c = "bbbbff";
        } elseif ($etat_bug == "en-cours") {
            $etat_c = "161";
        } elseif ($etat_bug == "ouvert") {
            $etat_c = "911";
        }
        if ($criticite_bug == "basse") {
            $criticite_c = "117";
        } elseif ($criticite_bug == "moyenne") {
            $criticite_c = "F42";
        } else {
            //if ($criticite_bug == "haute")
            $criticite_c = "911";
        }
        if ($type_bug == "souhait") {
            $type_c = "117";
        } else {
            //$type_bug == "bug")
            $type_c = "911";
        }
        $classe = "ligne invisible";
        if ($etat_bug == "clos") {
            $etat_c = "";
            $type_c = "";
            $criticite_c = "";
            $classe = "ligne ";
        } elseif ($etat_bug == "en-cours") {
            $etat_c = "161";
        } elseif ($etat_bug == "ouvert") {
            $etat_c = "911";
        }
        $lien = "href='bugs.php?bug={$res['id_bug']}'";
        //echo "<tr class='$classe' onmouseover=\"this.className='item-mouseover'\"";
        //echo " onmouseout=\"this.className='$classe'\" >";
        echo "<tr class='mh_tdpage'>";
        echo "<td><a {$lien}>{$res['id_bug']}</a></td>";
        echo "<td><a {$lien}>{$res['outil_touche_bug']}</a></td>";
        echo "<td style='background-color:#{$criticite_c};'><a {$lien}>{$criticite_bug}</a></td>";
        echo "<td style='background-color:#{$type_c};'><a {$lien}>{$type_bug}</a></td>";
        echo "<td style='background-color:#{$etat_c};'><a {$lien}>{$etat_bug}</a></td>";
        echo "<td><a {$lien}>" . stripslashes($res[nom_emetteur]) . " ({$res['id_troll_emetteur_bug']})</a></td>";
        echo "<td><a {$lien}>" . stripslashes($res[nom_responsable]) . " ({$res['id_troll_responsable_bug']})</a></td>";
        echo "<td><a {$lien}>" . date('d/m/y H:i', $res[date_ouverture_bug]) . "</a></td>";
        echo "<td><a {$lien}>";
        if (date('d/m/y H:i', $res[date_cloture_bug]) != "01/01/70 01:00") {
            echo date('d/m/y H:i', $res[date_cloture_bug]);
        }
        echo "</a></td>";
        echo "<td><a {$lien}>{$description_bug}</a></td>";
        echo "</tr>";
    }
    echo "</table>";
    echo $barre_nav;
    ?>
   </td>
   </tr>
   </table>
   </tr>
   </td>
  </table><br>
<?php 
}
Example #8
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 
}