Copyright @ 2015-2024 织梦园 版权所有 Power by DedeCms
鲁ICP备15039853号-2

模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
| 
/**
 *  获取副栏目链接和名称
 *
 * @access    public
 * @param     string  $typeid2 副栏目id
 * @param     string  $result   输出
 * @return    string
 */
if(!function_exists('GetTypeid2'))
{
function GetTypeid2($typeid2)
{
global $dsql;
$result = '';
$query = "SELECT * FROM `dede_arctype` WHERE id IN($typeid2) AND ishidden<>1 ORDER BY FIELD(id,$typeid2)";
$dsql->Execute('t',$query);
while($row = $dsql->GetArray('t'))
{
$typeurl = GetOneTypeUrlA($row);
$result.= ($result=='' ? "<a href='{$typeurl}'>{$row['typename']}</a>" : ','."<a href='{$typeurl}'>{$row['typename']}</a>");
}
return $result;
}
} | 
| [field:typeid2 function=GetTypeid2(@me)/] | 
| 
{dede:field.typeid2 function=GetTypeid2(@me)/}
 | 
| 
if($CrossID=='') $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).')';
 | 
| 
if($CrossID=='') $orwheres[] = " (arc.typeid in (".GetSonIds($typeid).") or arc.typeid2 in (".GetSonIds($typeid).") or CONCAT( ',', arc.typeid2, ',' ) LIKE '%,".$typeid.",%' )"; | 
| 
else $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).','.$CrossID.')';
 | 
| 
else $orwheres[] = " (arc.typeid in (".GetSonIds($typeid).",".$CrossID.") or arc.typeid2 in (".GetSonIds($typeid).",".$CrossID.") or CONCAT( ',', arc.typeid2, ',' ) LIKE '%,".$typeid.",%')"; | 
| [field:typeid2 function=GetTypeid2(@me)/] |