POST TIME:2021-05-23 03:01
$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 ";//二次开发
--------------------------------------------------------------------------------
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;
---------------------------------------------------------- 