Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kaip padaryti?

Parašė custOm· 2010 Lap. 18 22:11:08
#8

pabandyk sitaip, bet nesu tikras ar veiks

 
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
 
 
$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE ".groupaccess('downloads_visibility')." AND (downloads_start='0'||downloads_start<=".time().") AND (downloads_end='0'||downloads_end>=".time().") ORDER BY downloads_reads DESC LIMIT 0,5");
if (dbrows($result) != 0) {
	echo "<table width='274' cellpadding='0' cellspacing='0' align='left'>\n";
	while ($data = dbarray($result)) {
	$title = $data['downloads_subject'];
	$id = $data['downloads_id'];
	$views = $data['downloads_reads'];
	echo "<tr>
	<td align='left'><a href='".BASEDIR."downloads.php?d_id=' style='color: #FFFFFF'>".trimlink($title, 35)."</a></td>
	<td align='right'><span style='color: #FFFFFF'>[$views]</span></td>
	</tr>\n";
	}
	echo "</table>";
}
 
 
?>
 

Redagavo custOm· 2010 Lap. 18 22:11:54