Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Atsitiktiniai siuntiniai.

Parašė avice· 2011 Sau. 22 21:01:20
#5

se kale:

 
openside("Atsitiktiniai 10 siuntinių");
$result=dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY DESC LIMIT 10");
echo "<table width='599' border='0' cellpadding='0' cellspacing='0'>
  <tr>
    <td width='35'><strong>Nr.</strong></td>
    <td width='306'><strong>Pavadinimas</strong></td>
    <td width='111'><strong>Ideta</strong></td>
    <td width='144'><strong>Siuntesi</strong></td>
  </tr>
</table>";
if(dbrows($result)!=0){
$x = 0;
while($data=dbarray($result)){
$x++;
$z = date("m/d/y",1201154400);
echo "
<table width='599' border='0' cellpadding='0' cellspacing='0'>
  <tr>
    <td width='35'>".$x."</td>
    <td width='306'><a href='".BASEDIR."downloads.php?cat_id=$data[download_cats]&download_id=$data[download_id]' target='blank'
 
class='slink'>".trimlink($data[download_title], 25)."</a></td>
    <td width='111'>".date("o.m.d",$data[download_datestamp])."</td>
    <td width='144'>".$data[download_count]."</td>
  </tr>
</table>\n";
}
 
}else{
echo "<center>Siuntiniu Nera</center>";
}
closeside();
 

cia tavo kodas tik viski paredaguotas...

Redagavo avice· 2011 Sau. 22 21:01:22