<!--#include file="../Include/conn.asp" -->
<!--#include file="../Include/ConnDatabase.asp" -->
<!--#include file="../Include/Form_board .asp"-->
<!--#include file="CheckAdmin.asp"-->
<%
'=====================================
'天天企业网站管理系统  TianTianCMS
'天天网络科技工作室版权所有
'官方客服中心 http://www.ip126.com
'微信公众号 ip126com
'QQ:530051328 mail:bbfhq@163.com
'=====================================
if Instr(session("AdminPurview"),"|47,")=0 then
  response.write ("<br><br><div align=""center""><font style=""color:red; font-size:9pt; "")>您没有管理该模块的权限！</font></div>")
  response.end
end If

Dim Action,ID,fso,Ts,Data,Moldboard,i,Temp,M_,M(74),TextFile,Text'当前最大变量
MoldboardCh=Request.Form("MoldboardCh")
MoldboardEn=Request.Form("MoldboardEn")
ID=strint(request.QueryString("ID"))

IF Request.Form("Submit")<>"" Then
For i=0 to 74'当前最大变量,从0开始算
IF i=100 Then'过滤一些字条
m(i)=ReplaceBadChar(Request.Form("M"&i))
Else
m(i)=strint(Request.Form("M"&i))'对数字参数格式为数字
End IF
Temp=Temp&m(i)
IF i<>74 Then Temp=Temp&"|"'当前最大变量,从0开始算
Next

Set Rs=server.createobject("adodb.recordset")
Sql="Select ID,M_LabelCh,M_LabelEn,M_Labelstr From TianTianCMS_Template Where ID="&ID
Rs.Open Sql,conn,1,3
Rs(1)=MoldboardCh
Rs(2)=MoldboardEn
Rs(3)=Temp
Rs.Update

session("Temp")=Temp
CodeCh=M_Label(MoldboardCh,session("Temp"))
FileNameCh = Server.MapPath("../Ch/Label.asp")
Call WriteToFile(FileNameCh,CodeCh,"utf-8")'用函数方式
CodeEn=M_Label(MoldboardEn,session("Temp"))
FileNameEn = Server.MapPath("../En/Label.asp")
Call WriteToFile(FileNameEn,CodeEn,"utf-8")'用函数方式

response.write "<script language='javascript'>	alert('标签切换页模板设置成功，并已生成新的标签切换页动态页面\n\n如果开启生成静态页面功能，请重新生成标签切换页静态页！');location.href='javascript:history.go(-1)';</script>"
End IF

Set Rs=Conn.Execute("Select M_Name,M_LabelCh,M_LabelEn,M_Labelstr From TianTianCMS_Template Where ID="&ID)
IF Not Rs.Eof Then Data=Rs.GetRows
Rs.close:Set Rs=Nothing
Call CloseDB(conn)
M_=Split(Data(3,0),"|")
%>
<HTML>
<HEAD>
<link rel="stylesheet" href="Images/Admin.css">
<SCRIPT language="javascript" src="admin.js"></SCRIPT>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<META name="GENERATOR" content="Microsoft FrontPage 6.0">
<META name="ProgId" content="FrontPage.Editor.Document">
<TITLE>标签切换页模板</title>
<style type="text/css">
<!--
body {
	background-color: #D6DFF7;
}
body,td,th {
	color: #135294;
}
-->
</style></HEAD>
<BODY background="images/background.gif">  
<IFRAME width="260" height="165" id="colourPalette" src="nc_selcolor.htm" style="visibility:hidden; position: absolute; left: 0px; top: 0px;border:1px gray solid" frameborder="0" scrolling="no" ></IFRAME>                                                               
  <TABLE width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#799AE1">
    <TR>
      <TD height="20" align="center" bgcolor="#799AE1"><FONT color="#FFFFFF" style="font-size:14px">标 签 切 换 页 模 板 管 理</FONT></TD>
    </TR>
    <TR>
      <TD bgcolor="#FFFFFF">
            <TABLE width="98%" border="0"  align=center cellpadding="1" cellspacing="1" bgcolor="#D6DFF7">
  <FORM name="form1" method="post" action="">
    <TR bgcolor="#FFFFFF">
      <TD width="20%" height="26" align="right">模板代码（中文）</TD>
      <TD width="60%" bgcolor="#FFFFFF" valign="top">当前模板：标签切换页模板Label.asp，当前模板方案：<FONT color="#ff0000"><%=Data(0,0)%></font>
        &nbsp;<TEXTAREA name="MoldboardCh" cols="90" rows="30" id="T2Ch"><%=Data(1,0)%></TEXTAREA></TD>
		<TD width="20%" height="26" align="left" >模版标签：<br>
      可通过如下标签调用相关内容：<p>
<FONT color="#ff0000">
{$关于我们}<br>
{$企业新闻}<br>
{$业内资讯}<br>
{$产品列表}<br>
{$下载中心}<br>
{$企业服务}<br></font></TD></TR>

    <TR bgcolor="#FFFFFF">
      <TD width="20%" height="26" align="right">模板代码（英文）</TD>
      <TD width="60%" bgcolor="#FFFFFF" valign="top">当前模板：标签切换页模板Label.asp，当前模板方案：<FONT color="#ff0000"><%=Data(0,0)%></font>
        &nbsp;<TEXTAREA name="MoldboardEn" cols="90" rows="30" id="T2En"><%=Data(2,0)%></TEXTAREA></TD>
		<TD width="20%" height="26" align="left" >模版标签：<br>
      可通过如下标签调用相关内容：<p>
<FONT color="#ff0000">
{$关于我们}<br>
{$企业新闻}<br>
{$业内资讯}<br>
{$产品列表}<br>
{$下载中心}<br>
{$企业服务}<br>
</font></TD></TR>

	<TR bgcolor="#FFFFFF">
      <TD height="30" align="right">关于我们显示设置：</TD>
      <TD colspan="2">
	    类别ID号：<INPUT name="m0" type="text" id="m0" value="<%=m_(0)%>" size="5">
        内容长度：<INPUT name="m1" type="text" id="m1" value="<%=m_(1)%>" size="5">
        显示标题：<INPUT name="m2" type="checkbox" id="m2" value="1" <%IF strint(m_(2))=1 Then%>checked<%End IF%>>	
		日期样式(0-15)：<INPUT name="m3" type="text" id="m3" value="<%=m_(3)%>" size="5">
   <b>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" ONCLICK="window.open('datetype.htm','Sample','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=200,height=400,left=300,top=20')">0-15种日期样式</b></a></TD>
    </TR>
    <TR bgcolor="#FFFFFF">
      <TD height="26" align="right">企业新闻显示设置：</TD>
      <TD colspan="2">
	        分类ID号：<INPUT name="m4" type="text" id="m4" value="<%=m_(4)%>" size="5">	        
			显示类型：
            <SELECT name="m5" id="m5">
              <OPTION value="0" <%IF strint(m_(5))=0 Then%>selected<%End IF%>>全部</OPTION>
              <OPTION value="1" <%IF strint(m_(5))=1 Then%>selected<%End IF%>>推荐</OPTION>			 
			  <OPTION value="2" <%IF strint(m_(5))=2 Then%>selected<%End IF%>>热门</OPTION>			  
            </SELECT>
            显示条数：<INPUT name="m6" type="text" id="m6" value="<%=m_(6)%>" size="5">
			显示列数：<INPUT name="m7" type="text" id="m7" value="<%=m_(7)%>" size="6">
			标题长度：<INPUT name="m8" type="text" id="m8" value="<%=m_(8)%>" size="5">
			字体大小：<INPUT name="m9" type="text" value="<%=m_(9)%>" size="5">px<br>
			行距：<INPUT name="m10" type="text" value="<%=m_(10)%>" size="5">px
			信笺背景：<INPUT name="m11" type="checkbox" id="m11" value="1" <%IF strint(m_(11))=1 Then%>checked<%End IF%>>
			推荐标志：<INPUT name="m12" type="checkbox" id="m12" value="1" <%IF strint(m_(12))=1 Then%>checked<%End IF%>>            
			固顶标志：<INPUT name="m13" type="checkbox" id="m13" value="1" <%IF strint(m_(13))=1 Then%>checked<%End IF%>>
           	前缀图标：<INPUT name="m14" type="checkbox" id="m14" value="1" <%IF strint(m_(14))=1 Then%>checked<%End IF%>>
			日期样式(0-15)：<INPUT name="m15" type="text" id="m15" value="<%=m_(15)%>" size="5">
			标题颜色：<INPUT name="m16" type="checkbox" id="16" value="1" <%IF strint(m_(16))=1 Then%>checked<%End IF%>>			
			点击数量：<INPUT name="m17" type="checkbox" id="m17" value="1" <%IF strint(m_(17))=1 Then%>checked<%End IF%>>
			</TD>
    </TR>
    <TR bgcolor="#FFFFFF">
      <TD height="26" align="right">业内资讯显示设置：</TD>
      <TD colspan="2">
	        分类ID号：<INPUT name="m18" type="text" id="m18" value="<%=m_(18)%>" size="5">	        
			显示类型：
            <SELECT name="m19" id="m19">
              <OPTION value="0" <%IF strint(m_(19))=0 Then%>selected<%End IF%>>全部</OPTION>
              <OPTION value="1" <%IF strint(m_(19))=1 Then%>selected<%End IF%>>推荐</OPTION>			 
			  <OPTION value="2" <%IF strint(m_(19))=2 Then%>selected<%End IF%>>热门</OPTION>			  
            </SELECT>
            显示条数：<INPUT name="m20" type="text" id="m20" value="<%=m_(20)%>" size="5">
			显示列数：<INPUT name="m21" type="text" id="m21" value="<%=m_(21)%>" size="6">
			标题长度：<INPUT name="m22" type="text" id="m22" value="<%=m_(22)%>" size="5">
			字体大小：<INPUT name="m23" type="text" value="<%=m_(23)%>" size="5">px<br>
			行距：<INPUT name="m24" type="text" value="<%=m_(24)%>" size="5">px
			信笺背景：<INPUT name="m25" type="checkbox" id="m25" value="1" <%IF strint(m_(25))=1 Then%>checked<%End IF%>>
			推荐标志：<INPUT name="m26" type="checkbox" id="m26" value="1" <%IF strint(m_(26))=1 Then%>checked<%End IF%>>            
			固顶标志：<INPUT name="m27" type="checkbox" id="m27" value="1" <%IF strint(m_(27))=1 Then%>checked<%End IF%>>
           	前缀图标：<INPUT name="m28" type="checkbox" id="m28" value="1" <%IF strint(m_(28))=1 Then%>checked<%End IF%>>
			日期样式(0-15)：<INPUT name="m29" type="text" id="m29" value="<%=m_(29)%>" size="5">
			标题颜色：<INPUT name="m30" type="checkbox" id="30" value="1" <%IF strint(m_(30))=1 Then%>checked<%End IF%>>			
			点击数量：<INPUT name="m31" type="checkbox" id="m31" value="1" <%IF strint(m_(31))=1 Then%>checked<%End IF%>>
			</TD>
    </TR>
	    <TR bgcolor="#FFFFFF">
      <TD height="26" align="right">产品列表显示设置：</TD>
      <TD colspan="2">
	        分类ID号：<INPUT name="m32" type="text" id="m32" value="<%=m_(32)%>" size="5">	        
			显示类型：
            <SELECT name="m33" id="m33">
              <OPTION value="0" <%IF strint(m_(33))=0 Then%>selected<%End IF%>>全部</OPTION>
              <OPTION value="1" <%IF strint(m_(33))=1 Then%>selected<%End IF%>>推荐</OPTION>			 
			  <OPTION value="2" <%IF strint(m_(33))=2 Then%>selected<%End IF%>>热门</OPTION>			  
            </SELECT>
            显示条数：<INPUT name="m34" type="text" id="m34" value="<%=m_(34)%>" size="5">
			显示备注：<INPUT name="m35" type="checkbox" id="m35" value="1" <%IF strint(m_(35))=1 Then%>checked<%End IF%>>      
			标题长度：<INPUT name="m36" type="text" id="m36" value="<%=m_(36)%>" size="5">
			备注长度：<INPUT name="m37" type="text" id="m37" value="<%=m_(37)%>" size="5">
			字体大小：<INPUT name="m38" type="text" value="<%=m_(38)%>" size="5">px<br>
			行距：<INPUT name="m39" type="text" value="<%=m_(39)%>" size="5">px			
			推荐标志：<INPUT name="m40" type="checkbox" id="m40" value="1" <%IF strint(m_(40))=1 Then%>checked<%End IF%>>            
			固顶标志：<INPUT name="m41" type="checkbox" id="m41" value="1" <%IF strint(m_(41))=1 Then%>checked<%End IF%>>
            图片标志：<INPUT name="m42" type="checkbox" id="m42" value="1" <%IF strint(m_(42))=1 Then%>checked<%End IF%>>				
           	前缀图标：<INPUT name="m43" type="checkbox" id="m43" value="1" <%IF strint(m_(43))=1 Then%>checked<%End IF%>>
			日期样式(0-15)：<INPUT name="m44" type="text" id="m44" value="<%=m_(44)%>" size="5">
			标题颜色：<INPUT name="m45" type="checkbox" id="45" value="1" <%IF strint(m_(45))=1 Then%>checked<%End IF%>>			
			点击数量：<INPUT name="m46" type="checkbox" id="m46" value="1" <%IF strint(m_(46))=1 Then%>checked<%End IF%>>
			</TD>
    </TR>
    <TR bgcolor="#FFFFFF">
      <TD height="26" align="right">下载中心显示设置：</TD>
      <TD colspan="2">
	        分类ID号：<INPUT name="m47" type="text" id="m47" value="<%=m_(47)%>" size="5">	        
			显示类型：
            <SELECT name="m48" id="m48">
              <OPTION value="0" <%IF strint(m_(48))=0 Then%>selected<%End IF%>>全部</OPTION>
              <OPTION value="1" <%IF strint(m_(48))=1 Then%>selected<%End IF%>>推荐</OPTION>			 
			  <OPTION value="2" <%IF strint(m_(48))=2 Then%>selected<%End IF%>>热门</OPTION>			  
            </SELECT>
            显示条数：<INPUT name="m49" type="text" id="m49" value="<%=m_(49)%>" size="5">
			显示列数：<INPUT name="m50" type="text" id="m50" value="<%=m_(50)%>" size="6">
			标题长度：<INPUT name="m51" type="text" id="m51" value="<%=m_(51)%>" size="5">
			字体大小：<INPUT name="m52" type="text" value="<%=m_(52)%>" size="5">px<br>
			行距：<INPUT name="m53" type="text" value="<%=m_(53)%>" size="5">px
			信笺背景：<INPUT name="54" type="checkbox" id="54" value="1" <%IF strint(m_(54))=1 Then%>checked<%End IF%>>
			推荐标志：<INPUT name="m55" type="checkbox" id="m55" value="1" <%IF strint(m_(55))=1 Then%>checked<%End IF%>>            
			固顶标志：<INPUT name="m56" type="checkbox" id="m56" value="1" <%IF strint(m_(56))=1 Then%>checked<%End IF%>>
           	前缀图标：<INPUT name="m57" type="checkbox" id="m57" value="1" <%IF strint(m_(57))=1 Then%>checked<%End IF%>>
			日期样式(0-15)：<INPUT name="m58" type="text" id="m58" value="<%=m_(58)%>" size="5">
			标题颜色：<INPUT name="m59" type="checkbox" id="59" value="1" <%IF strint(m_(59))=1 Then%>checked<%End IF%>>			
			点击数量：<INPUT name="m60" type="checkbox" id="m60" value="1" <%IF strint(m_(60))=1 Then%>checked<%End IF%>>
			</TD>
    </TR>
    <TR bgcolor="#FFFFFF">
      <TD height="26" align="right">企业服务显示设置：</TD>
      <TD colspan="2">
	        分类ID号：<INPUT name="m61" type="text" id="m61" value="<%=m_(61)%>" size="5">	        
			显示类型：
            <SELECT name="m62" id="m62">
              <OPTION value="0" <%IF strint(m_(62))=0 Then%>selected<%End IF%>>全部</OPTION>
              <OPTION value="1" <%IF strint(m_(62))=1 Then%>selected<%End IF%>>推荐</OPTION>			 
			  <OPTION value="2" <%IF strint(m_(62))=2 Then%>selected<%End IF%>>热门</OPTION>			  
            </SELECT>
            显示条数：<INPUT name="m63" type="text" id="m63" value="<%=m_(63)%>" size="6">
			显示列数：<INPUT name="m64" type="text" id="m64" value="<%=m_(64)%>" size="5">
			标题长度：<INPUT name="m65" type="text" value="<%=m_(65)%>" size="5">px
			字体大小：<INPUT name="m66" type="text" id="m66" value="<%=m_(66)%>" size="5"><br>
			行距：<INPUT name="m67" type="text" value="<%=m_(67)%>" size="5">px
			信笺背景：<INPUT name="68" type="checkbox" id="68" value="1" <%IF strint(m_(68))=1 Then%>checked<%End IF%>>
			推荐标志：<INPUT name="m69" type="checkbox" id="m69" value="1" <%IF strint(m_(69))=1 Then%>checked<%End IF%>>            
			固顶标志：<INPUT name="m70" type="checkbox" id="m70" value="1" <%IF strint(m_(70))=1 Then%>checked<%End IF%>>
           	前缀图标：<INPUT name="m71" type="checkbox" id="m71" value="1" <%IF strint(m_(71))=1 Then%>checked<%End IF%>>
			日期样式(0-15)：<INPUT name="m72" type="text" id="m72" value="<%=m_(72)%>" size="5">
			标题颜色：<INPUT name="m73" type="checkbox" id="73" value="1" <%IF strint(m_(73))=1 Then%>checked<%End IF%>>			
			点击数量：<INPUT name="m74" type="checkbox" id="m74" value="1" <%IF strint(m_(74))=1 Then%>checked<%End IF%>>
			</TD>
    </TR>


    <TR bgcolor="#FFFFFF"> 
      <TD height="30" colspan="3" align=center>	  
      <input name="Submit" type="submit" id="Submit" value="确定">
	  <input name="Submit1" type="button" id="Submit1" value="返回" onClick="location='M_Template_Management.asp?id=<%=ID%>'"/></TD>
      </TR>
  </FORM>
</TABLE>
      <BR></TD>
    </TR>
</TABLE>
</BODY>                    
                    
</HTML>                    
