微信关注,获取更多

帝国cms列表页实现每5条添加一条虚线分割线

帝国CMS列表页实现每隔几条信息列表,就添加一条虚线(想要实线,就用实线代码)+当天文章时间变红

使用灵动标签

 [e:loop={'news',15,18,0}]<?php
                          $ths='';
                          if($bqno%5==0)
                          {
                          $ths="<li class='height_5'></li>";
                          }
                          ?>
                          <?
                          $newstime=format_datetime($bqr[newstime],'m-d');
                          if(date('Y-m-d')==date('Y-m-d',$bqr[newstime]))
                          {
                          $newstime="<font color=red>$newstime</font>";
                          }
                          ?>
                          <li>
                          <a target="_blank" href="<?=$bqsr['titleurl']?>"><i></i><?=$bqr['title']?></a>
                          <span><?=$newstime?></span>
                          </li>
                          <?=$ths?>
                          [/e:loop]                 

未经允许不得转载:YESKYLOG » 帝国cms列表页实现每5条添加一条虚线分割线

登录

找回密码

注册

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏