Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Topo sudarymas

Parašė Todamach· 2011 Vas. 4 17:02:45
#18

Normali lentelė padaryta čia:

openside(TOP);
 
 
 
$result = dbquery("SELECT user_name, user_id, user_srank FROM ".$db_prefix."users ORDER BY user_srank DESC LIMIT 0,5"); 
 
 
 
 echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>";
 
 
 
 echo "<tr class='tbl2' align='center'><td width='10'><span class='small'>Narys</span></td><td width='10'><span class='small'>Taškai</span></td></tr>";
 
 
 
while ($data = dbarray($result)) {
 
 
 
 
 
	echo "<tr class='tbl1'><td><span class='small'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>
 
 
 
		<td><span class='small'>".$data['user_srank']."</span></td></tr>";
 
       } else {
 
 
 
	echo "<tr class='tbl2'><td><span class='small'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>		<td><span class='small'>".$data['user_srank']."</span></td></tr>";
 
                }
 
echo "</table>";
 
 
 
 
 
 
 
closeside();


atrodo, kaip rodžiau 7 poste.