<jsp:useBean id="db" scope="page" class="chatweb.conn" />
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@include file="Common.jsp" %>
<html>
<head>
<title> welcome </title>
<link href="chat.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body bgcolor="#FEC01D" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="185" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="180" align="right" valign="top" nowrap> <img src="images/logo_red.jpg" width="167" height="172"></td>
    <td height="160" align="left" valign="bottom" nowrap>
        <table width="0" border="0" align="left" cellpadding="0" cellspacing="5">
          <tr>
            <td height="120">&nbsp;</td>
          </tr>
          <tr>
            <td><font color="#0000FF">
              <%
	if(session.getAttribute("username")==null){//还没登陆
	%>
            你还没有登陆！！！
            <%}else{%>
              <span class="shadow"><%=getStr(session.getAttribute("username").toString())%> </span><a href="member/logout.jsp" target="_parent">退出</a>
              <a href="#" onClick="MM_openBrWindow('message/message.jsp','message','scrollbars=yes,width=500,height=400')">短消息</a>
			  <%if(session.getAttribute("grade").toString().equals("1")){%>
            <a href="member/manage.jsp" target="_blank">管理页面</a>
            <%}else{%>
              <a href="#" onClick="MM_openBrWindow('member/modify.jsp','modify','scrollbars=yes,width=500,height=400')">修改密码</a></font>
			  <%}%></td>
          </tr>
          <tr>
            <td><font color="#FF0000"><%=db.checkNewMsg(session.getAttribute("username").toString())%></font><font color="#0000FF">条新短信息</font>
			 <%}%>
			</td>
          </tr>
        </table>

      <div align="right"><font color="#0000FF"> </font> <img src="images/ren_red.jpg" width="320" height="185" vspace="0" align="baseline">
      </div></td>
  </tr>
</table>
</body>
</html>
