board2.jsp
上传用户:sami52198
上传日期:2010-02-11
资源大小:5174k
文件大小:4k
源码类别:

电子政务应用

开发平台:

MultiPlatform

  1.                         <form action="../user/log.jsp" name="form1" method="post">
  2.                          <input type=hidden name="action" value="login">  
  3.                          <input type=hidden name="nextpage" value="../news/index.jsp">                     
  4.                       <table width="165" border="0" align="center" cellpadding="0" cellspacing="0">    
  5.                           <tr valign="bottom"> 
  6.                             <td height="1" colspan="2">&nbsp;</td>
  7.                           </tr>                                         
  8. <%
  9.       if(session.getAttribute("id") == null || session.getAttribute("id") == "")
  10.        {
  11.          %>                 <tr valign="bottom">          
  12.                             <td width="68" height="15">
  13.                             <div align="center"><font size="2">会员名:</font></div></td>
  14.                             <td width="97" height="15"><strong><font size="2"> 
  15.                               </font></strong> <strong><font size="2"> 
  16.                               <input name="username" type="text" size="10">
  17.                               </font></strong></td>
  18.                           </tr>
  19.                           <tr> 
  20.                             <td height="15"> <div align="center"><font size="2">密 码:</font></div></td>
  21.                             <td height="15"><strong><font size="2"> 
  22.                               <input name="password" type="password" size="10">
  23.                               </font></strong></td>
  24.                           </tr>
  25.                           <tr valign="bottom"> 
  26.                             <td height="15" colspan="2"> <div align="center"><strong>
  27.                             <a href="javascript:judegpwduser()"><img src="images/login1.gif" width="34" height="20" border=0></a>&nbsp; 
  28.                                 <a href="../user/register.jsp"><img src="images/reg.gif" width="34" height="20" border=0></a></strong></div></td>
  29.                           </tr>
  30. <script language="javascript">
  31.  function judegpwduser()
  32.  {
  33.     if(document.form1.username.value==null||document.form1.username.value=="")
  34.      {
  35.         alert("请输入用户名!");
  36.         document.form1.username.focus();
  37.         return;
  38.      }
  39.     if(document.form1.password.value==null||document.form1.password.value=="")
  40.      {
  41.         alert("请输入密码!");
  42.         document.form1.username.focus();
  43.         return;
  44.      }
  45.     document.form1.submit();
  46.  }
  47. </script>                                  
  48.          <%
  49.        }
  50.       else
  51.        {
  52.          %>
  53.                 
  54.                           <tr> 
  55.                             <td height="28"> <div align="center"><font size="2">用户ID:&nbsp;</font></div></td>
  56.                             <td height="28"><strong><font size="2"> 
  57.                              <%=session.getAttribute("id")%>
  58.                               </font></strong></td>
  59.                           </tr>  
  60.                           <tr> 
  61.                             <td height="28"> <div align="center"><font size="2">用户昵称:&nbsp;</font></div></td>
  62.                             <td height="28"><strong><font size="2"> 
  63.                              <!--%=new String(((String)session.getAttribute("nickname")).getBytes("gb2312"),"ISO8859_1")%--><%=((String)session.getAttribute("nickname"))%>
  64.                               </font></strong></td>
  65.                           </tr> 
  66.                                                                    
  67.                          
  68.          <%
  69.        } 
  70. %>                                   
  71.                         </table>
  72. </form>