{dede:php}
$dsql->SetQuery("select id from dede_arctype where reid=6");
$dsql->Execute();
while($roww = $dsql->GetArray()){
$typeids[]=$roww['id'];
}
foreach ($typeids as $typeid)
{
$typeidlist1 .= $typeid.",";
}
$typeidlist=substr($typeidlist1,0,strlen($typeidlist1)-1);
$dsql->SetQuery("select * from dede_archives where typeid in ($typeidlist) and CONCAT(',', typeid2, ',') LIKE '%$tid%'");
$dsql->Execute();
while($row = $dsql->GetArray()){
$row1 = GetOneArchive($row['id']);
$arcurl=$row1['arcurl'];
$title=$row['title'];
$litpic_2=$row['litpic_2'];
echo "
";
}
{/dede:php}