Пример #1
0
function initCockpit($tab_cookies)
{
    include 'gps_advanced_js.php3';
    $info = initVue2d($tab_cookies);
    javascriptRecherchator($info);
    ?>
	<table class='mh_tdborder' width='98%' align='center'>
	<tr class='mh_tdpage'>
		<td>
			<table width='100%' class='cockpit' align='center'>
				<tr class='mh_tdpage'>
					<td width='30%' valign='top' class='options_vue'>
						<?php 
    afficherOptionsVue2d($info);
    ?>
					</td>
					<td width='45%' valign='top' class='options_recherchator'>
						<?php 
    afficherCockpitRecherchator();
    ?>
					</td>
					<td width='15%' align='right' valign='top' class='options_radar'>
						<?php 
    afficherCockpitRadar();
    ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<?php 
    return $info;
}
Пример #2
0
function vue2d_afficher_zone_haut($x_position, $y_position, $z_position, $taille_vue, $myTroll)
{
    if (userIsGuilde()) {
        $ggc_groupe = new ggc_groupe();
        $ggc_groupe->read_db_by_id_troll($myTroll[id_troll]);
        $ggc_membres = $ggc_groupe->get_db_list_membres();
    }
    ?>
	<table class='mh_tdborder' width='80%' align='center'>
		<tr valign="top">
			<td colspan='3' class='mh_tdpage' align='center'>

			<table width="100%">
				<tr valign="top">
				<td valign='center' align='center' class='mh_tdtitre' width="30%">
					<?php 
    if (userIsGuilde()) {
        if ($ggc_groupe->get_id_groupe()) {
            echo "<a href='/ggc/groupe.php?id_groupe=" . $ggc_groupe->get_id_groupe() . "'>" . $ggc_groupe->get_nom_groupe() . "</a>";
        } else {
            echo $ggc_groupe->get_nom_groupe();
        }
        echo "<table>";
        for ($i = 1; $i <= count($ggc_membres); $i += 3) {
            $troll = $ggc_membres[$i];
            $troll2 = $ggc_membres[$i + 1];
            $troll3 = $ggc_membres[$i + 2];
            echo "<tr class='mh_tdpage' >";
            echo "<td>";
            info_membre_ggc($troll);
            echo "</td>";
            echo "<td>";
            info_membre_ggc($troll2);
            echo "</td>";
            echo "<td>";
            info_membre_ggc($troll3);
            echo "</td>";
            echo "</tr>";
        }
        echo "</table>";
    }
    ?>
			</td>

					<td align='center' width="30%">
				<img src='images/shim.gif' height='20px'>
				
				<?php 
    if (userIsGuilde()) {
        ?>
					x<input type='text' value='<?php 
        echo $x_position;
        ?>
' name='cX' size='2'>
					y<input type='text' value='<?php 
        echo $y_position;
        ?>
' name='cY' size='2'>
					z<input type='text' value='<?php 
        echo $z_position;
        ?>
' name='cZ' size='2'>
					<input type='button' onClick='get_map_center();' value='>' class="mh_form_submit">
					<?php 
        afficheAideVueCenterSur();
        if ($myTroll[nom_troll] != "") {
            echo "<br>Position de " . htmlentities($myTroll[nom_troll]) . " ({$myTroll['id_troll']}) <br>maj: ";
            echo date("d/m H:i", $myTroll[date_troll]);
            echo ", il y a " . calcElapsedTime($myTroll[date_troll]);
        }
    }
    ?>
				</td>
				<td width="5%" align="right">
					Radar 
					<?php 
    affiche_popup("radar", "yellow", afficherCockpitRadar());
    ?>
				</td>
				<td width="30%" align="right">
				<?php 
    if (userIsGuilde()) {
        ?>
				<table class='mh_tdborder'>
					<tr align='center'  class='mh_tdtitre' align="center">
						<td>
							<a href='#' onClick='document.form_cockpit.cX.value=<?php 
        echo $x_position - $taille_vue;
        ?>
;document.form_cockpit.cY.value=<?php 
        echo $y_position + $taille_vue;
        ?>
;get_map_center();'>Haut Gauche</a>
						</td>
						<td>
							<a href='#' onClick='document.form_cockpit.cY.value=<?php 
        echo $y_position + $taille_vue;
        ?>
;get_map_center();'>Haut</a>
						</td>
						<td>
							<a href='#' onClick='document.form_cockpit.cX.value=<?php 
        echo $x_position + $taille_vue;
        ?>
;document.form_cockpit.cY.value=<?php 
        echo $y_position + $taille_vue;
        ?>
;get_map_center();'>Haut Droit</a>
						</td>
					</tr>
					<tr class='mh_tdtitre' align="center">
						<td>
							<a href='#' onClick='document.form_cockpit.cX.value=<?php 
        echo $x_position - $taille_vue;
        ?>
;get_map_center();'>Gauche</a>
						</td>
						<td>
							<a href='#' onClick='document.form_cockpit.cX.value=<?php 
        echo $myTroll[x_troll];
        ?>
;document.form_cockpit.cY.value=<?php 
        echo $myTroll[y_troll];
        ?>
;get_map_center();'><?php 
        echo $myTroll[id_troll];
        ?>
</a>
						</td>
						<td>
							<a href='#' onClick='document.form_cockpit.cX.value=<?php 
        echo $x_position + $taille_vue;
        ?>
;get_map_center();'>Droit</a>
						</td>
					</tr>
			<tr class='mh_tdtitre' align="center">
						<td>
							<a href='#' onClick='document.form_cockpit.cX.value=<?php 
        echo $x_position - $taille_vue;
        ?>
;document.form_cockpit.cY.value=<?php 
        echo $y_position - $taille_vue;
        ?>
;get_map_center();'>Bas Gauche</a>
						</td>
						<td>
							<a href='#' onClick='document.form_cockpit.cY.value=<?php 
        echo $y_position - $taille_vue;
        ?>
;get_map_center();'>Bas</a>
						</td>
						<td>
							<a href='#' onClick='document.form_cockpit.cX.value=<?php 
        echo $x_position + $taille_vue;
        ?>
;document.form_cockpit.cY.value=<?php 
        echo $y_position - $taille_vue;
        ?>
;get_map_center();'>Bas Droit</a>
						</td>
					</tr>
				</table>
				</td>
				</tr>
				
				</table>
				<?php 
    }
    ?>
			</td>
		</tr>
		<tr>
			<td class='mh_tdpage' valign="top">
		<table valign="top"><tr>
			<td class='mh_tdpage'>
		&nbsp;
		</td>
		</tr>
		<tr>
			<td class='mh_tdpage'>
	
				<img src='images/shim.gif' width='20px'>
				<?php 
    if (userIsGuilde()) {
        ?>
					<input type='button' onClick='document.form_cockpit.pcenter.value="oui";document.form_cockpit.cX.value=<?php 
        echo $x_position - $taille_vue;
        ?>
;get_map_center();' value="<< X-<?php 
        echo $taille_vue;
        ?>
" class='mh_form_submit'>
				<?php 
    }
    ?>
			</td>
		</tr>
		</table>
		</td>
			<td class='mh_tdpage' width='80%'>

			<table class='tableVue' border='0' cellpadding=0 cellspacing=0>
	<?php 
}