?? yd631_angela_mm.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="yd631_conn.asp"-->
<!--#include file="md5.asp"-->
<!--#include file="yd631_angela_session.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>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="yd631_style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style2 {color: #FF6600}
-->
</style>
<SCRIPT language=JavaScript>
<!--
function form1_onsubmit()
{
if (document.form1.yd631_mm.value=="")
{
alert("初始密碼不能為空!")
document.form1.yd631_mm.focus()
return false
}
else if(document.form1.angela_mm.value=="")
{
alert("修改密碼不能為空!")
document.form1.angela_mm.focus()
return false
}
}
-->
</SCRIPT>
</head>
<body>
<%if request.Form("sub")="sub" then
yd631_mm=trim(request.form("yd631_mm"))
yd631_mm=md5(yd631_mm)
angela_mm=trim(request.form("angela_mm"))
angela_mm=md5(angela_mm)
set rs=server.CreateObject("adodb.recordset")
sql="select * from yd631_angela_admin"
rs.open sql,conn,3,3
if rs("angela_password")=yd631_mm then
rs("angela_password")=angela_mm
rs.update
response.write "<SCRIPT language=JavaScript>alert('密碼修改成功!');"
response.write "this.location.href='yd631_angela_mm.asp';</SCRIPT>"
response.end
else
response.write "<SCRIPT language=JavaScript>alert('初始密碼不正確!');"
response.write "this.location.href='vbscript:history.back()';</SCRIPT>"
response.end
end if
rs.close
set rs=nothing
end if
%>
<form name="form1" method="post" action="yd631_angela_mm.asp" onSubmit="return form1_onsubmit()"><table width="317" height="223" border="0" cellpadding="0" cellspacing="0" class="linetable">
<tr>
<td height="221" align="left" valign="top"><table width="100%" height="33" border="0" cellpadding="0" cellspacing="0" bgcolor="#0093D9">
<tr>
<td height="27" align="center"><span class="style1">產品定單系統密碼修改</span></td>
</tr>
<tr>
<td height="6" bgcolor="#006699"></td>
</tr>
</table>
<table width="100%" height="188" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="32%" align="right" bgcolor="#FFFFFF"><strong>初始密碼:</strong></td>
<td width="68%"><input name="yd631_mm" type="text" id="yd631_mm" size="20"></td>
</tr>
<tr bgcolor="#F2F2F2">
<td align="right"><strong>修改密碼:</strong></td>
<td><input name="angela_mm" type="text" id="angela_mm" size="20"></td>
</tr>
<tr>
<td align="right"> </td>
<td> </td>
</tr>
<tr align="center" bgcolor="#F2F2F2">
<td colspan="2"><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
<input type="hidden" name="sub" value="sub">
</td>
</tr>
<tr align="center">
<td height="22" colspan="2"><span class="style2"> YD631_Angela_Order 簡易產品定單系統 </span></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -