<%@ page contentType="text/html;charset=GBK" %>
<%
/**
 *	$RCSfile: loginbox.jsp,v $
 *	$Revision: 1.3 $
 *	$Date: 2002/09/30 14:56:16 $
 */
%>

<%  // 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="1" cellspacing="0" border="0" width="200">
    <tr><td colspan="2">
        <font class=p4 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"
        color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">
        欢迎您, <b>客人</b>.
        </font>
    </td></tr>
    <tr><td width="1%" nowrap><a href="login.jsp"><img src="images/login.gif" width="17" height="17" alt="登录或者创建一个新用户" border="0"></a></td>
        <td width="99%">
        <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"><a href="login.jsp" title="登录或者创建一个新用户">登陆 / 注册</a></font>
        </td>
    </tr>
    <tr><td width="1%" nowrap><a href="settings.jsp"><img src="images/prefs.gif" width="17" height="17" alt="修改您的浏览选项" border="0"></a></td>
        <td width="99%">
        <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"><a href="settings.jsp" title="修改您的浏览选项">访客设置</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="1" cellspacing="0" border="0" width="200">
    <tr><td colspan="2">
        <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>">
        欢迎您, <a href="profile.jsp?user=<%= pageUser.getID() %>"><b><%= pageUser.getUsername() %></b></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" alt="修改您的浏览选项和个人信息" border="0"></a></td>
        <td width="99%">
        <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"><a href="settings.jsp?user=<%= pageUser.getID() %>" title="修改您的浏览选项和个人信息">您的设置/配置文件</a></font>
        </td>
    </tr>
    <tr><td width="1%" nowrap><a href="watches.jsp"><img src="images/watch.gif" width="17" height="17" alt="查看您监控的主题" border="0"></a></td>
        <td width="99%">
        <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"><a href="watches.jsp" title="查看您监控的主题">论坛监控</a></font>
        </td>
    </tr>
    </table>

<%  } %>
