<!--#include file="conn.asp"-->
<!--#include file="inc/cookies_check.asp"-->
<!--#include file="../include/config.inc"-->
<!--#include file="../include/lebi_cache_cls.asp"-->
<!--#include file="../include/Lebi_XML_Cls.asp"-->
<%
'*****************************************
'* 软件名称 乐彼网上开店软件(56770 EShop)
'* 软件开发 http://www.56770.com
'* 版权所有 http://www.56770.com
'* 文件名称 Admin_num.asp
'* 最后更新 2012-05-23 by 56770.kingdge
'*****************************************
Set LB_XML = new ASPXML
Dim admin_flag
admin_flag=",9.1,"
include "lang/"& LangFilePath &"/lang_sys.inc"
include "lang/"& LangFilePath &"/lang_menu.inc"
include "lang/"& LangFilePath &"/lang_skin.inc"
CurrentId = 6
CurrentUrl = "admin_skin.asp"
LB_Head()
LB_Menu()
action = request("action")
template = safereplace(request("template"))
s_name = safereplace(request("s_name"))
%>
<div class="tabmenu mainwidth">
      <ul>
        <li><a href="admin_skin.asp"><span><%=Lang_Menu(58)%></span></a></li>
		<li class="current"><a href="admin_skin.asp?action=s_list&template=<%=template%>&s_name=<%=server.urlencode(s_name)%>"><span><%=request("s_name")%></span></a></li>
        <li><a href="admin_skin_load.asp"><span><%=Lang_Menu(156)%></span></a></li>
      </ul>
</div>
<%
Response.Write("<div class=""tab-mainbody"">")
Response.Write("<div class=""tab-mainbody2"">")
If Eshop_Lebi_name="" Or instr(","&Eshop_Lebi_flag&",",admin_flag)=0 Then
		adminflag()
Else
		If OutSubmit = 1 Then CheckOutSubmit()
		if request("action")="change" Then
				If OnlyRead = 1 Then OnlyReadMessage()
				top1=CheckNum(request("top1"),0)
				top2=CheckNum(request("top2"),0)
				top3=CheckNum(request("top3"),0)
				top4=CheckNum(request("top4"),0)
				top5=CheckNum(request("top5"),0)
				top6=CheckNum(request("top6"),0)
				top7=CheckNum(request("top7"),0)
				top8=CheckNum(request("top8"),0)
				top9=CheckNum(request("top9"),0)
				top10=CheckNum(request("top10"),0)
				top11=CheckNum(request("top11"),0)
				top12=CheckNum(request("top12"),0)
				top13=CheckNum(request("top13"),0)
				top14=CheckNum(request("top14"),0)
				top15=CheckNum(request("top15"),0)
				top16=CheckNum(request("top16"),0)
				top17=CheckNum(request("top17"),0)
				top18=CheckNum(request("top18"),0)
				top19=CheckNum(request("top19"),0)
				top20=CheckNum(request("top20"),0)
				ys1=CheckNum(request("ys1"),0)
				ys2=CheckNum(request("ys2"),0)
				ys3=CheckNum(request("ys3"),0)
				top21=CheckNum(request("top21"),0)
				top22=CheckNum(request("top22"),0)
				top23=CheckNum(request("top23"),0)
				top24=CheckNum(request("top24"),0)
				top25=CheckNum(request("top25"),0)
				top26=CheckNum(request("top26"),0)
				top27=CheckNum(request("top27"),0)
				top28=CheckNum(request("top28"),0)
				top29=CheckNum(request("top29"),0)
				If template <> "" Then
						s_topnum = top1&"$"&top2&"$"&top3&"$"&top4&"$"&top5&"$"&top6&"$"&top7&"$"&top8&"$"&top9&"$"&top10&"$"&top11&"$"&top12&"$"&top13&"$"&top14&"$"&top15&"$"&top16&"$"&top17&"$"&top18&"$"&top19&"$"&top20&"$"&ys1&"$"&ys2&"$"&ys3&"$"&top21&"$"&top22&"$"&top23&"$"&top24&"$"&top25&"$"&top26&"$"&top27&"$"&top28&"$"&top29&"$"
						LB_XML.Path = server.MapPath("../skins/"& template &"/data.xml")
						LB_XML.Data = "data"
						LB_XML.open
						LB_XML.SelectTable("config")
						LB_XML.Write "topnum",s_topnum
						LB_XML.Update
						LB_XML.close
						If Config_Lebi_Eshop(17)="1" Then
								Application.Contents.RemoveAll
						End If
						m_u="admin_skin.asp"
						Call Up_mes(Lang_sys(69),"·"& Lang_sys(68),0,"admin_skin.asp",0,0,2,1)
				Else
						Response.Write "<script language=""javascript"">alert('"& Lang_Skin(1) &"');javascript:history.back();</script>"
						response.End()
				End If
		Else
%>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" id="classtable" class="classtable">
		<form name="form" method="post" action="?action=change">
		<tr>
		  <td height="30" align="left" class="classhead"><input name="submit" type="image" src="lang/<%=LangFilePath%>/images/bt_app.gif" title=" <%=Lang_sys(1)%> " align="absmiddle">&nbsp;<input type="image" src="lang/<%=LangFilePath%>/images/bt_res.gif" title=" <%=Lang_sys(2)%> " onclick="reset();return false;" align="absmiddle"></td>
		  <td align="right" class="classhead"><%=QuickMenu("","")%></td>
		 </tr>
		 <tr class="classrow">
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(2)%></td>
		</tr>
		<%
		LB_XML.Path = server.MapPath("../skins/"& template &"/data.xml")
		LB_XML.Data = "data"
		LB_XML.open
		LB_XML.SelectTable("config")
		s_topnum = LB_XML.read("topnum")
		LB_XML.close
		str_num=Split(s_topnum,"$")
		top1=str_num(0)
		top2=str_num(1)
		top3=str_num(2)
		top4=str_num(3)
		top5=str_num(4)
		top6=str_num(5)
		top7=str_num(6)
		top8=str_num(7)
		top9=str_num(8)
		top10=str_num(9)
		top11=str_num(10)
		top12=str_num(11)
		top13=str_num(12)
		top14=str_num(13)
		top15=str_num(14)
		top16=str_num(15)
		top17=str_num(16)
		top18=str_num(17)
		top19=str_num(18)
		top20=str_num(19)
		ys1=str_num(20)
		ys2=str_num(21)
		ys3=str_num(22)
		top21=str_num(23)
		top22=str_num(24)
		top23=str_num(25)
		top24=str_num(26)
		top25=str_num(27)
		top26=str_num(28)
		top27=str_num(29)
		top28=str_num(30)
		top29=str_num(31)
		%>
		<tr class="classrow">
		<td width="15%" height="30" class="classrow"><%=Lang_Skin(4)%></td>
		<td class="classrow"><%
		response.write"<select name='skin_id' onChange=""var jmpURL=this.options[this.selectedIndex].value ;if(jmpURL!='') {window.location=jmpURL; }else{ this.selectedIndex=0; }"">"
		response.write"<option>┌ "& Lang_Skin(5) &"</option>"
		Set LB_XMLList = new ASPXML
		LB_XMLList.Path = server.MapPath("../skins/Lebi_Tpl.xml")
		LB_XMLList.Data = "data"
		LB_XMLList.open
		LB_XMLList.SelectTable("template")
		do while not(LB_XMLList.Xml_Bof or LB_XMLList.Xml_Eof)
		response.write"<option value=""?template="& LB_XMLList.read("templatefolder") &"&s_name="& server.urlencode(LB_XMLList.read("name")) &""" "& judge2(template,LB_XMLList.read("templatefolder")) &">├ "& LB_XMLList.read("name") &"</option>"
		LB_XMLList.MoveNext()
		Loop
		LB_XMLList.close
		response.write"</select>"
		%>
		</td>
		</tr>
		<tr>
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(6)%></td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(7)%></td>
		<td class="classrow"><input type="text" name="top1" size="5" value="<%=top1%>" class="form">
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(8)%></td>
		<td class="classrow"><input type="text" name="top2" size="5" value="<%=top2%>" class="form">
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(9)%></td>
		<td class="classrow"><!--<%=Lang_Skin(19)%><input type="text" name="top3" size="5" value="<%=top3%>" class="form">&nbsp;&nbsp;┊&nbsp;&nbsp;<%=Lang_Skin(20)%>--><input type="text" name="top4" size="5" value="<%=top4%>" class="form">
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(10)%></td>
		<td class="classrow"><!--<%=Lang_Skin(19)%><input type="text" name="top5" size="5" value="<%=top5%>" class="form">&nbsp;&nbsp;┊&nbsp;&nbsp;<%=Lang_Skin(20)%>--><input type="text" name="top6" size="5" value="<%=top6%>" class="form">
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(11)%></td>
		<td class="classrow"><!--<%=Lang_Skin(19)%><input type="text" name="top7" size="5" value="<%=top7%>" class="form">&nbsp;&nbsp;┊&nbsp;&nbsp;<%=Lang_Skin(20)%>--><input type="text" name="top8" size="5" value="<%=top8%>" class="form">
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(12)%></td>
		<td class="classrow"><input type="text" name="top9" size="5" value="<%=top9%>" class="form">
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(13)%></td>
		<td class="classrow"><input type="text" name="top10" size="5" value="<%=top10%>" class="form">
		</td>
		</tr>
		<tr>
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(14)%></td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(15)%></td>
		<td class="classrow"><select name="top17" onChange="if(this.options[this.selectedIndex].value==2){document.getElementById('$_ys5').style.display='inline';}else{document.getElementById('$_ys5').style.display='none';}">
		<option value="1" <%If top17="1" Then response.write"selected" End If%>><%=Lang_Skin(16)%></option>
		<option value="0" <%If top17="0" Then response.write"selected" End If%>><%=Lang_Skin(17)%></option>
		<option value="2" <%If top17="2" Then response.write"selected" End If%>><%=Lang_Skin(18)%></option>
		</select>
		<span id="$_ys5" style="<%If top17=2 Then response.write("display:inline;") Else response.write("display:none;") End If%>"><!--&nbsp;&nbsp;┊&nbsp;&nbsp;<%=Lang_Skin(19)%><input type="text" name="top18" size="5" value="<%=top18%>" class="form">--></span>
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(21)%></td>
		<td class="classrow"><input type="text" name="top15" size="5" value="<%=top15%>" class="form">
		</td>
		</tr>
		<tr>
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(22)%></td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(15)%></td>
		<td class="classrow"><select name="ys1" onChange="if(this.options[this.selectedIndex].value==2){document.getElementById('$_ys1').style.display='inline';}else{document.getElementById('$_ys1').style.display='none';}">
		<option value="1" <%If ys1="1" Then response.write"selected" End If%>><%=Lang_Skin(16)%></option>
		<option value="0" <%If ys1="0" Then response.write"selected" End If%>><%=Lang_Skin(17)%></option>
		<option value="2" <%If ys1="2" Then response.write"selected" End If%>><%=Lang_Skin(18)%></option>
		</select>
		<span id="$_ys1" style="<%If ys3=2 Then response.write("display:inline;") Else response.write("display:none;") End If%>"><!--&nbsp;&nbsp;┊&nbsp;&nbsp;<%=Lang_Skin(19)%><input type="text" name="top27" size="5" value="<%=top27%>" class="form">--></span>
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(21)%></td>
		<td class="classrow"><input type="text" name="top12" size="5" value="<%=top12%>" class="form">
		</td>
		</tr>
		<tr>
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(23)%></td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(15)%></td>
		<td class="classrow"><select name="ys3" onChange="if(this.options[this.selectedIndex].value==2){document.getElementById('$_ys3').style.display='inline';}else{document.getElementById('$_ys3').style.display='none';}">
		<option value="1" <%If ys3="1" Then response.write"selected" End If%>><%=Lang_Skin(16)%></option>
		<option value="0" <%If ys3="0" Then response.write"selected" End If%>><%=Lang_Skin(17)%></option>
		<option value="2" <%If ys3="2" Then response.write"selected" End If%>><%=Lang_Skin(18)%></option>
		</select>
		<span id="$_ys3" style="<%If ys3=2 Then response.write("display:inline;") Else response.write("display:none;") End If%>"><!--&nbsp;&nbsp;┊&nbsp;&nbsp;<%=Lang_Skin(19)%><input type="text" name="top29" size="5" value="<%=top29%>" class="form">--></span>
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(21)%></td>
		<td class="classrow"><input type="text" name="top14" size="5" value="<%=top14%>" class="form">
		</td>
		</tr>
		<tr>
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(24)%></td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(15)%></td>
		<td class="classrow"><select name="ys2" onChange="if(this.options[this.selectedIndex].value==2){document.getElementById('$_ys2').style.display='inline';}else{document.getElementById('$_ys2').style.display='none';}">
		<option value="1" <%If ys2="1" Then response.write"selected" End If%>><%=Lang_Skin(16)%></option>
		<option value="0" <%If ys2="0" Then response.write"selected" End If%>><%=Lang_Skin(17)%></option>
		<option value="2" <%If ys2="2" Then response.write"selected" End If%>><%=Lang_Skin(18)%></option>
		</select>
		<span id="$_ys2" style="<%If ys2=2 Then response.write("display:inline;") Else response.write("display:none;") End If%>"><!--&nbsp;&nbsp;┊&nbsp;&nbsp;<%=Lang_Skin(19)%><input type="text" name="top28" size="5" value="<%=top28%>" class="form">--></span>
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(21)%></td>
		<td class="classrow"><input type="text" name="top16" size="5" value="<%=top16%>" class="form">
		</td>
		</tr>
		<tr>
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(25)%></td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(15)%></td>
		<td class="classrow"><select name="top20" onChange="if(this.options[this.selectedIndex].value==2){document.getElementById('$_ys4').style.display='inline';}else{document.getElementById('$_ys4').style.display='none';}">
		<option value="1" <%If top20="1" Then response.write"selected" End If%>><%=Lang_Skin(16)%></option>
		<option value="0" <%If top20="0" Then response.write"selected" End If%>><%=Lang_Skin(17)%></option>
		<option value="2" <%If top20="2" Then response.write"selected" End If%>><%=Lang_Skin(18)%></option>
		</select>
		<span id="$_ys4" style="<%If top20=2 Then response.write("display:inline;") Else response.write("display:none;") End If%>"><!--&nbsp;&nbsp;┊&nbsp;&nbsp;<%=Lang_Skin(19)%><input type="text" name="top21" size="5" value="<%=top21%>" class="form">--></span>
		</td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(21)%></td>
		<td class="classrow"><input type="text" name="top19" size="5" value="<%=top19%>" class="form"> 行
		</td>
		</tr>
		<input type="hidden" name="top26" value="<%=top26%>">
		<tr>
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(26)%></td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(21)%></td>
		<td class="classrow"><input type="text" name="top25" size="5" value="<%=top25%>" class="form">
		</td>
		</tr>
		<tr>
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(27)%></td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(21)%></td>
		<td class="classrow"><input type="text" name="top23" size="5" value="<%=top23%>" class="form">
		</td>
		</tr>
		<tr>
		<td height="30" class="classtop" colspan="2"><%=Lang_Skin(28)%></td>
		</tr>
		<tr class="classrow">
		<td width="15%" class="classrow" height="30"><%=Lang_Skin(21)%></td>
		<td class="classrow"><input type="text" name="top24" size="5" value="<%=top24%>" class="form">
		</td>
		</tr>
		<td class="classfooter" height="30" colspan="2" align="left">
		<input name="submit" type="image" src="lang/<%=LangFilePath%>/images/bt_app.gif" title=" <%=Lang_sys(1)%> " align="absmiddle">&nbsp;<input type="image" src="lang/<%=LangFilePath%>/images/bt_res.gif" title=" <%=Lang_sys(2)%> " onclick="reset();return false;" align="absmiddle">
		<input type="hidden" name="top11" value="<%=top11%>">
		<input type="hidden" name="top13" value="<%=top13%>">
		<input type="hidden" name="top22" value="<%=top22%>">
		<input type="hidden" name="template" value="<%=template%>">
		</td>
		</tr>
		</form>
		</table>
		<script>tdshow("classtable");</script>
		<%
		End If
End If
Response.Write("</div>")
Response.Write("</div>")
LB_Footer()
%>