<!--#include file="conn.asp"-->
<!--#include file="ConnUser.asp"-->
<!--#include file="config.asp"-->
<!--#include file="char.inc"-->
<!--#include file="chkuser.asp" -->

<%
dim E_SmallClassID
E_SmallClassID = ChkRequest(Request("E_SmallClassID"),1)	'防注入
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from "& db_wygkcn_SmallClass_Table &" where E_SmallClassID=" & E_SmallClassID
rs.Open rs.Source,conn,1,3
set rs2=server.createobject("adodb.recordset")
sql2="select * from "& db_wygkcn_Type_Table &" where E_typeid="&rs("E_typeid")
rs2.open sql2,conn,1,3
master=rs2("typemaster")
if master<>"" then
	tmaster=split(master,"|")
	for i=0 to ubound(tmaster)
		if request.cookies(echsys)("username")=trim(tmaster(i)) then
			typemaster=true
			exit for
		else
			typemaster=false
		end if
	next
end if
rs2.close
set rs2=nothing
set rs2=server.createobject("adodb.recordset")
sql2="select * from "& db_wygkcn_BigClass_Table &" where E_BigClassID="&rs("E_BigClassID")
rs2.open sql2,conn,1,3
master2=rs2("bigclassmaster")
if master2<>"" then
	bigmaster=split(master2,"|")
 	for i=0 to ubound(bigmaster)
		if request.cookies(echsys)("username")=trim(bigmaster(i)) then
			bigclassmaster=true
			exit for
		else
			bigclassmaster=false
		end if
	next
end if

rs2.close
set rs2=nothing
if (request.cookies(echsys)("key")="bigmaster" and bigclassmaster=true) or request.cookies(echsys)("key")="super" or (request.cookies(echsys)("KEY")="typemaster" and typemaster=true) then%>

<html><head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=site.css rel=stylesheet>
<title><%=copyright%><%=version%>&nbsp;<%=ver%> - 删除小类</title>
</head>
<body topmargin="0">

<div align="center">
<table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="<%=border%>">
<form action=wygkcn_SmallClassKillOK.asp method=post>
<tr class="TDtop">
	<td height=25 class="TDtop" align="center">┊ <B>删除文章小类确认</B> ┊ </td>
</tr>
<input type="hidden" name="E_SmallClassID" value="<%=E_SmallClassID%>">
<tr>
	<td width="100%" align=center bgcolor="#FFFFFF"> 
		<p>　</p>
		<p>删除文章小类：[<font color="#FF0000"> <%=rs("E_smallclassname")%> </font>]？
			<font color=red><br><br>（此操作将一起删除相应的所有文章！并且删除后将无法恢复！）</font>
		</p>
		<p>　</p>
	</td>
</tr>
<tr>
	<td width="100%" align=center class="TDtop" height="55"> 
		<input type="hidden" name="delsmallclass" value="1">
		<input type=submit value="  是  " name="alert_button" >&nbsp;&nbsp;&nbsp;&nbsp;
		<input type=submit value="  否  " name="alert_button" >
	</td>
</tr>
</form>
</table>
</div>
</body>
</html>
<!--#include file="Admin_Bottom.asp"-->
<%else
	Show_Err("您无权删除此小类！<br><br><a href='javascript:history.back()'>返回</a>")
	response.end
end if%>