//limit条件
复制代码
$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 ";//二次开发——————————————————————————–
把上面的代码,添加到函数lib_channel(具体位置为:)
复制代码
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;———————————————————-
这段代码后面
所有查询条件的limit 0,$row改为$limitsql OK 保存