Beispiel #1
0
            print "<b>CdM de la même race avec le même âge</b><br>";
        }
        affiche_liste_cdms($tab_cdm);
        print "</p>";
    }
}
if ($Race != "-1") {
    $tab_cdm = SelectCdMs($Race, "-1", "-1", $IDTemplate, $IDAge);
    if (count($tab_cdm) > 0) {
        print "<p>";
        if ($IDTemplate != "-1" && $IDAge != "-1") {
            print "<b>CdM de la même race mais pas les mêmes template et âge</b><br>";
        } else {
            if ($IDTemplate == "-1" && $IDAge == "-1") {
                print "<b>CdM de la même race</b><br>";
            } else {
                if ($IDTemplate == "-1") {
                    print "<b>CdM de la même race mais le même âge</b><br>";
                } else {
                    if ($IDAge == "-1") {
                        print "<b>CdM de la même race mais le même template</b><br>";
                    }
                }
            }
        }
        affiche_liste_cdms($tab_cdm);
        print "</p>";
    }
}
print "</div>";
include_once '../foot.php';
Beispiel #2
0
function vue2d_informations_monstres_popup($monstre, $ax, $ay, $az, $max_pa)
{
    $titre = "<b>" . addslashes($monstre['nom']) . "</b>";
    $text = "Desactivation des informations pour surcharge serveur.";
    $info = " onmouseover=\"return overlib('{$text}',CAPTION,'Clique pour fixer la popup !');\"";
    $info .= " onclick=\"return overlib('{$text}', STICKY, CAPTION, '{$titre}', CLOSECLICK, EXCLUSIVE);\" ";
    $info .= " onmouseout=\"return nd();\"";
    return $info;
    include_once 'bestiaire2/Libs/inc_affichage.php';
    $titre = "<b>" . addslashes($monstre['nom']) . "</b>";
    $text = "<center>";
    $text .= "<br>";
    $text .= "<table><tr><td>";
    $text .= "<table align=center class=mh_tdborder><tr><td colspan=4>";
    $text .= "<h2>{$titre}</h2>";
    $text .= "</center></td></tr>";
    preg_match("/(.+) \\[(.+)\\]/", $monstre['nom'], $resultat);
    $nom = preg_replace("/'/", "%27", $resultat[1]);
    $age = preg_replace("/'/", "%27", $resultat[2]);
    $race = $monstre['infos_monstre']['race'];
    $race = addslashes($race);
    $famille = $monstre['infos_monstre']['famille'];
    $famille = addslashes($famille);
    $niveau = $monstre['niveau'];
    $text .= "<tr class=mh_tdpage>";
    $text .= "<td>Age : {$age}</td>";
    $text .= "<td>Niveau : {$niveau}</td>";
    $text .= "</tr>";
    $text .= "<tr class=mh_tdpage>";
    $text .= "<td>Race : " . htmlentities($race) . "<br>";
    $text .= "<td>Famille : " . htmlentities($famille) . "</td>";
    $text .= "</tr>";
    $text .= "</table>";
    $text .= "</td><td>";
    $x_dist = $ax - $monstre['x'];
    $y_dist = $ay - $monstre['y'];
    $z_dist = $az - $monstre['z'];
    if ($x_dist < 0) {
        $x_dist = -$x_dist;
    }
    if ($y_dist < 0) {
        $y_dist = -$y_dist;
    }
    if ($z_dist < 0) {
        $z_dist = -$z_dist;
    }
    $text .= "<table align=center class=mh_tdborder><tr><td nowrap class=mh_tdtitre>";
    $text .= "Distance";
    $text .= "</td><td nowrap class=mh_tdpage>";
    $text .= "en x = {$x_dist} case(s)<br>";
    $text .= "en y = {$y_dist} case(s)<br>";
    $text .= "en z = {$z_dist} case(s)";
    $text .= "</td></tr></table>";
    $text .= "</td></tr></table><br>";
    if ($monstre['infos_monstre']['id_age'] != "") {
        $tab_cdm = SelectCdM_mh($monstre['id'], $monstre['infos_monstre']['race'], $monstre['infos_monstre']['id_age']);
        if (count($tab_cdm) > 0) {
            $text .= "<table class=mh_tdtitre>";
            $text .= "<tr><td align=center class=mh_titre colspan=12><b>CdM sur ce monstre</b></td></tr></table>";
            $text .= addslashes(affiche_liste_cdms($tab_cdm, false));
        }
    }
    if ($max_pa > 15) {
        $text .= "La taille en PA est sup&eacute;rieure &agrave; 15. Pour plus d\\'info sur ce monstre, consultez le bestiaire.<br>";
    }
    //	if ((	$monstre[infos_monstre][id_template] != "" ) && ($monstre[infos_monstre][id_age] != "") ) {
    //	$tab_cdm=SelectCdMs($monstre[infos_monstre][race],$monstre[infos_monstre][id_template],$monstre[infos_monstre][id_age],"-1","-1", true);
    if (count($monstre[tab_cdm]) > 0) {
        $text .= "<table class=mh_tdtitre>";
        $text .= "<tr><td align=center class=mh_titre colspan=12><b>Derni&egrave;re CdM de même race, même template et même âge</b></td></tr></table>";
        $text .= addslashes(affiche_liste_cdms($monstre['tab_cdm'], false));
    }
    //	}
    $tab = $monstre['caracs_moyennes'];
    $td = "td align=center width=50";
    /*$text .= "<br><table class=mh_tdborder>";
    	$text .= "<tr><td align=center class=mh_titre colspan=12><b>Caract&eacute;tistiques moyennes</b></td></tr>";
    	$text .= "<tr class=mh_tdtitre><$td>niv</td><$td>pdv</td><$td>att</td><$td>esq</td><$td>deg</td><$td>reg</td><$td>arm</td><$td>vue</td></tr>";
    	$text .= "<tr class=mh_tdpage><$td>$tab[niv]</td><$td>$tab[pdv]</td><$td>$tab[att]</td><$td>$tab[esq]</td><$td>$tab[deg]</td><$td>$tab[reg]</td><$td>$tab[arm]</td><td>$tab[vue]</td></tr>";
    	$text .= "</table><br>";*/
    $capspe = $monstre['capacites_speciales'];
    if ($capse) {
        $text .= "<table class=mh_tdborder>";
        $text .= " <tr><td colspan=6><em>Capacit&eacute; sp&eacute;ciale </em>&nbsp;&nbsp;" . htmlentities($capspe['nom_capspe']) . "&nbsp;&nbsp;&nbsp;<em>affecte</em>&nbsp;&nbsp;&nbsp;" . htmlentities($capspe['affecte_capspe']) . "</td>";
        $text .= "</tr>";
        $text .= "<tr class=mh_tdtitre>";
        $text .= "  <{$td}>MM</td><{$td}>deg</td><{$td}>portee</td><{$td}>dur&eacute;e</td><{$td}>zone</td></tr>";
        $carac = carac_monstre($capspe['MMsom_capspe'], $capspe['MMnbr_capspe']);
        $text .= "<tr class=mh_tdpage>";
        $text .= "  <{$td}>" . $carac . "</td>";
        $carac = carac_monstre($capspe['degatsom_capspe'], $capspe['degatnbr_capspe']);
        $text .= "  <{$td}>" . $carac . "</td>";
        $text .= "  <{$td}>" . $capspe['portee_capspe'] . "</td>";
        $text .= "  <{$td}>" . $capspe['duree_capspe'] . "</td>";
        $text .= "  <{$td}>" . $capspe['portee_zone_capspe'] . "</td>";
        $text .= "</tr>";
        $text .= "</table>";
        $text .= "</center>";
    }
    $text .= "<br><table align=center class=mh_tdborder><tr><td>";
    $text .= "<h2><a href=\\'/bestiaire2/bestiaire.php?Monstre={$nom}&Age={$age}\\'>lien vers le bestiaire</a></h2>";
    $text .= "</td></tr></table>";
    $info = " onmouseover=\"return overlib('{$text}',CAPTION,'Clique pour fixer la popup !');\"";
    $info .= " onclick=\"return overlib('{$text}', STICKY, CAPTION, '{$titre}', CLOSECLICK, EXCLUSIVE);\" ";
    $info .= " onmouseout=\"return nd();\"";
    return $info;
}