<!--#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 href="./images/admincp/admincp.css" rel="stylesheet" type="text/css" />

</HEAD>

<script language="JavaScript" type="text/javascript" src="js.js"></script>
<BODY>
<h3>模板分类管理</h3>
<%dim Skin_SkinClassId
Skin_SkinClassId=Request("Skin_SkinClassId")
rs.open"select * from Skin where Skin_SkinClassId="&Skin_SkinClassId,conn,1,3
dim SkinCount
SkinCount = int(rs.recordcount)
redim SkinArray(SkinCount,3)
dim j,i
j=1
while not rs.eof and not rs.bof
   SkinArray(j,0)=rs("Skin_Id")
   SkinArray(j,1)=rs("Skin_Name")
   SkinArray(j,2)=rs("Skin_Memo")
   SkinArray(j,3)=rs("Skin_Html")
   j=j+1
rs.movenext
wend
rs.close%>
<table width="96%" border="0" cellspacing="1" cellpadding="8" align="center" class="tb tb2 fixpadding">
  <tr>
    <td class="vtop lineheight">ID</td>
    <td class="vtop lineheight">模板名称</td>
    <td class="vtop lineheight">模板描术</td>
    <td class="vtop lineheight">所属分类模板</td>
	<td class="vtop lineheight">后缀名</td>
    <td class="vtop lineheight">编辑</td>
    <td class="vtop lineheight">删除</td>
  </tr>
<%
for i=1 to SkinCount%>
  <tr>
    <td class="vtop lineheight"><%=SkinArray(i,0)%></td>
    <td class="vtop lineheight" title="<%=SkinArray(i,1)%>"><%=Left(SkinArray(i,1),20)%></td>
    <td class="vtop lineheight" title="<%=SkinArray(i,2)%>"><%=Left(SkinArray(i,2),20)%></td>
    <td class="vtop lineheight">
	<%rs.open"select SkinClass_Name from SkinClass where SkinClass_Id="&Skin_SkinClassId,conn,1,3
	if not rs.eof then
    	Response.write rs("SkinClass_Name")
	end if
	rs.close%>
	</td>
	<td class="vtop lineheight"><%=SkinArray(i,3)%></td>
    <td class="vtop lineheight"><a href="#" onClick="javascript:DivOpenClose('Admin_SkinUp.asp?Skin_Id=<%=SkinArray(i,0)%>',1,550,450);return false">编辑</a></td>
    <td class="vtop lineheight"><a href="#" onClick="javascript:DivOpenClose('Admin_SkinDel.asp?Skin_Id=<%=SkinArray(i,0)%>',1,450,150);return false">删除</a></td>
  </tr>
<%
next%>
</table>
<br /><div align="center"><a href="#" onClick="javascript:DivOpenClose('Admin_SkinAdd.asp?Skin_SkinClassId=<%=Skin_SkinClassId%>',1,530,400);return false"><font color="#669900">添加模板</font></a>
<div id="DivMenu" style="position:absolute; width:100%; height:100%; z-index:1; left: 0px; top: 0px; filter:Alpha(opacity=50); background-color: #E8E8E8; layer-background-color: #E8E8E8; border: 1px none #000000; visibility: hidden;"></div>
<div id="DivIframe" style="position:absolute; width:0; height:0px; z-index:1; visibility: hidden; overflow: visible; filter:Alpha(opacity=80);"><iframe id=OpenIframe name=OpenIframe src=londing.html width=100% height=100% frameborder=0 scrolling=no>管理员</iframe>
</div>
</div>
</BODY>
</HTML>

