phpcms之首页组成(二)

{pc:content action="lists" catid="33" order="id ASC" num="6" moreinfo="1"}
            {loop $data $val}
                <div class="swiper-slide">
                    <!-- indser_box start -->
                    <div class="indpro_box">
                        <!-- indser_btop  start -->
                        {if $val['id'] == 28}
                        <div class="indpro_btop indpro1">
                            <span class="glyphicon glyphicon-fast-backward" aria-hidden="true"></span>
                        {elseif $val['id'] == 29}
                        <div class="indpro_btop indpro2">
                            <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
                        {elseif $val['id'] == 30}
                        <div class="indpro_btop indpro3">
                            <span class="glyphicon glyphicon-headphones" aria-hidden="true"></span>
                        {elseif $val['id'] == 31}
                        <div class="indpro_btop indpro4">
                            <span class="glyphicon glyphicon-print" aria-hidden="true"></span>    
                        {elseif $val['id'] == 32}
                        <div class="indpro_btop indpro5">
                            <span class="glyphicon glyphicon-print" aria-hidden="true"></span>
                        {elseif $val['id'] == 33}
                        <div class="indpro_btop indpro6">
                            <span class="glyphicon glyphicon-print" aria-hidden="true"></span>
                        {/if}    
                            <h3>{$val['title']}</h3>
                        </div>
                        <!-- indser_btop end -->
                        
                        <!-- indser_btxt start -->
                        <div class="indpro_btxt">
                            <p>{$val['description']}</p> 
                            <a class="indpro_btn" href="" role="button">这是按钮</a>
                        </div>
                        <!-- indser_btxt end -->
                    </div>
                <!-- indser_box end -->
              </div>
            {/loop}
            {/pc}

 

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