{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."
{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 "