Example #1
0
<?php

defined('BASEPATH') or exit('No direct script access allowed');
?>
<!-- Derniers matchs -->

<div id="cont">
	<section id="club" class="panel panel-info">
		<div class="panel-heading">Club</div>
		<div class="panel-body text-center">
			<?php 
echo anchor('voir/club/' . $club['id_club'], logo_club($club['logo'], '', 'id="logo_club"'));
?>
			<address>
				<strong><?php 
echo anchor('voir/club/' . $club['id_club'], $club['nom']);
?>
</strong><br>
			</address>

		</div>
	</section>

	<section id="infos" class="panel panel-info">
		<div class="panel-heading">Infos du club</div>
			<div class="infos_text">
				<strong> Président du club : </strong><?php 
echo $infos['nom_president'];
?>
 </br>
				<strong> Adresse : </strong><?php 
Example #2
0
	</section>

	<section id="matchs" class="panel panel-info">
		<div class="panel-heading">Matchs de l'équipe</div>
		<table class="table">			
			<?php 
if (empty($matchs)) {
    echo "<p style=\"padding:1em\">Cette équipe n'a encore joué aucun match ...</p>";
} else {
    foreach ($matchs as $match) {
        echo "<tr onclick=\"document.location = '" . site_url('/voir/match/' . $match['id_match']) . "';\">\n\t\t\t\t\t\t\t<td class=\"td_logo\">" . logo_club($equipes[$match['equipe_dom']]['logo']) . "</td>\n\t\t\t\t\t\t\t<td><strong>" . $equipes[$match['equipe_dom']]['nom'] . "</strong></td>\n\t\t\t\t\t\t\t<td class=\"text-center\"><b>" . $match['score_equipe_dom'] . " </b> - <b>" . $match['score_equipe_ext'] . "</b></td>\n\t\t\t\t\t\t\t<td class=\"text-right\"><strong>" . $equipes[$match['equipe_ext']]['nom'] . "</strong></td>\n\t\t\t\t\t\t\t<td class=\"td_logo\">" . logo_club($equipes[$match['equipe_ext']]['logo']) . "</td>\n\t\t\t\t\t\t </tr>";
    }
}
?>
		</table>
	</section>

	<section id="classement" class="panel panel-info">
		<div class="panel-heading">Classement</div>
		<table class="table">
			<?php 
$i = 1;
foreach ($classement as $equipe) {
    echo "<tr onclick=\"document.location = '" . site_url('voir/equipe/' . $equipe['id_equipe']) . "';\">\n\t\t\t\t\t\t<td class=\"text-center\">" . $i . ".</td>\n\t\t\t\t\t\t<td class=\"td_logo\">" . logo_club($equipe['logo']) . "</td>\n\t\t\t\t\t\t<td><strong>" . $equipe['nom'] . "</strong></td>\n\t\t\t\t\t </tr>";
    $i++;
}
?>
		
		</table>
	</section>
</div>
Example #3
0
defined('BASEPATH') or exit('No direct script access allowed');
?>

<section id="infos_match">
    <?php 
echo anchor('voir/equipe/' . $equipe_dom->id_equipe, "<figure>" . logo_club($equipe_dom->club->logo) . "<strong>" . $equipe_dom->nom . "</strong>" . "<figcaption>Domicile</figcaption>" . "</figure>");
?>

    <p><?php 
echo $match->score_equipe_dom . " - " . $match->score_equipe_ext;
?>
</p>

    <?php 
echo anchor('voir/equipe/' . $equipe_ext->id_equipe, "<figure>" . logo_club($equipe_ext->club->logo) . "<strong>" . $equipe_ext->nom . "</strong>" . "<figcaption>Exterieur</figcaption>" . "</figure>");
?>
    
</section><br />

<?php 
if ($match->etat == "termine") {
    echo "<div class=\"alert alert-success\" role=\"alert\"> Match validé, les résultats sont corrects.</div>";
} else {
    if ($match->etat == "termine_non_valide") {
        echo "<div class=\"alert alert-warning\" role=\"alert\"> Match non validé, les résultats peuvent être incorrects.</div>";
    } else {
        if ($match->etat == "termine_non_renseigne") {
            echo "<div class=\"alert alert-info\" role=\"alert\"> Match terminé, mais aucun résultat n'a été rentré.</div>";
        }
    }
Example #4
0
			<?php 
if (empty($matchs)) {
    echo "<p style=\"padding:1em\">Aucun match de programmé pour cette semaine ...</p>";
} else {
    ?>

			<tr>
				<th>Domicile</th>
				<th></th>
				<th class="text-center">Score</th>
				<th></th>
				<th>Exterieur</th>
			</tr><?php 
    $i = count($matchs);
    foreach ($matchs as $match) {
        // if ($i%6==0){
        //     $nb = $i/6;
        //     echo "<tr>
        //             <td class=\"text-center\">Journée n°" . $nb . "</td>
        //         </tr>";
        // }
        echo "<tr onclick=\"document.location = '" . site_url('/voir/match/' . $match['id_match']) . "';\">                   \n                        <td class=\"td_logo\">" . logo_club($equipes[$match['equipe_dom']]['logo']) . "</td>\n                        <td><strong>" . $equipes[$match['equipe_dom']]['nom'] . "</strong></td>\n                        <td class=\"text-center\"><b>" . $match['score_equipe_dom'] . "</b> - <b>" . $match['score_equipe_ext'] . "</b></td>\n                        <td class=\"text-right\"><strong>" . $equipes[$match['equipe_ext']]['nom'] . "</strong></td>\n                        <td class=\"td_logo\">" . logo_club($equipes[$match['equipe_ext']]['logo']) . "</td>\n                     </tr>";
        $i--;
    }
}
?>

		</table>
	</section>
</div>
Example #5
0
            case 't':
                $prono['resultat'] = "Bravo !";
                echo "<tr class=\"success\">";
                break;
            case 'f':
                $prono['resultat'] = "Dommage !";
                echo "<tr class=\"danger\">";
                break;
            default:
                $prono['resultat'] = "En attente";
                echo "<tr>";
                break;
        }
        ?>
                    <td><?php 
        echo logo_club($prono['equipe_dom']['logo']) . " <b>" . anchor("voir/equipe/" . $prono['equipe_dom']['id_equipe'], $prono['equipe_dom']['nom']) . "</b> vs <b>" . anchor("voir/equipe/" . $prono['equipe_ext']['id_equipe'], $prono['equipe_ext']['nom']) . "</b> " . logo_club($prono['equipe_ext']['logo']);
        ?>
</td>
                    <td><?php 
        echo $prono['pronostic'];
        ?>
</td>
                    <td><?php 
        echo $prono['match']['score_equipe_dom'] . " - " . $prono['match']['score_equipe_ext'];
        ?>
</td>
                    <td><?php 
        echo $prono['resultat'];
        ?>
</td>
                </tr>