⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 board3.jsp

📁 该系统是jsp+mysql+javabean的大型购物和新闻系统。 修订了1.0版本的一些BUG. 在1.0版本的基础之上
💻 JSP
字号:
<%
      if(session.getAttribute("id") == null || session.getAttribute("id") == "")
       {
         %>       
<form action="../user/log.jsp" name="form1" method="post">
<input type=hidden name="action" value="login">  
<input type=hidden name="nextpage" value="login">           
        <tr> 
          <td width="150" height="22" background="images/hydl3.jpg"> 
          <div align="center"><font size="2">会员登陆</font></div></td>
        </tr>
        <tr> 
          <td background="images/hydl.jpg"> <div align="center"> 
              <table width="150" border="0" cellspacing="0" cellpadding="0">
                <tr valign="bottom"> 
                  <td width="71" height="28"> <div align="center"><font size="2">会员名:</font></div></td>
                  <td width="79" height="28"><strong><font size="2"> 
                    <input name="username" type="text" size="8">
                    </font></strong></td>
                </tr>
                <tr> 
                  <td height="28"> <div align="center"><font size="2">密 码:</font></div></td>
                  <td height="28"><strong><font size="2"> 
                    <input name="password" type="password" size="8">
                    </font></strong></td>
                </tr>
              </table>
            </div></td>
        </tr>
        <tr> 
          <td height="30" background="images/hydl.jpg"> 
          <div align="center"><strong>
           <a href="javascript:judegpwduser()"><img src="images/login1.gif" width="34" height="20"border=0></a>&nbsp; 
              <a href="../user/register.jsp"><img src="images/reg.gif" width="34" height="20" border=0></a>
              </strong>
              </div>
          </td>
        </tr>
<script language="javascript">
 function judegpwduser()
 {
    if(document.form1.username.value==null||document.form1.username.value=="")
     {
        alert("请输入用户名!");
        document.form1.username.focus();
        return;
     }

    if(document.form1.password.value==null||document.form1.password.value=="")
     {
        alert("请输入密码!");
        document.form1.username.focus();
        return;
     }
    document.form1.submit();
 }
</script>          
        <tr> 
          <td height="5" background="images/hydl.jpg"> <div align="center"><img src="images/tmtp.gif" width="2" height="2"></div></td>
        </tr>
</form>  
  <%
   }
  else
   {
      %>
        <tr> 
          <td width="150" height="22" background="images/hydl3.jpg"> 
          <div align="center"><font size="2">会员信息:</font></div></td>
        </tr>
        <tr> 
          <td background="images/hydl.jpg"> <div align="center"> 
              <table width="150" border="0" cellspacing="0" cellpadding="0">
                <tr valign="bottom"> 
                  <td width="71" height="28"> <div align="center"><font size="2">会员ID:</font></div></td>
                  <td width="79" height="28"><strong><font size="2"> 
                     <%=session.getAttribute("id")%>
                    </font></strong></td>
                </tr>
                <tr> 
                  <td height="28"> <div align="center"><font size="2">昵    称:</font></div></td>
                  <td height="28"><strong><font size="2"> 
                    <%=((String)session.getAttribute("nickname"))%>
                    </font></strong></td>
                </tr>
              </table>
            </div></td>
        </tr>      
      
      <%
   } 
  %> 

⌨️ 快捷键说明

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