Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="matchsHistory">
- <?php
- $matchs = $db->VarQuery("SELECT * FROM matchs WHERE team1_id = ? OR team2_id = ? LIMIT 5", array($this_team->Id(), $this_team->Id()));
- foreach ($matchs as $match) {
- $this_match = new Match();
- $this_match->loadById($match["id"]);
- ?>
- <div class="match">
- <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>
- <span class="score1"><?php echo $this_match->Score1(); ?></span>
- <span>VS</span>
- <span class="score2"><?php echo $this_match->Score2(); ?></span>
- <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>
- <a href="http://epl-sm.com/index.php?p=matchs&matchid=<?php echo $this_match->Id(); ?>">Voir les détails du match</a>
- </div>
- <?php
- }
- ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement