type.asp

来自「实现一个用JSP、Servlet技术实现的小型物流网站系统。实现功能如下:管理员」· ASP 代码 · 共 94 行

ASP
94
字号
<%@ codepage ="936" %>
<%
if session("globalecmaster")="" or session("masterflag")="" then
response.write "<script language='javascript'>"
response.write"parent.location.href='../login.asp';</SCRIPT>" 
response.end
end if


'权限限制^^^^^^^^^^^^^^^^^^^^
 dim ishavegant
 ishavegant=false
 in_str=split(session("masterflag"),",")
 for each ins in in_str
 if trim(ins)="23" then 
 ishavegant=true
 end if
 next 
 if ishavegant=false then
 response.redirect "../err.asp"
 response.end
 end if
 '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>专项商机类别管理</title>
<link rel="stylesheet" type="text/css" href="../css/style.css">
<script language="javascript">
function isdel()
{
var i=confirm("你确定要删除吗?");
if(i)
{
return true ;
}
else
{
 return false;
}

}
</script>
<% data_path="../../" 'ACC连接数据库路径,对SQL无效 %>
<!--#include file="../../conn/conn.asp" -->
</HEAD>
<table width="98%" border="0" cellspacing="0" cellpadding="0"  align=center class="tableBorder"> 
  <tr> 
     <th height=25 colspan="2" class="tableHeaderText">专项商机类别管理 </th> 
   </tr> 
  <tr> 
     <td colspan="2" class="forumRowHighlight"><p><B>注意</B>:<BR> 
         ①类别直接与发布的信息相关联,删除类别可能会影响到以前发布的专项商机信息。<BR> </td> 
   </tr> 
  <tr> 
     <td width="12%" height=25 class="forumRowHighlight"> <B>操作选项</B></td> 
     <td width="88%" class="forumRowHighlight"><a href="index.asp">管理专项商机</a> | <a href="add_vipinfo.asp">添加专项商机</a> | <a href="type.asp">管理商机类别</a> | <a href="class_ok.asp?action=add_class_1">添加专项类别</a> | [<a href="javascript:location.reload()">刷新页面</a>]</td> 
   </tr> 
</table>
<%
set rssort=server.createobject("adodb.recordset")
sql="select * from Yixiang_vipinfo_class "
rssort.open sql,conn,1,1
%>
<br>
<table width="95%" border="0" cellspacing="1" cellpadding="3"  align=center class="tableBorder">
	<tr> 
	<th height="22">专项商机类别列表</th>
	</tr>
	<tr>
	  <td><TABLE border="0" width="100%" cellpadding="0">
        <TR>   
          <%
if rssort.eof then
response.Write"<br><br><div align='center'>暂无类别请<a href=class_ok.asp?action=add_class_1>添加</a></div><br><br>"
else		  j=1
          do while not rssort.eof
          %>
          <td width="28%" height="25" class="Forumrow"><p style="line-height: 150%"><IMG src="../images_new/plus.gif" width="9" height="9"> <%=rssort("type")%> 〖<a href=class_ok.asp?action=edit_class_1&id=<%=rssort("typeid")%>><font color=#ff0000>修改</font></a>│<a href='class_ok.asp?action=del_class_1&id=<%=rssort("typeid")%>' onClick="return isdel();"><font color=#ff0000>删除</font></a>〗</td>
          <%if j mod 3 = 0 then %></tr><tr ><%end if%>
          <% rssort.movenext
             j=j+1
             loop
             rssort.close
             set rssort=nothing
			 end if
          %>
      </TABLE></td>
	</tr>
</table>
<br>
<!--#include file="../copy.asp" -->

⌨️ 快捷键说明

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