phpcms之首页组成(三)

{pc:content action="lists" catid="39" order="id ASC" num="3" }
                        {loop $data $val}
                            {if $val['id'] == 34}
                            <li class="indnews_first">
                                <a href="{$val[url]}" title="{$val['title']}">
                                    <img src="{$val['thumb']}" alt="{$val['title']}" title="{$val['title']}"/>
                                    <span class="indnews_first_title">{$val['title']}</span>
                                    <span class="indnews_first_desc">{$val['description']}</span>
                                </a>
                            </li>
                            {else}
                            <li class="indnews_newslist">
                                <a class="indnews_newslist_lnk" href="{$val[url]}" title="{$val['title']}"  target="_blank">
                                    <span class="indnews_newslist_type">{$val['title']}</span>
                                    {$val['description']}
                                    <span class="indnews_newslist_date">{date('m-d',$val['inputtime'])}</span>
                                </a>
                            </li>
                            {/if}
                            {/loop}
                            {/pc}

 

posted @ 2018-01-25 11:46  水瓶君  阅读(95)  评论(0编辑  收藏  举报