备忘

                <!--~ 通知公告 begin~-->
                <div class="rightbox3 mt5">
                    <div class="bar1" id="CTab_6">
                        <a href="#CShow_6" class="s">通知公告</a>
                    </div>
                    <div>
                        <div id="CShow_6" class="body">
                            <jcms:contentloop channelid="8" classid="2" repeatnum="8"  depth="0" fields="[title],[tcolor],[adddate]" 
                                orderfield="[adddate]">
                            <dl class="ranklist">
                                <#foreach collection="${contents}" var="field" index="i">
                                    <#if test="${i lt 4}">
                                        <#if test="${equals(i,1)}">
                                                            <dt class="nobd"><span class="ranknum rn_red">${i}</span>
                                                            <a href="$_{url}" target="_blank" title="${field.title}">
                                                                <#cutstring len="27">${field.title}<#/cutstring>
                                                                <#if test="${ createtypereference("System.DateTime").Now.AddDays(-7) lt field.adddate}">
                                                                        <img src={site.Dir}themes/default/images/new.gif  border=0 alt=new />
                                                                <#/if>
                                                            </a>
                                                            </dt>
                                        <#else>
                                                            <dt><span class="ranknum rn_red">${i}</span><a href="$_{url}" target="_blank" title="${field.title}">
                                                                <#cutstring len="27">${field.title}<#/cutstring>
                                                                <#if test="${ createtypereference("System.DateTime").Now.AddDays(-7) lt field.adddate}">
                                                                        <img src={site.Dir}themes/default/images/new.gif  border=0 alt=new />
                                                                <#/if>
                                                            </a></dt>
                                        <#/if>
                                    <#else>
                                                        <dt><span class="ranknum">${i}</span><a href="$_{url}" target="_blank" title="${field.title}">
                                                               <#cutstring len="27">${field.title}<#/cutstring>
                                                                <#if test="${ createtypereference("System.DateTime").Now.AddDays(-7) lt field.adddate}">
                                                                        <img src={site.Dir}themes/default/images/new.gif  border=0 alt=new />
                                                                <#/if>
                                                        </a></dt>
                                    <#/if>
                                <#/foreach>
                            </dl>
                            </jcms:contentloop>
                        </div>
                    </div>
                </div>
                <!--~ 通知公告 end ~-->

 

posted @ 2013-05-02 09:36  shiningrise  阅读(187)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css