{eyou:if condition='((int)$parentid === 38)'}
{eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
{eyou:type typeid='$kp.id' empty='暂时没有数据'}
{$field.typename}
{/eyou:type}
{/eyou:sql}
{eyou:else /}
{eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
{eyou:sql sql="$sql2" cachetime='3600' id='field99'}
{$kp.typename}
{/eyou:sql}
{/eyou:sql}
{/eyou:if}
上一篇
下一篇
$catid and grade=1 and topid=38 and parent_id=38 and is_del=0 ORDER BY add_time asc LIMIT 1)";
}else{
$sql = "SELECT * FROM ey_arctype_cat WHERE id = (SELECT id FROM ey_arctype_cat WHERE id>$catid and parent_id=$parentid and is_del=0 ORDER BY add_time asc LIMIT 1)";
}
?>
{eyou:if condition='((int)$parentid === 38)'}
{eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
{eyou:type typeid='$kp.id' empty='暂时没有数据'}
{$field.typename}
{/eyou:type}
{/eyou:sql}
{eyou:else /}
{eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
{eyou:sql sql="$sql2" cachetime='3600' id='field99'}
{$kp.typename}
{/eyou:sql}
{/eyou:sql}
{/eyou:if}