[PHP] smarty模板引擎 if判断 →→→→→进入此内容的聊天室

来自 , 2019-02-13, 写在 PHP, 查看 134 次.
URL http://www.code666.cn/view/08f38e04
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title>{% $title %}</title>
  6. </head>
  7. <body>
  8. {% if $smarty.get.type == 'mr' %}
  9. 欢迎光临,{% $smarty.get.type %}
  10. {% else %}
  11. 对不起,您不是本站VIP,无权访问此栏目。
  12. {% /if %}
  13. </body>
  14. </html>
  15.  

回复 "smarty模板引擎 if判断"

这儿你可以回复上面这条便签

captcha