<?php

include_once './modele/Technologie.php';
include_once './modele/joueur.php';
include_once './modele/authentification.php';
include_once './modele/ressource.php';
if (estAuthentifier()) {
    global $currentJoueur;
    $tc = $currentJoueur->getTechLink();
    $titre = "Recherches Technologiques";
    $tech1 = Technologie::Technologies();
    $techConnues = array();
    $techInconnues = array();
    foreach ($tech1 as $t) {
        $b = false;
        foreach ($tc as $m) {
            if ($t->getIdTech() == $m[0]) {
                $b = true;
            }
        }
        $resUtilisee = $t->getRessourcesLink();
        if ($b) {
            array_push($techConnues, $t);
        } else {
            array_push($techInconnues, array($t, $resUtilisee));
        }
    }
} else {
    retourEnTerresConnues();
}
include_once './vue/Technologie.php';
Beispiel #2
0
<?php

include_once 'vue/header.php';
?>
	<?php 
if (!estAuthentifier()) {
    ?>
    <p>Déjà plus de <?php 
    echo $nbJoueurs;
    ?>
 inscrits !</p>
    <?php 
} else {
    ?>

    <h4>Ressources disponibles en jeu:</h4><ul>
	<?php 
    foreach ($t as $value) {
        echo "<li style='list-style-type: none;margin-bottom:5px;'><img src='" . $value[3] . "' style='width:45px; height:45px;' />" . $value[1] . " : <span style='font-style:italic;'>" . $value[2] . "</span></li>";
    }
    ?>
</ul>




    <?php 
}
include_once 'vue/footer.php';