phpcms2008 if else语句实战应用
发布时间:2016-12-23 来源:查字典编辑
摘要:{getsql="select*from`phpcms_category`wherestyle='b'orderbylistorder"}
<ul 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>