View file bclubs/user/reit.php

File size: 1.29Kb
<?php
/**
 * @author    localhost
 * @copyright OnGames
 * @icq       441998880
 * @e-mail    wadik1@mail.ru
 * @site      http://inlowe.ru
 * @license   purchased
 * @date      23:29/5/1/2012
 */
 $req = mysql_query("SELECT * FROM `user_game` ORDER BY `pobed` DESC LIMIT 5");
        while ($res = mysql_fetch_assoc($req))
        { echo $i % 2 ? '<div class="rek">' : '<div class="rek2">';

            echo '<table style="padding-left:0.1em;">';
            echo '<tr>';
            echo '<td >';
            if ($res['img'])
    {
        echo '<img src="img_us/' . $res['img'] . '.png" />';
    }
    else
    {
        echo '<img src="img_us/no.png" />';
    }
           
            echo '</td>';
            echo '<td>';
            echo '<div>';
            echo '<a href="../info.php?id='.$res['user_id'].'">' . $res['name'] . '</a>';
            echo '</div>';
            
            echo '<div class="sub">';
              echo 'Побед:&nbsp;' . $res['pobed'] . '&nbsp;|&nbsp;';
            echo 'Монет:&nbsp;' . $res['monet'] . '';
            echo '<br/>';
            echo '</div>';
            echo '</td>';
            echo '</tr>';
            echo '</table>';
            echo '</div>';
            echo '<div class="l"></div>';
            ++$i;}
?>