帝国cms列表内容模板多图不同样式展示

多图不同样式展示

多图不同样式展示,
列表内容模板(list.var) (*)
代码如下:注意:一定要勾选(使用程序代码)


$fr=$empire->fetch1("select newstext from {$dbtbpre}ecms_news_data_{$r[stb]} where id='$r[id]'");
$neirong=$fr['newstext'];
$imgcount=substr_count($neirong,"3){
$tmpimg ='';
$pattern='//';
preg_match_all($pattern,$neirong,$match);
for($j=0;$j<4;$j++){
$tmpimg.='



'; } $listtemp='
  • [!--title--]

    '.$tmpimg.'

    [!--smalltext--]...

    [!--writer--][!--newstime--][!--this.classname--]

  • '; } else if(empty($r[titlepic])){ $listtemp='
  • [!--title--]

    [!--smalltext--]

    '.$writer.'[!--newstime--]'.$class_r[$r[classid]]['classname'].'

    阅读更多
  • '; } else{ $listtemp='
  • [!--title--]

    [!--this.classname--][!--title--]

    [!--smalltext--]...

    [!--writer--][!--newstime--][!--this.classname--]

  • '; }

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用 * 标注