request('colid','int','get'); $getId = $sr->request('id','int','get'); $sql = 'select id,parent_id from site_column where id = '.$getColId; $rs = $db->query($sql); if(0==$db->resultNum){ $errMsg = '您指定的項目不存在!'; }else{ if($rs[0]['parent_id']>0){ $parent_id = $rs[0]['parent_id']; $column_id = $rs[0]['id']; }else{ $sql = 'select id from site_column where parent_id = '.$getColId.' order by range_num,id'; $rs = $db->query($sql); if(0==$db->resultNum){ $errMsg = '您指定的項目不存在!'; }else{ $parent_id = $getColId; $column_id = $rs[0]['id']; } } } $ColumnIsList = ReturnOneValue('is_list','site_column','id='.$column_id,$db); if($ColumnIsList>0){ $ShowTitle = true; $ShowList = true; }else{ if(0==$getId){ $sql = 'select id from article where column_id='.$column_id.' and is_show = 1 order by id desc limit 0,1'; $rs=$db->query($sql); if($db->resultNum > 0){ $getId = $rs[0]['id']; }else{ $errMsg = '資料整理中,敬請期待!'; } } } if($getId > 0){ $ShowList = false; } ?> <?=$rsSiteConfig[0]['site_name']?>
query($sql); $SubNavNum = $db->resultNum; if($SubNavNum>1){ include('panel_sub_nav.php'); }else{ include ('panel_in_left.php'); } ?>
    pageSize = 15; $sp->currentPage = $sr->request('page','int','get'); $sql = 'select id,title,release_date from article where column_id = '.$column_id.' and is_show = 1 order by is_recommend desc,range_num,id desc'; $rs = $sp->query($sql); $rsNum = $sp->resultNum; for($i=0;$i<$rsNum;$i++){ echo '
  • '.$rs[$i]['title'].'
  • '; } ?>
getHtmlCode(); ?>
query($sql); echo '
'.$rs[0]['title'].'
'; if(!empty($rs[0]['intro'])){ echo '
'.$rs[0]['intro'].'
'; } echo '
問題解答
'.$rs[0]['content'].'
'; } }else{ echo $errMsg; } ?>