{dede:include filename="head.htm"/}
最新入库推荐小说
最近更新小说章节
{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 "
".$row[
"; 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 .= " "; } 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:include filename="footer.htm"/}