<!--#include file="../main.asp" -->
<!--#include file="../IsLogin.asp" -->
<%if request("action")="save" then
id=request("id")
co=request("co")
if co="" then
errstyle="·对不起，请选择您想更换的背景！"
scripterr
end if
'conn.execute("update T_club set F_index='"&co&"' where  F_id="&id&"")
conn.execute("update T_club set F_index='"&co&"' where F_ID="&id&"")
response.redirect"club_ok.asp?id="&id&""
end if%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>管理中心-这里是所有管理的入口</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="images/global.css" type=text/css rel=stylesheet><LINK 
href="images/main.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.218" name=GENERATOR>
<script language="javascript">
function Del(id){
if ( confirm("你确定要删除吗？")) {
window.location.href = "templet_del.asp?id="+id
}
}
</script></HEAD>
<BODY id=main background="../images/bj.gif">
<DIV id=wrapper>
<!--#include file="top.asp"-->
<DIV class=row>
<!--#include file="left.asp"-->
<DIV class=right_side>
<DIV class=col id=bulletin>
<DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>系统默认的背景</H3>
</DIV>
<DIV class=col_body>
<form name="addform" method="post" action="club_templet.asp?action=save">
<input name="id" type="hidden" value="<%=request("id")%>">
<P>
<table><tr>
<%
set rs5=server.createobject("adodb.recordset")
sql5="select * from T_club where F_ID="&request("id")
rs5.open sql5,conn,1,1
F_co=rs5("F_index")
rs5.close
set rst=server.createobject("adodb.recordset")
sqlt="select * from club_pic where type=1"
rst.open sqlt,conn,1,1
n=0
do while not rst.eof
n=n+1
%><td width="135"><SPAN class=my_group><a href="../<%=rst("pic")%>" target="_blank"><img src="../<%=rst("pic")%>" width="80" border="0" height="80" style="border:1px #B5DFDE solid"></a><br>
<input type="radio" name="co" value="<%=rst("pic")%>" style="border:0" <%if rst("pic")=F_co then%> checked<%end if%>><%=rst("username")%></SPAN></td>
<%
if n mod 6=0 then response.Write("</tr><tr>")
rst.movenext
loop
rst.close%></tr></table><input type="submit" name="Submit" value=" 下一步,查看效果 ">
</form></P>
</DIV></DIV>
</DIV><DIV class=right_side>
<DIV class=col id=bulletin>
<DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>我上传的背景</H3><SPAN class=float_right><STRONG><a href="cp_add.asp?id=<%=request("id")%>">添加背景</a></STRONG></SPAN></DIV>
<DIV class=col_body>
<form name="addform" method="post" action="club_templet.asp?action=save">
<input name="id" type="hidden" value="<%=request("id")%>">
<P>
<table><tr>
<%set rst=server.createobject("adodb.recordset")
sqlt="select * from club_pic where type=0 and userid="&session("goid")&""
rst.open sqlt,conn,1,1
n=0
do while not rst.eof
n=n+1
%><td width="135"><SPAN class=my_group><a href="../<%=rst("pic")%>" target="_blank"><img src="../<%=rst("pic")%>" width="80" border="0" height="80" style="border:1px #B5DFDE solid"></a><br>
<input type="radio" name="co" value="<%=rst("pic")%>" style="border:0" <%if rst("pic")=F_co then%> checked<%end if%>><%=rst("username")%><br><a href='javascript:Del(<%=rst("id")%>)'>删除</a></SPAN></td>
<%
if n mod 6=0 then response.Write("</tr><tr>")
rst.movenext
loop
rst.close%></tr></table><input type="submit" name="Submit" value=" 下一步,查看效果 ">
</form></P>
</DIV></DIV>
</DIV>
</DIV>
<!--#include file="bottom.asp"-->

</DIV></BODY></HTML>
