shengmanage.asp
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

DOS

  1. <!--#include file="conn.asp"-->
  2. <%
  3. dim cls
  4. if session("admin")="" then
  5. Response.Redirect("admin.asp")
  6. else
  7. if session("flag")<>"0" then
  8. cls = Instr(session("flag"), "ssfig")
  9. if cls <= 0 then
  10. %>
  11. <script language="javascript">
  12. if (confirm("您的操作权限不够,系统拒绝你的访问,请点确定返回,或者点取消退出重新登录"))
  13.   location.href="login.asp";
  14. else
  15.   location.href="index.asp";
  16. </script>
  17. <%
  18. end if
  19. end if
  20. end if
  21. %>
  22. <html><head><title>省管理</title>
  23. <script>
  24. function IsDigit()
  25. {
  26.   return ((event.keyCode >= 48) && (event.keyCode <= 57));
  27. }
  28. </script>
  29. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  30. <link href="../images/css.css" rel="stylesheet" type="text/css">
  31. </head>
  32. <body>
  33. <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
  34. <form method="post" action="shengset.asp?action=update">
  35. <tr> 
  36. <td class="forumRowHighlight" colspan="5" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">省设置修改</font></b></td>
  37. </tr>
  38. <tr align=center> 
  39. <td class="forumRowHighlight" width="10%">序号</td>
  40. <td class="forumRowHighlight" width="30%">省名称</td>
  41. <td class="forumRowHighlight" width="30%">省编号</td>
  42. <td class="forumRowHighlight" width="20%">排序<br>(必填项,数字)</td>
  43. <td class="forumRowHighlight" width="10%">操作</td>
  44. </tr>
  45. <%
  46. Set rs = Server.CreateObject("ADODB.Recordset")
  47. rs.open "SELECT  * From province  order by shengorder",conn,1,1
  48. if rs.recordcount=0 then 
  49. %>
  50. <tr align=center>
  51. <td class="forumRowHighlight" colspan="5" align="center" width="100%">还没有添加省</td>
  52. </tr>
  53. <%
  54. else
  55.     do while not rs.eof
  56. %>
  57. <tr align=center> 
  58. <td class="forumRowHighlight" align=center><%=rs("ID")%></td>
  59. <td class="forumRowHighlight" align=center> 
  60. <input type="hidden" name="shengid" value="<%=rs("id")%>">
  61. <input class=text type="text" name="shengname" size="10" value="<%=trim(rs("shengname"))%>">
  62. </td>
  63. <td class="forumRowHighlight" align=center> 
  64. <input class=text type="text" name="shengno" size="10" value="<%=trim(rs("shengno"))%>" ONKEYPRESS="event.returnValue=IsDigit();" >
  65. </td>
  66. <td class="forumRowHighlight" align=center> 
  67. <input class=text type="text" name="shengorder" size="10" value="<%=rs("shengorder")%>" ONKEYPRESS="event.returnValue=IsDigit();" >
  68. </td>
  69. <td class="forumRowHighlight" align=center> 
  70. <a href="shengkill.asp?shengid=<%=rs("id")%>">删除</a> 
  71. </td>
  72. </tr>
  73. <%
  74. rs.MoveNext
  75. Loop
  76. %>
  77. <tr align=center> 
  78. <td class="forumRowHighlight" colspan="8" height=25 align="center" width="100%"> 
  79. <input type="submit" name="Submit2" value="保存修改" style="font-family: 宋体; font-size: 9pt">&nbsp; 
  80. <input type="reset" value="重新设定" style="font-family: 宋体; font-size: 9pt" name="重置" >
  81. </td>
  82. </tr>
  83. <%
  84. end if
  85. rs.close
  86. set rs=nothing
  87. conn.close
  88. set conn=nothing
  89. %>
  90. </form>
  91. </table><br>
  92. <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
  93. <tr> 
  94. <td class="forumRowHighlight" colspan="5" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">商品查讯</font></b></td>
  95. </tr>
  96. <form method="post" action="shengset.asp?action=add">
  97. <tr align=center> 
  98. <td class="forumRowHighlight" width=10% align=center>添加省 
  99. </td>
  100. <td class="forumRowHighlight" width=30% align=center> 
  101. <input class=text type="text" name="shengname" size="10">
  102. </td>
  103. <td class="forumRowHighlight" width=30% align=center> 
  104. <input class=text type="text" name="shengno" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
  105. </td>
  106. <td class="forumRowHighlight" width=20% align=center> 
  107. <input class=text type="text" name="shengorder" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
  108. </td>
  109. <td class="forumRowHighlight" width=10% align=center> 
  110. <input type="submit" name="Submit2" value="添加" style="font-family: 宋体; font-size: 9pt">
  111. </td>
  112. </tr>
  113. </form>
  114. </table>
  115. </body>
  116. </html>