<!--#include file="../siteconfig/conn.asp"-->
<%
if session("adminlogin")<>sessionvar then
Response.Write("<script language=javascript>alert('你尚未登录，或者超时了！请重新登录');this.location.href='login.asp';</script>")
Response.End
End if
%>
<!--#include file="Admin_ClassFunction.asp"-->
<HTML>
<HEAD>
<TITLE>分类管理</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<LINK REL="stylesheet" HREF="css.css" TYPE="text/css">
</HEAD>
<script language="JavaScript" type="text/javascript" src="js.js"></script>
<BODY>
<%dim Menu,SkinClass_Name,SkinClass_Id
SkinClass_Id=Request("SkinClass_Id")
Menu=Request("Menu")
if Menu="DelSkinClass" then
   conn.execute "delete from SkinClass where SkinClass_Id="&SkinClass_Id
   conn.execute "delete from Skin where Skin_SkinClassId="&SkinClass_Id
          Response.Write("<script language=javascript>alert('模板分类删除成功');parent.window.location.reload();DivOpenClose('',2,0,0);</script>")
	      Response.End()
end if
rs.open"select SkinClass_Id,SkinClass_Name from SkinClass where SkinClass_Id="&SkinClass_Id,conn,1,3
if not rs.eof then
   SkinClass_Name=rs("SkinClass_Name")
end if
rs.close
%>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#EEEEEE">
  <tr>
    <td width="45%">删除模板分类</td>
    <td width="55%" align="right"><a href="#" onClick="javascript:DivOpenClose('',2,0,0);return false">关闭</a></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td colspan="2"><div align="center">
      <form name="form1" method="post" action="?Menu=DelSkinClass">
        <input name="SkinClass_Id" type="hidden" value="<%=SkinClass_Id%>">
        <input name="Submit" type="submit" class="SubmitCss" onClick='javascript:return confirm("模板分类吗？同时删除该分类下的所有模板！");' value="确定删除 [<%=SkinClass_Name%>] 模板分类吗？&#13;同时删除该分类下的所有模板！">
      </form>
      </div></td>
  </tr>
</table>
</BODY>
</HTML>

