destoon实现不同会员组公司名称显示不同的颜色的方法_PHP

WBOY
Release: 2016-05-31 19:30:11
Original
891 people have browsed it

很多时候在进行destoon开发的时,需要针对不同的会员组(如普通会员和VIP会员)其显示也要有所区别。本文即为destoon实现针对不同会员组公司名称显示不同颜色的实现方法。具体如下:

主要实现代码如下:

<a href="{$t[linkurl]}" rel="external nofollow" target="_blank"><strong class="px14">{if $t[groupid] == "8"}<font COLOR="red">{$t[company]}</font>{else}{$t[company]}{/if}</strong></a>

Copy after login

上述示例中即为if判断会员组ID为8的情况进行描红显示。读者还可以根据情况进行加粗或替换其他颜色显示。希望本文所述示例对大家的destoon开发有所帮助。

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!