www.gusucode.com > DEDECMS精简版 织梦CMS系统企业精简版 v3.0.1.2源码程序 > cloudcms_v3.0.1.2/include/taglib/channel/specialtopic.lib.php
<?php if(!defined('DEDEINC')) exit('Request Error!'); function ch_specialtopic($noteinfo, $arcTag, $refObj, $fname='') { require_once(DEDEINC.'/taglib/arclist.lib.php'); if($noteinfo=='') return ''; $noteid = $arcTag->GetAtt('noteid'); $rvalue = ''; $tempStr = GetSysTemplets('channel_spec_note.htm'); $dtp = new DedeTagParse(); $dtp->LoadSource($noteinfo); if(is_array($dtp->CTags)) { foreach($dtp->CTags as $k=>$ctag) { $notename = $ctag->GetAtt('name'); if($noteid != '' && $ctag->GetAtt('noteid') != $noteid) { continue; } $isauto = $ctag->GetAtt('isauto'); $idlist = trim($ctag->GetAtt('idlist')); $rownum = trim($ctag->GetAtt('rownum')); $keywords = ''; $stypeid = 0; if(empty($rownum)) $rownum = 40; if($isauto==1) { $idlist = ''; $keywords = trim($ctag->GetAtt('keywords')); $stypeid = $ctag->GetAtt('typeid'); } $listTemplet = trim($ctag->GetInnerText())!='' ? $ctag->GetInnerText() : GetSysTemplets('spec_arclist.htm'); $idvalue = lib_arclistDone ( $refObj, $ctag, $stypeid, $rownum, $ctag->GetAtt('col'), $ctag->GetAtt('titlelen'),$ctag->GetAtt('infolen'), $ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), 'all', 'default', $keywords, $listTemplet, 0, $idlist, $ctag->GetAtt('channel'), '', $ctag->GetAtt('att') ); $notestr = str_replace('~notename~', $notename, $tempStr); $notestr = str_replace('~spec_arclist~', $idvalue, $notestr); $rvalue .= $notestr; if($noteid != '' && $ctag->GetAtt('noteid')==$noteid) break; } } $dtp->Clear(); return $rvalue; }