30          تير                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); $smarty->assign('gname',mysql_result(mysql_query("select name from galleryname where gallery_ID=$gid"),0)); $quer=mysql_query("select * from galleryitem where gallery_ID=$gid order by photo_ID desc"); $num=mysql_num_rows($quer); if ($num<1) $smarty->assign('emp','yes'); for ($i=0; $i<$num/3; $i++) { for ($j=0; $j<3; $j++){ if (!$row[$i][$j]=mysql_fetch_assoc($quer)) break; else $row[$i][$j]['url']=msbox(array('usr'=>'gallery/itemview','id'=>$row[$i][$j]['photo_ID'])); } } $smarty->assign('rowphoto',$row); //$bb=smartydefine("select name,body from comment where news_ID=$nid and active='yes'"); //$smarty->assign('comment',$bb); $smarty->display('galleryitem.tpl'); ?>
Powerd By: SAM آخرين بروزرساني: 1395/08/11
تعداد بازديد كننده: 375629