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

📄 yd631_angela_admin.asp

📁 一个简单适用的产品订购系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="yd631_conn.asp"-->
<!--#include file="md5.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后台管理//YD631_Angela_Order2.0 简易产品定单系统</title>
<link href="yd631_style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<SCRIPT language=JavaScript>
<!-- 
function form1_onsubmit()
{
if (document.form1.yd631_username.value=="")
    {
      alert("后台登陆用户名一定要填写!")
      document.form1.yd631_username.focus()
      return false
     }
else if(document.form1.yd631_password.value=="")
    { 
      alert("后台登陆密码一定要填写!")
      document.form1.yd631_password.focus()
      return false
     } 

}
-->
</SCRIPT>
</head>

<body><center>
<%if request.Form("sub")="sub" then
  yd631_username=trim(request.Form("yd631_username"))
  yd631_username=replace(yd631_username,"'","")
  yd631_password=trim(request.Form("yd631_password"))
  yd631_password=replace(yd631_password,"'","")
  yd631_password=md5(yd631_password)
  if yd631_username="" or yd631_password="" then
  response.Redirect("yd631_angela_admin.asp")
  else
  set rs=server.CreateObject("adodb.recordset")
  sql="select * from yd631_angela_admin where angela_username='"&yd631_username&"' and angela_password='"&yd631_password&"'"
  rs.open sql,conn,1,1
  if not (rs.eof and rs.bof) then
  session("yd631_angela")="yd631_angela"
  response.Redirect("yd631_angela_main.asp")
  else
  response.write "<SCRIPT language=JavaScript>alert('用户名或密码不正确!');"
	response.write "this.location.href='vbscript:history.back()';</SCRIPT>"
	response.end
	end if
	end if 
	rs.close
	set rs=nothing	
	end if
	%>
  <form action="yd631_angela_admin.asp"  method="post" name="form1" onSubmit="return form1_onsubmit()">
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <table width="496" height="288" border="0" cellpadding="0" cellspacing="0" class="linetable">
      <tr>
        <td align="left" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="28" align="center" bgcolor="#006699"><span class="style1">YD631_Angela_Order1.0 简易产品定单系统</span></td>
          </tr>
        </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="yd631_img/login.jpg" width="494" height="171"></td>
            </tr>
          </table>
          <table width="100%" height="88"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="31%" align="right" bgcolor="#E6E6E6">用户名:</td>
              <td width="69%" bgcolor="#E6E6E6"><input name="yd631_username" type="text" id="yd631_username" size="15"></td>
            </tr>
            <tr>
              <td align="right" bgcolor="#E6E6E6">密 码:</td>
              <td bgcolor="#E6E6E6"><input name="yd631_password" type="password" id="yd631_password" size="15"></td>
            </tr>
            <tr>
              <td bgcolor="#E6E6E6">&nbsp;</td>
              <td bgcolor="#E6E6E6"><input type="submit" name="Submit" value=" 提交 ">   
                <input onClick="javascript:window.opener=null;window.close();" type=button value=" 关闭 "> 
				<input type="hidden" name="sub" value="sub">
                </td>
            </tr>
          </table></td>
      </tr>
    </table>
    <p>&nbsp;</p>
  </form>
</center>

</body>
</html>

⌨️ 快捷键说明

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