Advertisement
Guest User

Bloc historique des matchs

a guest
Jul 24th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.41 KB | None | 0 0
  1. <div id="matchsHistory">
  2.                     <?php
  3.                        $matchs = $db->VarQuery("SELECT * FROM matchs WHERE team1_id = ? OR team2_id = ? LIMIT 5", array($this_team->Id(), $this_team->Id()));
  4.                         foreach ($matchs as $match) {
  5.                             $this_match = new Match();
  6.                             $this_match->loadById($match["id"]);
  7.                     ?>
  8.                     <div class="match">
  9.                            <div class="team1"><a href="http://epl-sm.com/index.php?p=teams&teamid=<?php echo $this_match->Team1()->Id(); ?>"><img src="media/teams/players_page/logo/<?php echo $this_match->Team1()->Id(); ?>.jpg" alt="" /></a></div>
  10.                          <span class="score1"><?php echo $this_match->Score1(); ?></span>
  11.                         <span>VS</span>
  12.                         <span class="score2"><?php echo $this_match->Score2(); ?></span>
  13.                         <div class="team2"><a href="http://epl-sm.com/index.php?p=teams&teamid=<?php echo $this_match->Team2()->Id(); ?>"><img src="media/teams/players_page/logo/<?php echo $this_match->Team2()->Id(); ?>.jpg" alt="" /></a></div>
  14.  
  15.                         <a href="http://epl-sm.com/index.php?p=matchs&matchid=<?php echo $this_match->Id(); ?>">Voir les détails du match</a>
  16.                     </div>
  17.                     <?php
  18.                    }
  19.                    ?>
  20.                 </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement