29          شهريور                1396
'news/detail','nid'=>$newss[$i]['news_ID'])); if (empty($newss[$i]['titr'])) unset($newss[$i]); } $smarty->assign("news",$newss); $reportt=smartydefine("select report_ID,firstname,city from report join operator on (report.operator_ID=operator.operator_ID) where active='yes' order by report_ID desc limit $reportdetailnum"); $nums1=count($reportt); for ($i=0; $i<$nums1; $i++) {$reportt[$i]['reporturl']=msbox(array('usr'=>'popup/report.php','rid'=>$reportt[$i]['report_ID'])); if (empty($reportt[$i]['city'])) unset($reportt[$i]); } $smarty->assign("report",$reportt); $quer=mysql_query("select * from galleryname order by gallery_ID desc"); $num=mysql_num_rows($quer); for ($i=0; $i<$num/4; $i++) { for ($j=0; $j<4; $j++){ if (!$row[$i][$j]=mysql_fetch_assoc($quer)) break; else $row[$i][$j]['url']=msbox(array('usr'=>'gallery/item','gid'=>$row[$i][$j]['gallery_ID'])); } } $smarty->assign('rowg',$row); //$bb=smartydefine("select name,body from comment where news_ID=$nid and active='yes'"); //$smarty->assign('comment',$bb); $smarty->display('gallery.tpl'); ?>
Powerd By: SAM آخرين بروزرساني: 1395/08/11
تعداد بازديد كننده: 382709