织梦DedeCMS给栏目加一个英文栏目名字段
第一处:
if($type==’top’)
{
$sql = “SELECT id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
From `#分隔符@__arctype` WHERE reid=0 And ishidden<>1 order by sortrank asc limit 0, $line “;
}
else if($type==’son’)
{
if($typeid==0) return ”;
$sql = “SELECT id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
From `#分隔符@__arctype` WHERE reid=’$typeid’ And ishidden<>1 order by sortrank asc limit 0, $line “;
}
else if($type==’self’)
{
if($reid==0) return ”;
$sql = “SELECT id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
FROM `#分隔符@__arctype` WHERE reid=’$reid’ And ishidden<>1 order by sortrank asc limit 0, $line “;
}
第二处:
//如果用子栏目模式,当没有子栏目时显示同级栏目
if($type==’son’ && $reid!=0 && $totalRow==0)
{
$sql = “SELECT id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
FROM `#分隔符@__arctype` WHERE reid=’$reid’ And ishidden<>1 order by sortrank asc limit 0, $line “;
$dsql->SetQuery($sql);
$dsql->Execute();
}
☉本站提供的源码、模板、软件工具等其他资源,都不包含技术服务,请大家谅解!
pbootcms模板网 » 织梦DedeCMS给栏目加一个英文栏目名字段