function htmlGetSpots($data) { $retour = ""; $spots = getSpots($data); $j = 1; // Parcours les spots foreach ($spots as $spot) { $td_monstres = ""; $i = 0; $level = 0; // Parcours le spot foreach ($spot as $monstre) { if (count($monstre) != 1) { $a = explode(" [", $monstre["name"]); $name = trim($a[0]); $age = trim(str_replace("]", "", $a[1])); $td_monstres .= '<tr><td>' . $monstre["level"] . '</td>'; if ($monstre["level"] != "?") { $level += $monstre["level"]; } else { --$i; } $td_monstres .= '<td><a href="" onClick="window.open(\'http://games.mountyhall.com/mountyhall/View/MonsterView.php?ai_IDPJ=' . $monstre["id"] . '\',\'_blank\',\'toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=1, copyhistory=0, menuBar=0, width=766, height=636\');return(false);">' . $monstre["id"] . '</a></td>'; $td_monstres .= '<td><a href="/bestiaire2/bestiaire.php?Monstre=' . $name . '&Age=' . $age . '&MH=' . $monstre["id"] . '" target="_blank">' . $monstre["name"] . '</a></td>'; $td_monstres .= '<td><a href="/cockpit.php?cX=' . $monstre["X"] . '&cY=' . $monstre["Y"] . '&cZ=' . $monstre["N"] . '" target="_blank">' . $monstre["X"] . " " . $monstre["Y"] . " " . $monstre["N"] . "</a></td></tr>"; ++$i; } } // Affiche le spot si il correspond aux critères de recherche if (intval($data["number"]) <= $i && intval($data["level"]) <= intval($level / $i)) { $retour .= '<table class="mh_tdtitre" border="1" align="center" cellpadding="5"><tr bgcolor="' . getColor($i) . '"><th>Niv. Moyen : ' . intval($level / $i) . '</th><th colspan="3">Spot numéro : ' . $j . '</th></tr>' . $td_monstres . '</table><br/>'; } ++$j; } return $retour; }
<li> Sex </li> </ul> </form> </div> <?php do_action('wordpress_social_login'); ?> </header> <!-- - Where are the personas? --> <?php include __DIR__ . DIRECTORY_SEPARATOR . 'includes/connectDB.php'; $spots = getSpots($db); ?> <div id="map"></div> <footer> <!--<p class="claim2">See where WCEU buddies are hanging out</p>--> <div class="authors"> <a href="https://twitter.com/snieto">@snieto</a> <a href="https://twitter.com/juaevpa">@juaevpa</a> <a href="https://twitter.com/manelio">@manelio</a> </div> <div class="developed"> Developed in Seville with <span class="heart">♥</span> for you! </div> <?php /*