📄 admin_modi.asp
字号:
<!--#include file="../../include/db.asp"-->
<!--#include file="../../include/admin_check.asp"-->
<!--#include file="power.asp"-->
<%
action=trim(request.querystring("action"))
Set conn = OpenOrGet_Database("sql_conn")
newsid=trim(Request("id"))
'得到项目列表
function Deal(initstring)
tempstring=replace(initstring,chr(39),"’")
tempstring=Replace(tempstring,"<","<")
tempstring=Replace(tempstring,">",">")
tempstring=replace(tempstring,chr(34),"“")
tempstring=replace(tempstring,chr(32)," ")
deal=(tempstring)
end function
function Dealname(mystring)
arrName=split(Cstr(mystring),chr(34))
Dealname=arrName(1)
end function
if action="modi" then
username=deal(request.form("username"))
userpass=deal(request.form("oldpass"))
selectsql="select id from bbs_user where username='"&username&"' and userpass='"&userpass&"'"
'response.write selectsql
'response.end
set checkRs=open_rs(conn,selectsql)
if checkrs.eof and checkrs.bof then
Response.Write "<script language=javascript>"
Response.Write "alert('您输入的用户名或密码有误!!');"
Response.Write "history.go(-1);"
Response.Write "</script>"
Response.End
end if
conn.execute "update bbs_user set userpass='"&deal(request.form("newpass"))&"'"
Response.Write "<script language=javascript>"
Response.Write "alert('操作成功!!');"
Response.Write "window.location.href='/admin/admin_index.asp';"
Response.Write "</script>"
Response.End
end if
%>
<html>
<head>
<title>深圳育才一小欢迎您!</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/include/page.css" type="text/css">
</head>
<body >
<table width="1" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="753" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><!--#include file="../../include/admin_banner.inc"--></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%"> </td>
<td width="99%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="td1"> </td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21%" valign="top"><!--#include file="../../include/admin_left.inc"--></td>
<td width="2%" valign="top"> </td>
<td width="77%" height=1 valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td background="/images/middle/m-bg.gif" width="70"><img src="/images/wzgl.gif"></td>
<td background="/images/middle/m-bg.gif" align="right"><img src="/images/middle/pacer1.gif" width="3" height="38"></td>
<td background="/images/middle/m-bg.gif" align="right" valign="middle" width="16"><a href=# onClick="more()"><img src="/images/middle/more.gif" width="16" height="16" border=0 alt="更多"></a></td>
<td background="/images/middle/m-bg.gif" align="right" width="8"><img src="/images/middle/pacer.gif" width="8" height="38"></td>
<td background="/images/middle/m-bg.gif" align="right" valign="middle" width="16"><a href=# onClick="help()"><img src="/images/middle/help.gif" width="16" height="16" border=0 alt="栏目帮助"></a></td>
<td width="6" align="right"><img src="/images/middle/M-r.gif" width="16" height="38"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="bg-left" width="6"><img src="/images/left/l-l.gif" border=0></td>
<td class="newsborder" width="100%" >
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="170" valign="top">
<table border=0 cellpadding=0 cellspacing=0 align="center" width="100%" height="100%">
<form name=dataform method=post action='<%=Request.ServerVariables("PATH_INFO")%>?action=modi'>
<tr>
<td class=tdsmall noWrap width="100" bgcolor="#f0f0e8">
<b>用户名:</b>
</td>
<td bgcolor="#f0f0e8" class="tdsmall">
<input name=username type=text style='HEIGHT: 22px; WIDTH: 150px' class='edline' maxlength="12" size="20" >
</td>
</tr>
<tr>
<td class=tdsmall noWrap bgcolor="#f0f0e8"> <b>旧密码:</b>
</td>
<td bgcolor="#f0f0e8" class="tdsmall">
<input name=oldpass type=password style='HEIGHT: 22px; WIDTH: 150px' class='edline' maxlength="12" size="20" >
</td>
</tr>
<tr>
<td class=tdsmall noWrap bgcolor="#f0f0e8"><b> 新密码:</b></td>
<td bgcolor="#f0f0e8" class="tdsmall">
<input name=newpass type=password style='HEIGHT: 22px; WIDTH: 150px' class='edline' maxlength="12" size="20" >
</td>
</tr>
<tr>
<td class=tdsmall noWrap bgcolor="#f0f0e8"><b> 确认密码:</b></td>
<td bgcolor="#f0f0e8" class="tdsmall">
<input name=userpass2 type=password style='HEIGHT: 22px; WIDTH: 150px' class='edline' maxlength="12" size="20" >
</td>
</tr>
</form>
</table>
</td>
</tr>
<tr>
<td height="20" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="50%" height="30">
<table border=0 cellpadding=0 cellspacing=0>
<tr><td><img border=0 src="/images/left/s-l.gif"></td><td background="/images/left/s-bg.gif" class=button noWrap> <a href="javascript:checkform2();">提 交</a> </td>
<td><img border=0
src="/images/left/s-r.gif"></td>
<td width="20"></td>
<td><img border=0
src="/images/left/s-l.gif"></td>
<td background="/images/left/s-bg.gif"
class=button noWrap> <a href="javascript:history.go(-1);">返 回</a> </td>
<td><img border=0
src="/images/left/s-r.gif"></td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="bg_right" width="6"><img src="/images/left/l-r.gif" border=0></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top" class="xxtz_bg">
<td width="6"><img src="/images/middle/m_left.gif" width="13" height="8"></td>
<td width="100%" align="right"></td>
<td align="right" width="6"><img src="/images/middle/m_right.gif" width="12" height="8"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="13"> </td>
</tr>
<tr>
<td><!--#include file="../../include/dot.inc"--></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<SCRIPT language=javascript>
<!--
function checkform()
{
var Checkblank = /^(\s*|(\ )|(\.))*$/;
if (Checkblank.test(form.username.value))
{
alert("用户名不能为空!");
return false;
}
if (Checkblank.test(form.userpass.value))
{
alert("密码不能为空!");
return false;
}
window.form.submit();
}
function checkform2()
{ var Checkblank = /^(\s*|(\ )|(\.))*$/;
if (Checkblank.test(dataform.username.value)){
alert("用户名不能为空!");
return;
}
if (Checkblank.test(dataform.oldpass.value)){
alert("旧密码不能为空!");
return;
}
if (Checkblank.test(dataform.newpass.value)){
alert("新密码不能为空!");
return;
}
if (Checkblank.test(dataform.userpass2.value)){
alert("确认密码不能为空!");
return;
}
if (dataform.userpass2.value!=dataform.newpass.value){
alert("新密码和确认密码不一致!");
return;
}
window.dataform.submit();
}
//-->
</SCRIPT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -