<!--#include file="../conn.asp" -->
<%
if session("admin")="" then
Response.Write("<script language=JavaScript>alert('对不起,您没有权限使用该功能!!');history.back();</script>")
response.end
end if
dd=cint(Request.QueryString("dd"))
%>

<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<link href="../inc/css.css" rel="stylesheet" type="text/css">
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">

<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
	<tr>
		<td>
		<p align="center"><font size="4" color="#00ACF0"><b>皮肤风格管理</b></font></td>
	</tr>
</table>
<div align="center">
<table border="1" width="90%" id="table2"  cellpadding="0" cellspacing="0"  bordercolor="#d7f5ff" bordercolordark="#FFFFFF" bordercolorlight="#000000">
<tr>
		<td width="71" bgcolor="#AAAAAA">
		<p align="center"><font color="#FFFFFF">ID</font></td>
		<td width="727" colspan="3" bgcolor="#AAAAAA">　<font color="#FFFFFF">皮肤名称</font></td>
	</tr>
	<%   
sql = "SELECT * FROM c_moban ORDER BY m_id DESC" 
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,0,1
if rs.eof and rs.bof then
Response.Write"还没有分类"
else
do while not rs.eof
%><tr>
		<td width="71" bgcolor="#F4FFF5"><font color="#FF0000"><%=rs("m_id")%>
</font>
</td>
		<td width="633" bgcolor="#F4FFF5">
		<a href="admin_skins.asp?dd=<%=rs("m_id")%>">　<%=rs("m_name")%></a></td>
		<td width="44" bgcolor="#F4FFF5">
		<p align="center"><a href="admin_skins.asp?dd=<%=rs("m_id")%>">管理</a></td>
		<td width="46" bgcolor="#F4FFF5">
		<p align="center">删除</td>	</tr><% if rs("m_id")=dd then%>

	<form name="form" method="post" action="ok.asp?action=skins&sking=<%=rs ("m_id") %>">
		<tr>
			<td width="146">
			<p align="center">修改ID<%=rs("m_id")%>皮肤</td>
			<td width="652"> 
				<input name="name" type="text" id="title" size="40" maxlength="19" value="<%=rs("m_name")%>"></td>
		</tr>
		<tr>
			<td height="28" width="146">
			<p align="center">m_html</td>
			<td height="28" width="652"> 
				<textarea id="Content"  name="m_html" cols="70" rows="10"><%=rs("m_html")%></textarea></td>
		</tr>
		<tr>
			<td width="146">
			<p align="center">m_html_2</td>
			<td width="652"> 
				<textarea id="Content0"  name="m_html_2" cols="70" rows="10"><%=rs("m_html_2")%></textarea></td>
		</tr>
		<tr>
			<td width="146">　</td>
			<td width="652">
			<p align="center"> 
                <input type="submit" name="Submit" value=" 写 好 了 "> <input type="reset" name="Submit2" value=" 重 新 来 "></td>
		</tr>
</form>
<%end if
rs.movenext
loop
end if
rs.close
Set rs=Nothing
%>
</table>

<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0" bgcolor="#F4FFF5">
	<tr>
		<td bgcolor="#DDDDDD">　</td>
	</tr>
</table>

</div>

<div align="center">
	<table border="1" width="80%" id="table3" cellpadding="0" cellspacing="0"  bordercolor="#d7f5ff" bordercolordark="#FFFFFF" bordercolorlight="#000000">
	<form name="form1" method="post" action="ok.asp?action=skins&cz=add">
		<tr>
			<td width="146">
			<p align="center">新增皮肤名称</td>
			<td width="652"> 
				<input name="name" type="text" id="title" size="40" maxlength="19"></td>
		</tr>
		<tr>
			<td height="28" width="146">
			<p align="center">m_html</td>
			<td height="28" width="652"> 
				<textarea id="Content"  name="m_html" cols="70" rows="10"></textarea></td>
		</tr>
		<tr>
			<td width="146">
			<p align="center">m_html_2</td>
			<td width="652"> 
				<textarea id="Content0"  name="m_html_2" cols="70" rows="10"></textarea></td>
		</tr>
		<tr>
			<td width="146">　</td>
			<td width="652">
			<p align="center"> 
                <input type="submit" name="Submit" value=" 写 好 了 "> <input type="reset" name="Submit2" value=" 重 新 来 "></td>
		</tr>
	</table>
</div>

</body>

</html>
