寄秋随笔

专题性学习网站构件平台

学习了一下dlog4j_v3中发现的错误

<div id="float_bar">
    <div class="logo fleft">
     <a href="http://www.dlog.cn"><b>Powered by DLOG4J</b></a>   
    </div>
    <div class="link fright">         
        #if($g_user)
            $text.ui("label.welcome.msg",[${g_user.nickname}])&nbsp;|&nbsp;
      #if($g_user && ${g_user.ownSiteId}>0 && $g_site_id != ${g_user.ownSiteId})
      <a href="${app_url}/?sid=${g_user.ownSiteId}">我的网记</a>&nbsp;|&nbsp;
   #end
   #if(!$g_user || ${g_user.ownSiteId}<=0)
   <a href="${app_url}/dlog/new_site.vm?sid=${g_site_id}"><b>开通个人网记</b></a>&nbsp;|&nbsp;
      #end
            <a href="$dlog.root()/dlog/listmsg.vm?sid=$g_site_id">$text.ui("label.message")</a>
   #if(!$skip_new_msg && $dlog.has_new_msg($g_site, $g_user))
   <span id="newMessage">
            <a href="$dlog.root()/dlog/listmsg.vm?sid=${g_site_id}&amp;msg=0" onclick="javascript:newMessage.style.visibility='hidden';">               
   $html.img("newmsg.gif",null,null,"absmiddle",0)</a>
   </span>
         <bgsound src='$dlog.root()/msg.mid' border='0'>
            #end
   |&nbsp;<a href="$dlog.root()/dlog/bookmark.vm?sid=$g_site_id">$text.ui("label.bookmark")</a>
   |&nbsp;<a href="$dlog.root()/dlog/friends.vm?sid=$g_site_id">好友</a>
   |&nbsp;<a href="$dlog.root()/dlog/blacklist.vm?sid=$g_site_id">黑名单</a>
   |&nbsp;<a href="$dlog.root()/dlog/myprofile.vm?sid=$g_site_id">$text.ui("label.profile")</a>
   |&nbsp;<a href="$dlog.root()/dlog/user.do?sid=$g_site_id&amp;eventSubmit_Logout=$link.encodeURL($dlog.get_request_url())">$text.ui("label.logout")</a>
        #else
   <a href="${app_url}/dlog/new_site.vm?sid=${g_site_id}"><b>开通个人网记</b></a>&nbsp;|&nbsp;
            <a href="$dlog.root()/dlog/login.vm?sid=$g_site_id&amp;fromPage=$link.encodeURL($dlog.get_request_url())">$text.ui("label.login")</a>&nbsp;|&nbsp;
            <a href="$dlog.root()/dlog/reguser.vm?sid=$g_site_id">$text.ui("label.register")</a>
        #end
        |&nbsp;<a href="$dlog.root()/html/search.vm?sid=$g_site_id">$text.ui("label.search")</a>
    </div>
 <div class="spacer_1"></div>
</div>
修改成
<div id="float_bar">
    <div class="logo fleft">
     <a href="http://www.dlog.cn"><b>Powered by DLOG4J</b></a>   
    </div>
    <div class="link fright">         
        #if($g_user)
            $text.ui("label.welcome.msg",[${g_user.nickname}])&nbsp;|&nbsp;
      #if($g_user && ${g_user.ownSiteId}>0 && $g_site_id != ${g_user.ownSiteId})
      <a href="$dlog.root()/?sid=${g_user.ownSiteId}">我的网记</a>&nbsp;|&nbsp;
   #end
   #if(!$g_user || ${g_user.ownSiteId}<=0)
   <a href="$dlog.root()/dlog/new_site.vm?sid=${g_site_id}"><b>开通个人网记</b></a>&nbsp;|&nbsp;
      #end
            <a href="$dlog.root()/dlog/listmsg.vm?sid=$g_site_id">$text.ui("label.message")</a>
   #if(!$skip_new_msg && $dlog.has_new_msg($g_site, $g_user))
   <span id="newMessage">
            <a href="$dlog.root()/dlog/listmsg.vm?sid=${g_site_id}&amp;msg=0" onclick="javascript:newMessage.style.visibility='hidden';">               
   $html.img("newmsg.gif",null,null,"absmiddle",0)</a>
   </span>
         <bgsound src='$dlog.root()/msg.mid' border='0'>
            #end
   |&nbsp;<a href="$dlog.root()/dlog/bookmark.vm?sid=$g_site_id">$text.ui("label.bookmark")</a>
   |&nbsp;<a href="$dlog.root()/dlog/friends.vm?sid=$g_site_id">好友</a>
   |&nbsp;<a href="$dlog.root()/dlog/blacklist.vm?sid=$g_site_id">黑名单</a>
   |&nbsp;<a href="$dlog.root()/dlog/myprofile.vm?sid=$g_site_id">$text.ui("label.profile")</a>
   |&nbsp;<a href="$dlog.root()/dlog/user.do?sid=$g_site_id&amp;eventSubmit_Logout=$link.encodeURL($dlog.get_request_url())">$text.ui("label.logout")</a>
        #else
   <a href="$dlog.root()/dlog/new_site.vm?sid=${g_site_id}"><b>开通个人网记</b></a>&nbsp;|&nbsp;
            <a href="$dlog.root()/dlog/login.vm?sid=$g_site_id&amp;fromPage=$link.encodeURL($dlog.get_request_url())">$text.ui("label.login")</a>&nbsp;|&nbsp;
            <a href="$dlog.root()/dlog/reguser.vm?sid=$g_site_id">$text.ui("label.register")</a>
        #end
        |&nbsp;<a href="$dlog.root()/html/search.vm?sid=$g_site_id">$text.ui("label.search")</a>
    </div>
 <div class="spacer_1"></div>
</div>

posted on 2006-09-12 08:13 mingshg 阅读(219) 评论(1)  编辑  收藏

评论

# re: 学习了一下dlog4j_v3中发现的错误 2007-05-12 11:40 savage100

请问下,dlog4j_v3 头上面的"label.welcome.msg" 这些东西是不是现在还没有完成的??  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: