0){ $buffer_bbs_list.=$cnt."件中".($_GET['s']+1)."件目から表示。
\n"; }else{ $buffer_bbs_list.="0件です。
\n"; } $total_page=ceil($cnt/$limit); $now_page=round($_GET['s']/$limit); if($now_page%$limit_jump==0){ $start_page=$now_page; }else{ $start_page=$now_page-($now_page%$limit_jump); } while($item2=mysql_fetch_assoc($result2)){ $buffer_bbs_list .= "【".$arrCategory[$item2['category']]["name"]."】".$item2['bbs_name'].""; if($item2['bbstype']=="1"){ $buffer_bbs_list .= $arrEmoji['F9E6'][$env]; } $buffer_bbs_list .= "
\n"; } //*****ページ表示 if($start_page!=0){ $buffer_bbs_list.="\n"; } for($i = $start_page; $i < $start_page+$limit_jump && $i < $total_page; $i++) { if($i==$now_page){ $buffer_bbs_list.="[".($i+1)."]\n"; }else{ $buffer_bbs_list.="[".($i+1)."]\n"; } } if($start_page+$limit_jump<$total_page){ $buffer_bbs_list.="\n"; } //*****ページ表示 $smarty->assign("bbs_list",$buffer_bbs_list); //◆◆◆smarty_assing $buffer_category = ""; $buffer_category .= ""; $smarty->assign("category_select",$buffer_category); if($_REQUEST['ct']=="a22"||$_REQUEST['ct']=="a33"){$smarty->assign("google",$no_google);}//アダルトカテゴリの場合、代替広告にチェンジ //◆◆◆書き出し $smarty->display(mb_strcut($_SERVER['SCRIPT_NAME'],1)); ?>