<!--#include file="QvodCms_Conn.asp"-->
<!--#include file="QvodCms_Check.asp"-->
<%
Dim action,i,html,ConfigHtml
action=Trim(Request.QueryString("action"))
If action="add" then 
	Call config_add
Else
	Call config_main
End If
Sub config_add
    On Error Resume Next
	ConfigHtml=""'初始化变量
	For i=0 to 37
	Config(i)=QvodCms_Replace(Request.Form("Config("&i&")"))
	ConfigHtml=ConfigHtml&"Config("&i&")="""&Config(i)&""""&vbcrlf
	Next
	html="<%"&vbcrlf
	html=html&"Dim Config(37)"&vbcrlf
	html=html&ConfigHtml
	html=html&"%"&">"
	Call MakeHtml("../Cache/QvodCms.Config.asp",html)'生成网站配置文件
	QvodCmsError()
	Response.Redirect"?"
End Sub
%><%Sub config_main%><html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<TITLE>管理页面</TITLE>
<link href="skins/css/jaja_main.css" rel="stylesheet" type="text/css" />
<style type="text/css">input{color: #555}</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="config" method="post" action="?action=add">
<tr>
<th colspan=5 background="Skins/images/tdbg.gif" class="title">&nbsp;网站基本参数配置</th>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">网站安装目录：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(0)" type="text" style="width:240px; text-align:left;" value="<%=Config(0)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">数据库选择：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(1)" type="text" style="width:240px; text-align:left;" value="<%=Config(1)%>"> ACCESS/SQL</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">ACC数据库路径：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(2)" type="text" style="width:240px; text-align:left;" value="<%=Config(2)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">SQL数据库名称：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(3)" type="text" style="width:240px; text-align:left;" value="<%=Config(3)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">SQL数据库帐号：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(4)" type="text" style="width:240px; text-align:left;" value="<%=Config(4)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">SQL数据库密码：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(5)" type="text" style="width:240px; text-align:left;" value="<%=Config(5)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">MSSQL服务器IP<span class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">：</span></td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(6)" type="text" style="width:240px; text-align:left;" value="<%=Config(6)%>"> 
本地可用(local)或127.0.0.1 非本机用其IP </td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">后台管理认证码：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(7)" type="text" style="width:240px; text-align:left;" value="<%=Config(7)%>"></td>
</tr>
<tr>
<th colspan=5 background="Skins/images/tdbg.gif" class="title">&nbsp;VIP资源库采集节点设置</th>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF; color:red">国内节点：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(36)" type="text" id="Config(36)" style="width:240px; text-align:left; color:#FF0000" value="<%=Config(36)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF; color:#006600">国外节点：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(37)" type="text" id="Config(37)" style="width:240px; text-align:left; color:#006600" value="<%=Config(37)%>"></td>
</tr>
<tr>
<th colspan=5 background="Skins/images/tdbg.gif" class="title">&nbsp;网站QQ登录QqConnect.Api设置  使用前须先申请接口(<a href="http://app.opensns.qq.com/dev_reg" target="_blank"><font color="#FF0000">立即申请</font></a>)</th>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">APP ID：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(31)" type="text" id="Config(31)" style="width:240px; text-align:left;" value="<%=Config(31)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">APP KEY：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(32)" type="text" id="Config(32)" style="width:240px; text-align:left;" value="<%=Config(32)%>"></td>
</tr>
<tr>
<th colspan=5 background="Skins/images/tdbg.gif" class="title">&nbsp;网站前台样式配置</th>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">网站名称：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(8)" type="text" style="width:240px; text-align:left;" value="<%=Config(8)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">网站地址：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(9)" type="text" style="width:240px; text-align:left;" value="<%=Config(9)%>"> 二级目录写法www.qvodcms.com/123,不正确的写法生成的地图不能用</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">站长信箱：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(18)" type="text" style="width:240px; text-align:left;" value="<%=Config(18)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">全部电影分类电影数量：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(10)" type="text" style="width:50px; text-align:center;" value="<%=Config(10)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">全部电影分类字符控制：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(11)" type="text" style="width:50px; text-align:center;" value="<%=Config(11)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">模板选择：</td>
<td colspan="3" class="td1" style="padding-left:10px"><Select name="Config(12)" style="width:100;"><%For i=0 to ubound(Split(GetFolders("../Skin/"),","))-1%><option value="<%=Split(GetFolders("../Skin/"),",")(i)%>"<%If Trim(Config(12))=Trim(split(getfolders("../Skin/"),",")(i)) Then%> selected<%End If%>><%=Split(GetFolders("../Skin/"),",")(i)%></option><%Next%></Select></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF"><span class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">版权信息：</span></td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(13)" type="text" style="width:400px; text-align:left;" value="<%=Config(13)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">统计代码：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(14)" type="text" style="width:400px; text-align:left;" value="<%=Config(14)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">SEO关键词：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(15)" type="text" style="width:400px; text-align:left;" value="<%=Config(15)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">SEO网页描述：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(16)" type="text" style="width:400px; text-align:left;" value="<%=Config(16)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">是否开启缓存：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(19)" style="border:none" value="1" <%Call QvodCms_Radio(Config(19),"1")%>>是 <input type="radio" name="Config(19)" style="border:none" value="2" <%Call QvodCms_Radio(Config(19),"2")%>>否 </td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">缓存最大时间：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(20)" type="text" style="width:50px; text-align:left;" value="<%=Config(20)%>"> 单位:小时</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">网站运行模式：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(17)" style="border:none" value="asp" <%Call QvodCms_Radio(Config(17),"asp")%> onClick="ConfigHtml.style.display='none';">动态(Asp) <input type="radio" name="Config(17)" style="border:none" value="html" <%Call QvodCms_Radio(Config(17),"html")%> onClick="ConfigHtml.style.display='block';">静态(Html) <input type="radio" name="Config(17)" style="border:none" value="asphtml" <%Call QvodCms_Radio(Config(17),"asphtml")%> onClick="ConfigHtml.style.display='none';">伪静态</td>
</tr>
<!-- -->
<tbody id="ConfigHtml" <%If Config(17)<>"html" Then Response.Write "style=""display:none"""%>>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">静态生成模式：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(21)" style="border:none" value="1" <%Call QvodCms_Radio(Config(21),"1")%>>全部生成<br><input type="radio" name="Config(21)" style="border:none" value="2" <%Call QvodCms_Radio(Config(21),"2")%>>首页和内容页为生成静态HTML，栏目列表页为动态ASP</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">栏目页存放位置：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(28)" type="text" style="width:50px; text-align:center;" value="<%=Config(28)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">栏目页列表结构：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(22)" style="border:none" value="1" <%Call QvodCms_Radio(Config(22),"1")%>> 
列表文件统一保存在“<%=Config(28)%>”文件夹&nbsp;&nbsp;例：<%=Config(28)%>/<%=Config(28)%>_2.html（栏目首页）<%=Config(28)%>/<%=Config(28)%>_2_2.html（第二页）<br><input type="radio" name="Config(22)" style="border:none" value="2" <%Call QvodCms_Radio(Config(22),"2")%>>
列表文件保存在所属栏目的文件夹中&nbsp;&nbsp;例：XiJu/index.html（栏目首页）XiJu/XiJu_2.html（第二页）
</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">内容页存放位置：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(29)" type="text" style="width:50px; text-align:center;" value="<%=Config(29)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">内容页文件结构：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(23)" style="border:none" value="1" <%Call QvodCms_Radio(Config(23),"1")%>><%=Config(29)%>/文件（统一保存在“<%=Config(29)%>”文件夹中）例：<%=Config(29)%>/1368.html<br><input type="radio" name="Config(23)" style="border:none" value="2" <%Call QvodCms_Radio(Config(23),"2")%>>栏目/文件（例：Dz/1368.html）<br><input type="radio" name="Config(23)" style="border:none" value="3" <%Call QvodCms_Radio(Config(23),"3")%>>栏目/内容ID/（例：XiJu/1368/index.html）<br><input type="radio" name="Config(23)" style="border:none" value="4" <%Call QvodCms_Radio(Config(23),"4")%>>栏目/影片拼音/（例：XiJu/yigehaoren/index.html）</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">内容页命名方式：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(24)" style="border:none" value="1" <%Call QvodCms_Radio(Config(24),"1")%>>影片ID.html 例：1358.html<br><input type="radio" name="Config(24)" style="border:none" value="2" <%Call QvodCms_Radio(Config(24),"2")%>>Md5(文章ID).html 例：5a880faf6fb5e608.html<br><input type="radio" name="Config(24)" style="border:none" value="3" <%Call QvodCms_Radio(Config(24),"3")%>>栏目英文名_ID.html 例：XiJu_1358.html<br><input type="radio" name="Config(24)" style="border:none" value="4" <%Call QvodCms_Radio(Config(24),"4")%>>栏目英文名_影片拼音.html 例：xiju_yigehaoren.html</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF; color:#FF0000">新闻栏目页存放位置：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="Config(33)" type="text" style="width:50px; text-align:center;" value="<%=Config(33)%>"></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">栏目页列表结构：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(35)" style="border:none" value="1" <%Call QvodCms_Radio(Config(35),"1")%>> 
列表文件统一保存在“<%=Config(33)%>”文件夹&nbsp;&nbsp;例：<%=Config(33)%>/<%=Config(33)%>_2.html（栏目首页）<%=Config(33)%>/<%=Config(33)%>_2_2.html（第二页）<br><input type="radio" name="Config(35)" style="border:none" value="2" <%Call QvodCms_Radio(Config(35),"2")%>>
列表文件保存在所属栏目的文件夹中&nbsp;&nbsp;例：dynews/index.html（栏目首页）dynews/dynews_2.html（第二页）
</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">新闻内容页命名方式：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(34)" style="border:none" value="1" <%Call QvodCms_Radio(Config(34),"1")%>>新闻ID.html 例：1358.html<br><input type="radio" name="Config(34)" style="border:none" value="2" <%Call QvodCms_Radio(Config(34),"2")%>>Md5(文章ID).html 例：5a880faf6fb5e608.html<br><input type="radio" name="Config(34)" style="border:none" value="3" <%Call QvodCms_Radio(Config(34),"3")%>>日期+ID.html 例：201109231358.html</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF"><font color="#FF0000">播放页运行模式：</font></td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(30)" style="border:none" value="asp" <%Call QvodCms_Radio(Config(30),"asp")%> >动态(Asp) <input type="radio" name="Config(30)" style="border:none" value="html" <%Call QvodCms_Radio(Config(30),"html")%> onClick="ConfigHtml.style.display='block';"><font color="#0000FF">静态(Html)</font> <font color="#FF0000">生成路径同内容页: [全部生成约占10G空间] 独立服务器-大流量站推荐使用！</font></td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">网站首页扩展名：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(25)" style="border:none" value="html" <%Call QvodCms_Radio(Config(25),"html")%>>.Html<input type="radio" name="Config(25)" style="border:none" value="htm" <%Call QvodCms_Radio(Config(25),"htm")%>>.Htm<input type="radio" name="Config(25)" style="border:none" value="shtml" <%Call QvodCms_Radio(Config(25),"shtml")%>>.Shtml<input type="radio" name="Config(25)" style="border:none" value="shtm" <%Call QvodCms_Radio(Config(25),"shtm")%>>.Shtm</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">栏目页扩展名：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(26)" style="border:none" value="html" <%Call QvodCms_Radio(Config(26),"html")%>>.Html<input type="radio" name="Config(26)" style="border:none" value="htm" <%Call QvodCms_Radio(Config(26),"htm")%>>.Htm<input type="radio" name="Config(26)" style="border:none" value="shtml" <%Call QvodCms_Radio(Config(26),"shtml")%>>.Shtml<input type="radio" name="Config(26)" style="border:none" value="shtm" <%Call QvodCms_Radio(Config(26),"shtm")%>>.Shtm</td>
</tr>
<tr >
<td width="150" class="td3" style="text-align:right; border-bottom:1px solid #FFFFFF">内容页扩展名：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="Config(27)" style="border:none" value="html" <%Call QvodCms_Radio(Config(27),"html")%>>.Html<input type="radio" name="Config(27)" style="border:none" value="htm" <%Call QvodCms_Radio(Config(27),"htm")%>>.Htm<input type="radio" name="Config(27)" style="border:none" value="shtml" <%Call QvodCms_Radio(Config(27),"shtml")%>>.Shtml<input type="radio" name="Config(27)" style="border:none" value="shtm" <%Call QvodCms_Radio(Config(27),"shtm")%>>.Shtm</td>
</tr>
</tbody>
<tr> 
<th colspan=5 style="text-align:center; height:40px;"><input type="submit" value="确认更新" /></th>
</tr>
</form>
</table>
</body>
</html><%End Sub%>