ASP 文字颜色问题

来源:百度知道 编辑:UC知道 时间:2024/05/02 09:05:19
http://yp.shunderen.com/flower/listall.asp

订单里面的"未处理"和"已处理"的颜色不同.是怎么实现的.谢谢

if判断啊,从数据中读取的字段如果是已处理,就打印<font color=red>已处理</font>.
如果是处理中,就打印<font color=green>处理中</font>

假设审核字段为 is_checked, 值为 1(已处理) : 0 (未处理)

<%
if rs("is_checked") = "1" then
response.write "<span style='color:#FF0000'>已处理</span>"
else
response.write "<span style='color:#00FF00'>未处理</span>"
end if
%>