织梦cms实例教程:无法显示未审批文本文档的T
时间: 2021-02-22 22:54
浏览次数:
开启 /include/taglib/tag.lib.php 文档if(!empty($typeid))$addsql = where typeid= $typeid $dsql- SetQuery( Select tid From `dede_taglist` where arcrank =-1 $dsql- Execute(); $ids = while($row = $dsql- GetArray())
开启 /include/taglib/tag.lib.php 文档
if(!empty($typeid))
$addsql = where typeid= $typeid
$dsql- SetQuery( Select tid From `dede_taglist` where arcrank =-1
$dsql- Execute();
$ids =
while($row = $dsql- GetArray())
{
$tid = $row[ tid
$cquery = Select count(*) as dd From `dede_taglist` where tid = $tid and arcrank =-1
$crow = $dsql- GetOne($cquery);
if(!$crow[ dd ])
{
$ids .= ( $ids== ? $row[ tid ] : , .$row[ tid ] );
}
}
if($ids != )
{
$addsql= where id not in($ids)
}
if(!empty($typeid))
{
if($addsql)
{
$addsql= and typeid= $typeid
}else{
$addsql= where typeid= $typeid
}
}
$row[ keyword ] = $row[ tag
在其前边添加:
$rankrowss = $dsql - GetOne( SELECT count(tid) as rankcount FROM `js_taglist` WHERE tid = $row[id] and arcrank = 0
if($rankrowss[rankcount] == 0) continue;
根据之上二种方式便可以完成无法显示未审批文本文档的tag了
dedecms模版,dedecms公司模版,dedecms新闻资讯模版,高档HTML5响应式模版,dedecms手机上模版,织梦cms模版实例教程,网站模版,网页页面模版,完全免费网页页面模版