📄 doc_type.asp
字号:
<!--#include file="../config.asp"-->
<!--#include file="../inc/check_login.asp"-->
<!--#include file="../inc/functions.asp"-->
<%
Application_ID = 6000500 '本功能编号,含义请查看编码表
if not CheckAuth(Session("Employee_ID"),Application_ID) then '验证权限
Server.Transfer "../err/un_authorized.htm"
response.end
end if
%>
<!--**************身份验证部分****************-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK rel="stylesheet" type="text/css" href="../style.css">
<script language="JavaScript" type="text/javascript">
function OptionConfirm(){
if(confirm('警告!!删除文档类型将使该类文档无法继续使用!您确定要删除吗?')){
return true;
}else{
return false;
}
}
</script>
</head>
<body>
◆<a href="doc_type_new.asp" target="foot">增加新类型</a>
<hr size=1>
<table bgcolor="#FFFFFF" border=0 cellpadding=1 cellspacing=1 width="100%">
<tr bgcolor="#EFEFEF">
<td>文档类型名称</td>
<td>操作</td>
</tr>
<%
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
conn.open connstr
sql = "select * from Documents_Group order by Group_ID"
set rs = conn.execute(sql)
i = 0
while not rs.eof
Group_ID = rs("Group_ID")
Group_Name = rs("Group_Name")
if i mod 2 = 0 then
bgcolor = "#FFFFFF"
else
bgcolor = "#EFEFEF"
end if
%>
<tr bgcolor="<%= bgcolor %>">
<td><%= Group_Name %></td>
<td><a href="doc_type_del.asp?Group_ID=<%= Group_ID %>" target="foot" onClick="return OptionConfirm();">删除</a></td>
</tr>
<%
i = i + 1
rs.movenext
wend
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -