## {dede:global.cfg_webname/}-网站地图-全部小说

返回首页
{dede:php} global $dsql,$cfg_wapurl,$cfg_basehost; $query = "Select id,typedir,typename From `#@__arctype` where reid=0 And channeltype=1 And ishidden=0 And id not in(375,376,6981) And ispart<>2 order by sortrank"; $dsql->SetQuery($query); $dsql->Execute(); $a=0; while($row=$dsql->GetArray()){ $reid[$a]=$row['id']; $retypename[$a]=$row['typename']; $retypedir[$a]=$row['typedir']; $a++; } for($m=0;$m<$a;$m++) { echo '

### '.$retypename[$m].'

'; $query = "Select id,typedir,typename From `#@__arctype` where reid=".$reid[$m]." order by id"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()) { echo "
- ".$row['typename']."
- ".$row['typename']."txt下载
"; } echo '

'; } echo '

### 作品集

'; $query = "Select id,typedir,typename From `#@__arctype` where reid=45"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()) { echo "
- ".$row['typename']."作品集
"; } echo '

### 最新章节

'; $query = "Select a.id,a.title,b.typedir,b.typename FROM `#@__archives` a left join `#@__arctype` b on (b.id=a.typeid) order by id desc limit 5000"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()) { echo "
- [".$row['typename']."]".$row['title']."
"; } echo '

'; {/dede:php}