鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > cms安装教程 > phpcms > >

phpcms2008 if else 实战应用

来源:互联网 作者:佚名 时间:2015-08-11 10:05
[html] ul class="list3" id=myTab3 {get sql="select * from `phpcms_category` where style = ' b' order by listorder"} li {if $n == 1} class=active {else} class=normal {/if} onmouseover=nTabs(this,?php echo $n-1;?); {$r[catname]} /li {/get} /

[html]
<ul class="list3" id=myTab3> 
   {get sql="select * from `phpcms_category` where style = ' b'  order by listorder"} 
   <li   
    
   {if $n == 1} class=active {else} class=normal {/if} onmouseover=nTabs(this,<?php echo $n-1;?>);> 
   {$r[catname]} 
    
   </li> 
   {/get} 
 </ul> 
 <!-- <li   class=active  onmouseover=nTabs(this,0);>失眠症</li> 

 <ul class="list3" id=myTab3>
    {get sql="select * from `phpcms_category` where style = ' b'  order by listorder"}
    <li 
   
    {if $n == 1} class=active {else} class=normal {/if} onmouseover=nTabs(this,<?php echo $n-1;?>);>
    {$r[catname]}
   
    </li>
    {/get}
  </ul>
  <!-- <li   class=active  onmouseover=nTabs(this,0);>失眠症</li>

 

网友评论
<