?? editclass.asp
字號:
<!--#include file="conn.asp" -->
<!--#include file="../char.asp" -->
<html>
<head>
<title>編輯欄目</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<script language="javascript">
<!--
function check() {
if (form1.newTitle.value == "")
{
alert("請?zhí)顚憴谀棵Q");
form1.newTitle.focus();
return false;
}
return true;
}
//-->
</script>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
Select case Request("action")
case "step1"
newTitle = Strcheck(Request.Form("newTitle"))
id = Request.Form("id")
conn.execute("Update Aclass set class = "& newTitle &" where classID = " & id)
Response.write "<script>alert(""修改成功"");window.close();window.opener.location.reload();</script>"
Response.End
case "step2"
newTitle = Strcheck(Request.Form("newTitle"))
id = Request.Form("id")
conn.execute("Update ANclass set Nclass = "& newTitle &" where NclassID = " & id)
Response.write "<script>alert(""修改成功"");window.close();window.opener.location.reload();</script>"
Response.End
case "Aedit"
%>
<form method="POST" action="?action=step1" align="center" onsubmit="return check();" name="form1">
<input type="hidden" name="id" value="<%=Request("id")%>">
<table width="100%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<tr align="center">
<td bgcolor="#FFCC00">編輯大欄目</td>
</tr>
<tr align="center">
<td>
<p>欄目名稱:
<input type="text" name="newTitle" size="20" class=smallinput value="<%=ListAClass(Request("id"))%>">
<input type="submit" value="修改" class="buttonface" name="B3">
</td>
</tr>
</table>
</form>
<%Case "Nedit"%>
<form method="POST" action="?action=step2" align="center" onsubmit="return check();" name="form1">
<input type="hidden" name="id" value="<%=Request("id")%>">
<table width="100%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<tr align="center">
<td bgcolor="#FFCC00">編輯小欄目</td>
</tr>
<tr align="center">
<td>
<p>欄目名稱:
<input type="text" name="newTitle" size="20" class=smallinput value="<%=ListANClass(Request("id"))%>">
<input type="submit" value="修改" class="buttonface" name="B3">
</td>
</tr>
</table>
</form>
<%End Select%>
<div align="center">
<input type="button" name="button" value="關(guān)閉" OnClick="Javascript:window.close();" class="buttonface">
</div>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -