?? modmxdq.asp
字號:
<!--#Include file="../Common/Inc_DatConn.asp"-->
<!--#Include file="Common/Inc_Config.asp"-->
<!--#Include file="Common/Inc_Function.asp"-->
<%
'┌─ 風云ASP在線 ────────────────────────┐
'│ │
'│ 作者:趙振波. http://www.fyasp.com │
'│ │
'│ Q Q:176189168 │
'│ │
'│ Email:fy96@163.com │
'│ │
'│ 程序定做,系統開發,網站制作,提供高質量的網絡產品、技術和服務!│
'│ │
'│【版權聲明】 │
'│ │
'│ 本程序版權歸坐看風云所有,未經授權擅自修改、復制或散布本程序│
'│ │
'│的部分或全部,將承受嚴厲的民事和刑事處罰,對已知的違反者將給予法 │
'│ │
'│律范圍內的全面制裁。對非法使用此程序所造成的一切后果本人概不負責!│
'│ │
'└─────────────────── http://www.fyasp.com ──┘
%>
<%if IsTimeOut(Session("strAccount"),Session("strPassWord")) then Response.Redirect "index.asp"%>
<%
ID=trim(Request("ID"))
Action=trim(Request("Action"))
NewBigClassName=trim(Request("NewBigClassName"))
OldBigClassName=trim(Request("OldBigClassName"))
if ID="" then
response.Redirect("mxdq.asp")
end if
if NewBigClassName<>OldBigClassName then
conn.execute "Update Dat_Information set InfoAdd='" &NewBigClassName& "' where InfoAdd='" & OldBigClassName& "'"
end if
Set rs=Server.CreateObject("Adodb.RecordSet")
rs.Open "Select * from mxdq where ID=" & CLng(ID),conn,1,3
if rs.Bof and rs.EOF then
FoundErr=True
ErrMsg=ErrMsg & "此產品大類不存在!"
else
if Action="Modify" then
if NewBigClassName="" then
FoundErr=True
ErrMsg=ErrMsg & "地區名不能為空!"
end if
if FoundErr<>True then
rs("Name")=NewBigClassName
rs.update
rs.Close
set rs=Nothing
conn.close
set conn=nothing
Response.Redirect "mxdq.asp"
end if
end if
if FoundErr=True then
response.write"<SCRIPT language=JavaScript>alert("""&ErrMsg&""");"
response.write"javascript:history.go(-1) ;</SCRIPT>"
Response.end
else
%>
<script language="JavaScript" type="text/JavaScript">
function checkBig()
{
if (document.form1.BigClassName.value=="")
{
alert("大類名稱不能為空!");
document.form1.BigClassName.focus();
return false;
}
}
</script>
<html>
<head>
<title><% = strSiteName%> - 網站后臺管理系統</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Common/Site.css" type="text/css">
</head>
<body leftMargin="0" topMargin="2">
<!--#Include file="Common/inc_Top.asp"-->
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="105" valign="top" style="border-left: 1px solid rgb(0,0,0); border-right: 1px solid rgb(0,0,0)" class="bottom"><br>
<!--#Include file="Common/Inc_Button.asp"-->
</td>
<td valign="top" style="border-right: 1px solid rgb(0,0,0)" align="center" class="banma2">
<table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="50">當前位置:<a href="Main.asp">管理首頁</a> -> 修改面向地區</td>
</tr>
</table>
<table border="0" width="96%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="6" height="248">
<tr>
<td align="center" height="236" valign="top">
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#000000" width="524">
<tr>
<td class="bottom" colspan="2">
</td>
</tr><form name="form1" method="post" action="modmxdq.asp">
<tr>
<td class="banma1" align="right" width="203">
<strong>地區名稱:</strong></td>
<td class="banma1" width="302">
<input name="ID" type="hidden" id="ID" value="<%=rs("ID")%>">
<input name="Action" type="hidden" id="Action" value="Modify">
<input name="OldBigClassName" type="hidden" id="OldBigClassName" value="<%=rs("Name")%>">
<input name="NewBigClassName" type="text" id="NewBigClassName" value="<%=rs("Name")%>" size="20" maxlength="30"></td>
</tr>
<tr>
<td class="bottom" align="left" width="505" colspan="2">
<p align="center"><input name="add" type='submit' value='確定修改此地區' class="button"></td>
</tr></form>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<br>
</td>
</tr>
</table>
<!--#Include file="Common/Inc_Bottom.asp"-->
</body>
</html><%
end if
end if
conn.close
set conn=nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -