phpcms2008 if else statement practical application

PHP中文网
Release: 2023-02-28 19:08:01
Original
1407 people have browsed it

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>
Copy after login

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)!


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!