日期:2014-05-16  浏览次数:20448 次

smart模板条件语句的用法
smart模板条件语句的用法,下面这样两个条件写到一起表达正确吗?
<!--{if $login.info.avatarflag != '0'}-->
            <!--{if $u.avatarflag == 0}--> 
     &nbsp;&nbsp;<a class="ser" href="javascript:void(0);"><button type="submit">搜 索</button></a>
        <a class="search_all" href="<!--{$urlpath}-->index.php?c=user&a=advsearch" id="searchMore"><span class="">更多搜索</span></a>
         <!--{else}-->
       &nbsp;&nbsp;<a class="ser" href="javascript:void(0);"><button type="button" onclick="window.location.href('http://www.568gb.com/1.html')">搜 索</button></a>
  <a class="search_all" href="http://www.568gb.com/1.html" id="searchMore"><span class="">更多搜索</span></a>
            <!--{/if}-->
           <!--{/if}-->
           
------解决方案--------------------
正确