shengmanage.asp
资源名称:shop2.rar [点击查看]
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:4k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
DOS
- <!--#include file="conn.asp"-->
- <%
- dim cls
- if session("admin")="" then
- Response.Redirect("admin.asp")
- else
- if session("flag")<>"0" then
- cls = Instr(session("flag"), "ssfig")
- if cls <= 0 then
- %>
- <script language="javascript">
- if (confirm("您的操作权限不够,系统拒绝你的访问,请点确定返回,或者点取消退出重新登录"))
- location.href="login.asp";
- else
- location.href="index.asp";
- </script>
- <%
- end if
- end if
- end if
- %>
- <html><head><title>省管理</title>
- <script>
- function IsDigit()
- {
- return ((event.keyCode >= 48) && (event.keyCode <= 57));
- }
- </script>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../images/css.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
- <form method="post" action="shengset.asp?action=update">
- <tr>
- <td class="forumRowHighlight" colspan="5" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">省设置修改</font></b></td>
- </tr>
- <tr align=center>
- <td class="forumRowHighlight" width="10%">序号</td>
- <td class="forumRowHighlight" width="30%">省名称</td>
- <td class="forumRowHighlight" width="30%">省编号</td>
- <td class="forumRowHighlight" width="20%">排序<br>(必填项,数字)</td>
- <td class="forumRowHighlight" width="10%">操作</td>
- </tr>
- <%
- Set rs = Server.CreateObject("ADODB.Recordset")
- rs.open "SELECT * From province order by shengorder",conn,1,1
- if rs.recordcount=0 then
- %>
- <tr align=center>
- <td class="forumRowHighlight" colspan="5" align="center" width="100%">还没有添加省</td>
- </tr>
- <%
- else
- do while not rs.eof
- %>
- <tr align=center>
- <td class="forumRowHighlight" align=center><%=rs("ID")%></td>
- <td class="forumRowHighlight" 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 class="forumRowHighlight" align=center>
- <input class=text type="text" name="shengno" size="10" value="<%=trim(rs("shengno"))%>" ONKEYPRESS="event.returnValue=IsDigit();" >
- </td>
- <td class="forumRowHighlight" align=center>
- <input class=text type="text" name="shengorder" size="10" value="<%=rs("shengorder")%>" ONKEYPRESS="event.returnValue=IsDigit();" >
- </td>
- <td class="forumRowHighlight" align=center>
- <a href="shengkill.asp?shengid=<%=rs("id")%>">删除</a>
- </td>
- </tr>
- <%
- rs.MoveNext
- Loop
- %>
- <tr align=center>
- <td class="forumRowHighlight" colspan="8" height=25 align="center" width="100%">
- <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>
- </table><br>
- <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
- <tr>
- <td class="forumRowHighlight" colspan="5" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">商品查讯</font></b></td>
- </tr>
- <form method="post" action="shengset.asp?action=add">
- <tr align=center>
- <td class="forumRowHighlight" width=10% align=center>添加省
- </td>
- <td class="forumRowHighlight" width=30% align=center>
- <input class=text type="text" name="shengname" size="10">
- </td>
- <td class="forumRowHighlight" width=30% align=center>
- <input class=text type="text" name="shengno" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
- </td>
- <td class="forumRowHighlight" width=20% align=center>
- <input class=text type="text" name="shengorder" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
- </td>
- <td class="forumRowHighlight" width=10% align=center>
- <input type="submit" name="Submit2" value="添加" style="font-family: 宋体; font-size: 9pt">
- </td>
- </tr>
- </form>
- </table>
- </body>
- </html>
English
