毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 论文 >> 正文

JSP在线CD销售系统 第5页

更新时间:2007-11-1:  来源:毕业论文

管理员JSP登录界面adm_login.jsp

<!--<meta http-equiv="musiclist-Type" musiclist="text/html; charset=gb2312">-->
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page session="true" %>
<jsp:useBean id="alogin" scope="page" class="cdshop.run.login" />
<%
String mesg = "";

if( request.getParameter("username")!=null && !request.getParameter("username").equals("")){
 String username =request.getParameter("username");
 String passwd = request.getParameter("passwd");
 username = new String(username.getBytes("ISO8859-1"));
 passwd = new String(passwd.getBytes("ISO8859-1"));
 alogin.setUsername(username);
 alogin.setPasswd(passwd);
 alogin.setIsadmin(true);
 if (alogin.excute()){
  session.setAttribute("admin","admin");
  response.sendRedirect("adm_user.jsp");   

 }else {
 mesg = "登录出错!" ;
 }
}
%>

<script language="javascript">
  function checkform() {
 if (document.form1.username.value=="" || document.form1.passwd.value==""){
  alert("用户名或密码为空!");
  return false;
 }
 return true;

  }
</script>
<%@include file="../inc/adm_head.inc"%>

<tr>
<td>&nbsp;</td>
</tr>
<tr>
<div align="center" bgcolor="#E4EDFB">
  <table width="778" border="0"  cellspacing="0" cellpadding="0" bgcolor="#E4EDFB" align="center">
    <tr>
      <td align="center">
        <form name="form1" method="post" action="adm_login.jsp">
      
          <table width="360" border="0" cellspacing="2" cellpadding="2" bgcolor="#E4EDFB" bordercolor="#66CCFF" style="font-size:9pt">
            <tr align="center">
              <td colspan="2">
                <h3><br>
                  <font color="#FF0000">在线CD销售管理系统</font></h3>
                <p>&nbsp;<% if (!mesg.equals("")){
      out.println(mesg);}%></p>
              </td>
            </tr>
            <tr>
              <td align="right" width="150">管理员:</td>
              <td>
                <input type="text" name="username" size="12" maxlength="20">
              </td>
            </tr>
            <tr>
              <td align="right" width="150">管理员密码:</td>
              <td>
                <input type="password" name="passwd" size="12" maxlength="20">
              </td>
            </tr>
            <tr align="center">
              <td colspan="2">
                <input type="submit" name="Submit" value="登录" onclick="javascript:return(checkform());">
                <input type="reset" name="Submit2" value="取消">
              </td>
            </tr>
            <tr align="center">
              <td colspan="2">测试用户:admin 密码:admin</td>
            </tr>
            <tr align="center">
              <td colspan="2"><A HREF="../index.jsp">返回首页</A></td>
            </tr>
          </table>
   </form>
        <p>&nbsp;</p>
       
      </td>
    </tr>
  </table>
</div>
</tr>

<%@include file="../inc/adm_tail.inc"%>若要更多,请联系站长QQ752018766,谢谢支持

上一页  [1] [2] [3] [4] [5] 

JSP在线CD销售系统 第5页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。