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

电子政务应用

开发平台:

MultiPlatform

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