include('./include/pub.php');
parse_str($_SERVER['QUERY_STRING']);
$num=2;
$StrSql='select t.title,h.* from tb_titles t,tb_hierarchy h where t.WebCode="'.$ShowCode.'" and t.id = h.titleid and h.parentid =2 order by h.id asc';
$Record = mysql_query($StrSql) or die ("select error");
?>
echo $Titles[1]?>
include('./include/top.php')?>
echo $TopTitles[2];?>
$i=1;
while($Rows=mysql_fetch_array($Record)) {?>
echo $Rows['title']?>
$StrSql = 'select * from tb_articles where Statues=1 and SortNumber='.$Rows['ID'].' and WebCode="'.$ShowCode.'" order by DisplayIndex';
$Record_Titles= mysql_query($StrSql) or die ("select error");
$j=1;
while($Rows_Titles=mysql_fetch_array($Record_Titles)){
?>
if($article==""){$article=$a[1][1];};
$StrSql = 'select * from tb_articles where Statues=1 and UID='.$article.' and WebCode="'.$ShowCode.'" order by DisplayIndex';
$Record_Article= mysql_query($StrSql);
$Rows_Article=mysql_fetch_array($Record_Article);
$str=$Rows_Article['Content'];
$a=explode("insert_page",$str);
$page_num=sizeof($a)-1;
?>