loginbox.jsp

来自「Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛」· JSP 代码 · 共 109 行

JSP
109
字号
<%/** *	$RCSfile: loginbox.jsp,v $ *	$Revision: 1.9 $ *	$Date: 2002/07/02 20:38:01 $ */%><%@ page import="java.util.*,                 com.jivesoftware.forum.*,                 com.jivesoftware.forum.util.*"%><%  // Display different options based on if the user is logged in. The "isGuest"    // variable is defined in global.jsp.    // If the user is not logged in, show a link to login and show guest settings    if (isGuest) {%>    <table cellpadding="3" cellspacing="0" border="0" width="200">    <%-- "Welcome Guest" row --%>    <tr><td colspan="2">            <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"             face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"             color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">            <%  // Indicate how to render the "Guest" username. Include any HTML markup                // you want in the String below:                List guestDisplay = new ArrayList(1);                guestDisplay.add("<i>" + SkinUtils.getLocalizedString("skin.default.global.guest",locale) + "</i>");            %>            <%= SkinUtils.getLocalizedString("skin.default.loginbox.welcome", locale, guestDisplay) %>            </font>    </td></tr>    <%-- "Login/Register" row --%>    <tr><td width="1%" nowrap><a href="auth.jsp"><img src="images/login.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.login_message",locale) %>" border="0"></a></td>        <td width="99%">            <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>"             face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>">            <%  if (!"false".equals(JiveGlobals.getJiveProperty("skin.default.newAccountCreationEnabled"))) { %>             <a href="auth.jsp" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.login_message",locale) %>"              ><%= SkinUtils.getLocalizedString("skin.default.loginbox.login_register",locale) %></a></font>            <%  } else { %>             <a href="auth.jsp" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.login",locale) %>"              ><%= SkinUtils.getLocalizedString("skin.default.global.login",locale) %></a></font>            <%  } %>        </td>    </tr>    <%-- "Guest Settings" row --%>    <tr><td width="1%" nowrap><a href="settings.jsp"><img src="images/prefs.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.click_to_view_preferences",locale) %>" border="0"></a></td>        <td width="99%">            <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>"             face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>">            <a href="settings.jsp" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.click_to_view_preferences",locale) %>"             ><%= SkinUtils.getLocalizedString("skin.default.loginbox.guest_settings",locale) %></a>            </font>        </td>    </tr>    </table><%  }    // If the user is logged in, show their username, a logout button    // and a link to the settings page.    else {%>    <table cellpadding="3" cellspacing="0" border="0" width="200">    <tr><td colspan="2">            <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"             face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>">        <%  // Indicate how to render the user's username. Include any HTML markup            // you want in the String below:            List usernameText = new ArrayList(1);            String profileURL = "profile.jsp?user=" + pageUser.getID();            usernameText.add("<a href=\"" + profileURL + "\">" + pageUser.getUsername() + "</a>");        %>            <%= SkinUtils.getLocalizedString("skin.default.loginbox.welcome", locale, usernameText) %>        </font>    </td></tr>    <tr><td width="1%" nowrap><a href="auth.jsp?logout=true"><img src="images/logout.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.click_logout",locale) %>" border="0"></a></td>        <td width="99%">            <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>"             face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>">            <a href="auth.jsp?logout=true" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.click_logout",locale) %>"             ><%= SkinUtils.getLocalizedString("skin.default.global.logout",locale) %></a>            </font>        </td>    </tr>    <tr><td width="1%" nowrap><a href="settings.jsp?user=<%= pageUser.getID() %>"><img src="images/prefs.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.change_prefs",locale) %>" border="0"></a></td>        <td width="99%">        <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>"         face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"        ><a href="settings.jsp?user=<%= pageUser.getID() %>" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.change_prefs",locale) %>"><%= SkinUtils.getLocalizedString("skin.default.loginbox.settings",locale) %></a>        </font>        </td>    </tr>    <tr><td width="1%" nowrap><a href="watches.jsp"><img src="images/watch.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.click_watches",locale) %>" border="0"></a></td>        <td width="99%">        <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>"         face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"        ><a href="watches.jsp" title="<%= SkinUtils.getLocalizedString("skin.default.loginbox.click_watches",locale) %>"><%= SkinUtils.getLocalizedString("skin.default.global.your_watches",locale) %></a>        </font>        </td>    </tr>    </table><%  } %>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?