{dede:include filename="head.htm"/}

{dede:php} global $dsql,$cfg_tui; $query = "SELECT * FROM `#@__arctype` WHERE id in ($cfg_tui) order by find_in_set(id,'".$cfg_tui."')"; $dsql->SetQuery($query); $dsql->Execute(); $s=""; while($row=$dsql->GetArray()){ preg_match("/src=\".*\"/Ui",$row["content"],$row["content"]); $row["content"]=$row["content"][0]; $typeurl=GetOneTypeUrlA($row); $s=$s."

- #### ".$row["typename"]."

"; } echo $s; {/dede:php}

##### 最新入库推荐小说

##### 最近更新小说章节

{dede:php} $query = "select * from `#@__arctype` order by id desc limit 0,8"; $dsql->SetQuery($query,"a"); $dsql->Execute("a"); while($row=$dsql->GetArray("a")){ $typeurl=GetOneTypeUrlA($row); preg_match("/src=\".*\"/Ui",$row["content"],$row["content"]); $row["content"]=$row["content"][0]; echo "
"; echo "
"; echo "

### ".$row['typename']."

作者：".$row['seotitle'].""; $arcstr = ''; $url=''; $dsql->SetQuery("Select * From #@__archives where typeid='".$row["id"]."' order by id desc limit 0,2","t"); $dsql->Execute('t'); while($row1 = $dsql->GetArray('t',MYSQL_ASSOC)){ $title=cn_substr($row1['title'],46); $id=$row1['id']; $url=GetOneArchive($id); $arcstr .= "
".$title."
"; } echo $arcstr; echo "

".cn_substrR($row['description'],140)." ...

"; echo"
"; } {/dede:php}

{dede:php} $dsql->SetQuery("select b.id,a.namerule,a.typename,a.typedir,b.title,b.pubdate from #@__arctype as a,#@__archives as b where a.id=b.typeid order by b.pubdate desc limit 0,48"); $t=array(); $dsql->Execute(); while($row=$dsql->GetArray()){ if(!$t[$row[typename]]){ $row["typedir"]=str_replace("{cmspath}","",$row["typedir"]); $row["namerule"]=date("Y",$row["pubdate"]); $row["namerule"].="/".date("m",$row["pubdate"]); $row["namerule"].=date("d",$row["pubdate"]); $row["namerule"].="/".$row["id"]; $row["namerule"]=$row["typedir"]."/".$row["id"].".html"; echo "
- [".$row["typename"]."]".$row["title"]."
"; $t[$row[typename]]=True; if(count($t)==13){ break; } } } {/dede:php}

##### 友情链接

{dede:flink/}

{dede:include filename="footer.htm"/}