$limit = trim(eregi_replace('limit','',$limit)); if($limit!='') $limitsql = " limit $limit "; else $limitsql = " limit 0,7 "; $orwhere = ''; if(isset($orwheres[0])) { $orwhere = join(' And ',$orwheres); $orwhere = ereg_replace("^ And",'',$orwhere); $orwhere = ereg_replace("And[ ]{1,}And",'And ',$orwhere); } if($orwhere!='') $orwhere = " where $orwhere ";//二次開發(fā)--------------------------------------------------------------------------------
function lib_channel(&$ctag,&$refObj) { global $dsql; $attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|"; FillAttsDefault($ctag->CAttribute->Items,$attlist); extract($ctag->CAttribute->Items, EXTR_SKIP); $innertext = $ctag->GetInnerText(); $line = empty($row) ? 100 : $row;----------------------------------------------------------
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 織夢dedecms拓展channel標(biāo)簽實現(xiàn)limit功能