<!-- #include file="conn.asp" -->
<!-- #include file="admin.asp" -->
<!-- #include file="../inc/pz/configthem.asp" -->
<%call head()%>
<%function ubbcode1(str)
if isnull(str) then exit function
str=trim(str)
set re=new regexp
re.ignorecase =true
re.global=true
re.pattern="\(d=(.{5,}?)\)(.+?)\(/d\)"
str= re.replace(str,"<div class=""$1"" >$2</div>")
ubbcode1=str
end function
%>

<%if request("submitflag") <> "" then
       
'----------------------------------------------------------------
'			生成tongyong.css文件
'----------------------------------------------------------------
dim yd_config,yd_file
yd_file= server.mappath("../main/tongyong.css")'生成tongyong.css文件路径


yd_config=yd_config+chr(13)&chr(10)&"."&request.form("them10")&"{background-repeat: repeat-x; background-color:#"&request.form("them11")&";border-bottom:1px solid #"&request.form("them12")&";}"
yd_config=yd_config+chr(13)&chr(10)&"."&request.form("them20")&"{background-repeat: repeat-x; background-color:#"&request.form("them21")&";border-bottom:1px solid #"&request.form("them22")&";}"
yd_config=yd_config+chr(13)&chr(10)&"."&request.form("them30")&"{background-repeat: repeat-x; background-color:#"&request.form("them31")&";border-bottom:1px solid #"&request.form("them32")&";}"
yd_config=yd_config+chr(13)&chr(10)&"."&request.form("them40")&"{background-repeat: repeat-x; background-color:#"&request.form("them41")&";border-bottom:1px solid #"&request.form("them42")&";}"
yd_config=yd_config+chr(13)&chr(10)&"."&request.form("them50")&"{background-repeat: repeat-x; background-color:#"&request.form("them51")&";border-bottom:1px solid #"&request.form("them52")&";}"


yd_config=yd_config
call createdtextfiles(yd_file,yd_config)
'----------------------------------------------------------------
'生成configthem.asp文件结束
'-------------------------------
'--------------------------------------------------------------------------------------------------------------------------------
'-------------------------------
'			生成configthem.asp文件
'----------------------------------------------------------------
dim yd_configa,yd_filea
yd_filea= server.mappath("../inc/pz/configthem.asp")'生成configthem.asp文件路径

yd_configa="<%"

yd_configa=yd_configa+chr(13)&chr(10)&"them10="""&request.form("them10")&""" '配置1_0"
yd_configa=yd_configa+chr(13)&chr(10)&"them11="""&request.form("them11")&""" '配置1_1"
yd_configa=yd_configa+chr(13)&chr(10)&"them12="""&request.form("them12")&""" '配置1_2"

yd_configa=yd_configa+chr(13)&chr(10)&"them20="""&request.form("them20")&""" '配置1_0"
yd_configa=yd_configa+chr(13)&chr(10)&"them21="""&request.form("them21")&""" '配置1_1"
yd_configa=yd_configa+chr(13)&chr(10)&"them22="""&request.form("them22")&""" '配置1_2"

yd_configa=yd_configa+chr(13)&chr(10)&"them30="""&request.form("them30")&""" '配置1_0"
yd_configa=yd_configa+chr(13)&chr(10)&"them31="""&request.form("them31")&""" '配置1_1"
yd_configa=yd_configa+chr(13)&chr(10)&"them32="""&request.form("them32")&""" '配置1_2"

yd_configa=yd_configa+chr(13)&chr(10)&"them40="""&request.form("them40")&""" '配置1_0"
yd_configa=yd_configa+chr(13)&chr(10)&"them41="""&request.form("them41")&""" '配置1_1"
yd_configa=yd_configa+chr(13)&chr(10)&"them42="""&request.form("them42")&""" '配置1_2"

yd_configa=yd_configa+chr(13)&chr(10)&"them50="""&request.form("them50")&""" '配置1_0"
yd_configa=yd_configa+chr(13)&chr(10)&"them51="""&request.form("them51")&""" '配置1_1"
yd_configa=yd_configa+chr(13)&chr(10)&"them52="""&request.form("them52")&""" '配置1_2"



yd_configa=yd_configa+chr(13)&chr(10)&"%"&">"
call createdtextfiles(yd_filea,yd_configa)
'----------------------------------------------------------------
'生成configthem.asp文件结束
'----------------------------------------------------------------





Call cardz("配置成功","saytkpz.asp?sid="&sid&"&amp;saytk="&saytk&"")

Response.Write "成功设置！正在返回..."
Else

%>
<%if saytk<2 Then
Call saycardd("配置")%>


常用颜色:红色ff0000;蓝色0000ff;绿色00ff00;黑色000000;白色ffffff<br/>-------------<br/><a href="configthema.asp?sid=<%=sid%>&amp;saytk=9">查看调色板>></a><br/>
分配1:
名称<input name="them10<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them10)%>"/>
背影<input name="them11<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them11)%>"/>
底色<input name="them12<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them12)%>"/><br/>

分配2:
名称<input name="them20<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them20)%>"/>
背影<input name="them21<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them21)%>"/>
底色<input name="them22<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them22)%>"/><br/>

分配3:
名称<input name="them30<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them30)%>"/>
背影<input name="them31<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them31)%>"/>
底色<input name="them32<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them32)%>"/><br/>

分配4:
名称<input name="them40<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them40)%>"/>
背影<input name="them41<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them41)%>"/>
底色<input name="them42<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them42)%>"/><br/>

分配5:
名称<input name="them50<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them50)%>"/>
背影<input name="them51<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them51)%>"/>
底色<input name="them52<%=minute(now)%><%=second(now)%>" size="7" type="text" value="<%=ubb1(them52)%>"/><br/>
-------------<br/>
ubb调用方法:<br/>
(d=名称)内容(/d)<br/>
如:(d=名称)内容(/d)<br/>

<anchor>[配置文件]<go href="configthem.asp?submitflag=true&amp;sid=<%=sid%>" method="post">

<postfield name="them10" value="$(them10<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them11" value="$(them11<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them12" value="$(them12<%=minute(now)%><%=second(now)%>)"/>

<postfield name="them20" value="$(them20<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them21" value="$(them21<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them22" value="$(them22<%=minute(now)%><%=second(now)%>)"/>

<postfield name="them30" value="$(them30<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them31" value="$(them31<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them32" value="$(them32<%=minute(now)%><%=second(now)%>)"/>

<postfield name="them40" value="$(them40<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them41" value="$(them41<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them42" value="$(them42<%=minute(now)%><%=second(now)%>)"/>

<postfield name="them50" value="$(them50<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them51" value="$(them51<%=minute(now)%><%=second(now)%>)"/>
<postfield name="them52" value="$(them52<%=minute(now)%><%=second(now)%>)"/>

</go></anchor><br/>-------------<br/>
<a href="configthem.asp?sid=<%=sid%>&amp;saytk=9">预览配置页面</a><br/>

<%else%>

<title>2.0颜色配置</title>
常用颜色:红色ff0000;蓝色0000ff;绿色00ff00;黑色000000;白色ffffff<br/>-------------<br/><a href="configthema.asp?sid=<%=sid%>&amp;saytk=9">查看调色板>></a><br/>

<form name="form" method="post" action="configthem.asp?submitflag=true&amp;sid=<%=sid%>&amp;saytk=<%=saytk%>">
分配1:
名称<input name="them10" size="7" value="<%=them10%>"/>
背影<input name="them11" size="7" value="<%=them11%>"/>
底色<input name="them12" size="7" value="<%=them12%>"/><br/>
<%response.write ""&ubbcode1("(d="&them10&")分配1的效果(/d)")&""%><br/>

分配2:
名称<input name="them20" size="7" value="<%=them20%>"/> 
背影<input name="them21" size="7" value="<%=them21%>"/> 
底色<input name="them22" size="7" value="<%=them22%>"/><br/>
<%response.write ""&ubbcode1("(d="&them20&")分配2的效果(/d)")&""%><br/>

分配3:
名称<input name="them30" size="7" value="<%=them30%>"/> 
背影<input name="them31" size="7" value="<%=them31%>"/> 
底色<input name="them32" size="7" value="<%=them32%>"/><br/>
<%response.write ""&ubbcode1("(d="&them30&")分配3的效果(/d)")&""%><br/>

分配4: 
名称<input name="them40" size="7" value="<%=them40%>"/> 
背影<input name="them41" size="7" value="<%=them41%>"/> 
底色<input name="them42" size="7" value="<%=them42%>"/><br/>
<%response.write ""&ubbcode1("(d="&them40&")分配4的效果(/d)")&""%><br/>

分配5: 
名称<input name="them50" size="7" value="<%=them50%>"/> 
背影<input name="them51" size="7" value="<%=them51%>"/> 
底色<input name="them52" size="7" value="<%=them52%>"/><br/>
<%response.write ""&ubbcode1("(d="&them50&")分配5的效果(/d)")&""%>

<br/><input type="submit" name="submit" value="[确定配置]"/></form><br/>

---------------<br/>
ubb调用方法:<br/>
(d=名称)内容(/d)<br/>
例子:(d=admin)内容(/d)<br/>
效果:<%=ubbcode1("(d=admin)内容效果就是这样(/d)")%>



---------------<br/>
<a href="configthem.asp?sid=<%=sid%>&amp;saytk=1">普通配置页面</a><br/>



<%end if%>
<%end if%>
<br/>
<a href="index.asp?sid=<%=sid%>&amp;saytk=2">[后台管理]</a><br/>

<%Call headsay()%>