//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 "; // 二次开发
}
$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;
如果您还有其他关于Dedecms开发的问题,欢迎继续探讨!
请注意,在进行任何核心文件修改之前,请务必备份原始文件,以防止意外情况导致网站无法正常运行。