So soll meine box aussehen:
Das ist der Quelltext in HTML:
<div class="matches-line">
<div class="game-icon">
<img src="Bilder/csgo-icon.png" height="20" width="20" alt="CS:GO" style="display: inline;
vertical-align: middle;" />
</div>
<div class="match-info">
FirstFrag VS. Breathless eSports
</div>
<div class="match-more">
<a href="#">
mehr Informationen
</a>
</div>
<div class="match-resault-icon">
win
</div>
<div class="match-resault">
30 : 2
</div>
<div class="matchtyp">
Clanwar
</div>
<div class="matchtime">
20:15
</div>
<div class="matchdate">
01.01.2016
</div>
<div class="clear">
</div>
</div>
So sieht sie im Moment aus:
Und das ist meine lastwars.php:
<?php
# Copyright by: Manuel
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$farbe = '';
$farb2 = '';
echo '<div class="matches-line">';
$erg = db_query('SELECT * FROM prefix_wars WHERE status = "3" ORDER BY datime DESC LIMIT 5');
while ($row = db_fetch_object($erg) ) {
$row->tag = ( empty($row->tag) ? $row->gegner : $row->tag );
if ($row->wlp == 1) {
$bild = 'include/images/icons/win.gif';
} elseif ($row->wlp == 2) {
$bild = 'include/images/icons/los.gif';
} elseif ($row->wlp == 3) {
$bild = 'include/images/icons/pad.gif';
}
$row->tag = '<div class="match-info">'.get_opponent_details('name', $row->oid).'</div>';
echo '<div class="game-icon">'.get_wargameimg($row->game).'</div>';
echo '<div class="match-more"><a href="index.php?wars-more-'.$row->id.'">mehr Informationen </a></div><div class="match-resault">';
echo $row->owp.' : '.$row->opp.'</div> '.$row->tag.' <div class="match-resault-icon"><img src="'.$bild.'"></div>';
}
echo '</div>';
?>
Danke für eure Hilfe
verwendete ilch Version: 1.1 P
betroffene Homepage: noch-nicht-vorhanden.de
Zuletzt modifiziert von jonnybravo_607 am 05.03.2017 - 19:51:37


