📄 shengmanage.asp
字号:
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');history.go(-1);</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
end if
%>
<html>
<head>
<title>省管理</title>
<script>
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535}
body{font-size:9pt;line-height:120%}
a:link { color: #000000; text-decoration: none }
a:visited { color: #000000; text-decoration: none }
a:active { color: #000000; text-decoration: none }
a:hover { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<center>
<table border="1" width="500" cellpadding="0" cellspacing="0" style="border-collapse: collapse" >
<form method="post" action="shengset.asp?action=update">
<tr height=25>
<td colspan="8" align="center"><font color=red>省设置</font></td>
</tr>
<tr align=center height=25>
<td>序号</td>
<td>省名称</td>
<td>省编号</td>
<td>排序<br>
(必填项,数字)</td>
<td>删除</td>
</tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT * From szSheng order by shengorder",conn,1,1
if rs.recordcount=0 then
%>
<tr>
<td colspan="8" height=25 align="center" width="100%" bgcolor="#FFFFFF">
还没有添加省
</td>
</tr>
<%
else
do while not rs.eof
%>
<tr height=25>
<td align=center><%=rs("ID")%></td>
<td align=center>
<input type="hidden" name="shengid" value="<%=rs("id")%>">
<input class=text type="text" name="shengname" size="10" value="<%=trim(rs("shengname"))%>">
</td>
<td align=center>
<input class=text type="text" name="shengno" size="10" value="<%=trim(rs("shengno"))%>" ONKEYPRESS="event.returnValue=IsDigit();" >
</td>
<td align=center>
<input class=text type="text" name="shengorder" size="10" value="<%=rs("shengorder")%>" ONKEYPRESS="event.returnValue=IsDigit();" >
</td>
<td align=center>
<a href="shengkill.asp?shengid=<%=rs("id")%>">删除</a>
</td>
</tr>
<%
rs.MoveNext
Loop
%>
<tr>
<td colspan="8" height=25 align="center" width="100%" bgcolor="#FFFFFF">
<input type="submit" name="Submit2" value="保存修改" style="font-family: 宋体; font-size: 9pt" >
<input type="reset" value="重新设定" style="font-family: 宋体; font-size: 9pt" name="重置" >
</td>
</tr>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</form>
<form method="post" action="shengset.asp?action=add">
<tr height=25>
<td align=center>添加省
</td>
<td align=center>
<input class=text type="text" name="shengname" size="10">
</td>
<td align=center>
<input class=text type="text" name="shengno" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
</td>
<td align=center>
<input class=text type="text" name="shengorder" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
</td>
<td align=center colspan="2">
<input type="submit" name="Submit2" value="添加" style="font-family: 宋体; font-size: 9pt">
</td>
</tr>
</form>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -