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

📄 edittype.asp

📁 后台管理系统是用来对后台进行管理的系统可以进行一系列管理活动
💻 ASP
字号:
<%
if session("login")<>1 then
response.redirect("index.asp")
end if
%>
<!--#include file="adovbs.inc"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="content-language" content="zh-cn">
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
<title>后台管理-编辑设计类型</title>
</head>
<body>
<script language="javascript">
<!--//
function submitcheck()
{if(form1.typename.value=="")
{window.alert("请填写类型名称!");
form1.typename.focus();
return false;}
}
-->
</script>
<%
action=request("action")
typeid=request("typeid")
if action="modifytypepost" then
set rs=server.createobject("adodb.recordset")
sql="select*from designtype where typeid="&typeid
rs.open sql,conn,3,3
rs("typename")=server.htmlencode(request("typename"))
rs.update
rs.close
set rs=nothing
response.redirect"typecontrol.asp"
else
set rs=conn.execute("select*from designtype where typeid="&cint(typeid))
end if
%>
<table width="600" boder="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#cccccc">
<form method="post" action="typecontrol.asp?action=modifytypepost&typeid=<%=typeid%>"
name="form1" onsubmit="return submitcheck()">
<tr>
<td width="155" bgcolor="#ffffff">类型名称</td>
<td width="422" bgcolor="#ffffff">
<input tyoe="text" name="typename" size="11" value="<%=rs("typename")%>">
</td>
</tr>
<tr>
<td bgcolor="#ffffff"> </td>
<td bgcolor="#ffffff"><input type="submit" name="Submit3" value="确认"><input type="reset"
name="Submit22" value="复位"></td>
</tr>
</form>
</table>
<%
set rs=nothing
set conn=nothing
end if
%>
</body>
</html>

⌨️ 快捷键说明

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