寄秋随笔

专题性学习网站构件平台

2006年9月8日 #

学习了一下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 @ 2006-09-12 08:13 mingshg 阅读(219) | 评论 (1)编辑 收藏

听杨振宁专题讲座《我的生平》感悟

人的一生要经历很多的事情,才能不断的成长,要经历很多的挫折才能不断的进步;
人的一生要有信念、有目标,才能向成功的方向努力;
自己的成功不是必然,要靠机遇,有好的导师的指导!

posted @ 2006-09-08 08:09 mingshg 阅读(238) | 评论 (0)编辑 收藏