کد: انتخاب همه
themearticle($aaid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext, $printpage);
کد: انتخاب همه
echo"<br>";
OpenTable();
global $tapic, $sid;
echo "<p><font color=\"#666666\"><span style=\"FONT-WEIGHT: 700; FONT-SIZE: 8pt\">مرتبط با
موضوع :</span></font></p>";
$sql = mysql_query("SELECT sid, title, counter, time FROM ".$prefix."_stories WHERE topic=$topic AND sid!='$sid' AND sid > '$sid' order by sid DESC limit 0,5");
while(list($lsid, $ttitle, $counter, $time) = mysql_fetch_row($sql)){
echo"<font class=\"content\"><b><a href=\"modules.php?name=$module_name&file=article&sid=$lsid\">$ttitle</a></b> </font>".formatTimestamp($time)."<font color=\"#999999\">(مطلب جديد)</font><br>\n";}
$sql = mysql_query("SELECT sid, title, counter, time FROM ".$prefix."_stories WHERE topic=$topic AND sid!='$sid' AND sid < '$sid' order by sid DESC limit 0,5");
while(list($lsid, $ttitle, $counter, $time) = mysql_fetch_row($sql)){
echo"<font class=\"content\"><b><a href=\"modules.php?name=$module_name&file=article&sid=$lsid\">$ttitle</a></b> </font>".formatTimestamp($time)."<font color=\"#999999\">(مطلب قبلی)</font><br>\n";}
CloseTable();
echo"<br>";