0){ $strSQL="select id,sortName from [#TAB]sort where pid = '$sortid' order by pos asc,id asc"; $mysql->do_query($strSQL); $help_category=array(); while($row=$mysql->do_fetch_row(1)){ $help_category[$row["id"]]=$row["sortName"]; } if($mysql->rownum){ $smarty->assign("help_category",$help_category); $help_category_id = array_keys($help_category); $sql = "select id,news_title,sortid from [#tab]news where sortid in (" . implode(",", $help_category_id) . ") order by id asc"; $mysql->do_query($sql); $helps=array(); while($row=$mysql->do_fetch_row(1)){ $helps[$row["sortid"]][]=$row; } $smarty->assign("helps",$helps); } } } elseif ($t == 'about' || $t == 'culture'){ $header_title[] = $cfg_static[$t]; $strSQL="select content from [#TAB]static where itemcode='$t' limit 1"; $mysql->do_query($strSQL); if($mysql->rownum){ $mod=$mysql->do_fetch_row(1); $smarty->assign("mod",$mod); } } else{ $header_title[] = $cfg_static[$t]; $index = array_search($cfg_static[$t], $cfg_link_type); $strSQL="select * from [#TAB]link where sortid='$index' order by pos asc,id asc"; $mysql->do_query($strSQL); $page_link_arr=array(); while($row=$mysql->do_fetch_row(1)){ $page_link_arr[]=$row; } $smarty->assign("page_link_arr", toErWeiAry($page_link_arr, 5)); } $smarty->assign("sortName",$cfg_static[$t]); } $smarty->assign("cfg_web_title",implode("_",array_reverse($header_title))); smarty_end($smarty,$tpl,$cacheId); include("./include/footer.php"); ?>