菜单
展开边栏 收起边栏

代码高亮测试!!!

{template "content","header"}
<div class="crumbs">
    <div class="wp"><i><img src="{APP_PATH}statics/style/images/mbx.png"></i><span>当前位置:</span><a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)} 列表</div>
</div>
<div class="w900">
    <div class="box c"> 
        <div class="h"> <span>{$catname}</span> </div>
       {pc:content action="category" catid="$top_parentid" num=""  siteid="$siteid" order="id ASC"}
   		<?php $kd = 1/count($data)*100;$kd = $kd."%";?>	
        

        <div class="hb" style="display:none">
            <ul>
                {loop $data $r}
                <li style="width:{$kd};"{if $catid==$r[catid]} class="no"{/if}><a href="{$r[url]}">{$r[catname]}</a></li>
                {/loop}
            </ul>
        </div>

        {pc:content action="lists" catid="$catid" order=id DESC" num="10" moreinfo="1"  page="$page"}
        {loop $data $b}
        {php list($copyfrom) = explode('|', $b['copyfrom']);}
        <div class="tab_hot lists c"> 
            <div class="pic fl"{if $b[thumb]}{else}style=" display:none"{/if}> <a href="{$b[url]}" title="{$b[title]}" ><img src="{thumb($b[thumb], 230, 140,0)}" alt="{$r[title]}"></a> </div>
            
            <div class="a_lists{if $b[thumb]} p{/if}">
                <h1> <a href="{$b[url]}">{$b[title]}</a> </h1>
                <p>{$b[description]}</p>
                <p><span>{if $copyfrom}{$copyfrom}{else}恒旅网{/if}</span><!--span>点击数:<i id="hits{$b[id]}">0</i></span--></p>
            </div>
        </div>
        {if $n!=1}
        <?php $c=","; ?>
        {/if}
        <?php $ids.=$c.$b[id]; ?>
        {/loop} 
        {if $pages}<div id="pages" class="pages c">{$pages}</div>{/if}
        <script language="JavaScript" src="{APP_PATH}api.php?op=count_lists&ids={$ids}&modelid={$modelid}"></script> 
        {/PC} </div>
</div>
<div class="w280"> {template "content","a1_l"} </div>
{template "content","footer"}

 

Copyright © 2008-. JiangFei.net all rights reserved
苏公网安备32048202001026号苏ICP备18062911号