Home  >  Article  >  Backend Development  >  phpcms2008 if else statement practical application

phpcms2008 if else statement practical application

PHP中文网
PHP中文网Original
2017-03-30 16:29:041400browse

if else is used in selection judgment. Next, I will introduce the application of phpcms2008 if else. Friends who are interested can refer to it. I hope it will be helpful to you. The help

code is as follows:

<ul class="list3" id=myTab3> 
{get sql="select * from `phpcms_category` where style = &#39; b&#39; 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>

The above is the content of the practical application of phpcms2008 if else statement. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn