织梦dedecms自定义标签liketags调用tag/keyword相同的相关文章(3)

                     $typeid = " And arc.typeid in($typeid) And arc.id<>$arcid ";

                 } 

                 $idsStr = join(',', $ids); 

                 $query = "Select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule, 

                 tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath 

                 from `dede_archives` arc left join `dede_arctype` tp on arc.typeid=tp.id 

                 where arc.id in($idsStr) $typeid order by arc.id desc limit 0, $row";

             }

             else

             {

                 $limitRow = $row - count($ids); 

                 $keyword = ''; 

                 if(!empty($refObj->Fields['keywords']))

                 {

                     $keywords = explode(',' , trim($refObj->Fields['keywords']));

                     $keyword = '';

                     $n = 1;

                     foreach($keywords as $k)

                     {

                         if($n > 3)  break;

  

                         if(trim($k)=='') continue;

                         else $k = addslashes($k);

  

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/6c6fba2fe861ebb8814605b843aea190.html