<html>
<head>
<META content=ywnt,云网互动影视管理系统 name=keywords>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>云网互动影视6.0--系统设置</title>
<LINK href="css/css.css" type=text/css rel=stylesheet>
</head>
<BODY leftMargin=0 topMargin=0 scroll=yes MARGINHEIGHT="0" MARGINWIDTH="0">
<!--#include file="../Conn.asp" -->
<!--#include file="YWNT_TMS_inc/YWNT_TMS_Function.asp" -->
<script language="JavaScript" src="YWNT_TMS_Inc/YWNT_TMS_Common.js"></script>
<%
'===================================================================================================================
'软件名称：云网影视管理系统
'Copyright (C) 2002-2007 ywnt.net  All rights reserved.
'产品咨询QQ：489234,2813712
'程序版权：云网互动科技有限公司
'程序开发：云网互动科技有限公司
'官方网站：http://www.ywnt.net 
'郑重声明:
'    1、免费版本请在程序首页保留版权信息，并做上本站LOGO友情连接,商业版本无此要求;
'    2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息；
'    3、云网互动科技有限公司保留此软件的法律追究权利
'===================================================================================================================
Call CheckLogin("System")
Dim Rs,sql
		Select Case Request("Action")
		Case "Save"
		Set Rs=Server.CreateObject(YWNT_TMS_RS)
		sql="select * from YWNT_TMS_Config where ID="&NoSqlHack(Request.Form("ID"))
		Rs.open sql,Conn,1,3
		RS("Weburl")=NoSqlHack(Request.Form("weburltext"))
		RS("WebName")=NoSqlHack(Request.Form("webnametext"))
		RS("WebLogo")=NoSqlHack(Request.Form("weblogotext"))
		RS("WebMeta")=NoSqlHack(Request.Form("webkeywordstext"))
		RS("WebCentent")=NoSqlHack(Request.Form("webctiontext"))
		RS("WebOff")=NoSqlHack(Request.Form("weboff"))
		RS("WebonReasons")=NoSqlHack(Request.Form("webonReasons"))
		RS("WebMode")=NoSqlHack(Request.Form("webmode"))
		RS("WebSession")=NoSqlHack(Request.Form("webtimetext"))
		RS("PageNumber")=NoSqlHack(Request.Form("webpagetext"))
		RS("UpTypes")=NoSqlHack(Request.Form("webupTypestext"))
		RS("UpSize")=NoSqlHack(Request.Form("webupSizetext"))
		RS("WebiInstallDir")=NoSqlHack(Request.Form("websetuptext"))
		RS("AdminDir")=NoSqlHack(Request.Form("webadmintext"))
		RS("PhotoUpDir")=NoSqlHack(Request.Form("webPhototext"))
		RS("HtmlDIr")=NoSqlHack(Request.Form("webhtmltext"))
		RS("MailServer")=NoSqlHack(Request.Form("MailServer"))
		RS("MailUser")=NoSqlHack(Request.Form("MailUser"))
		RS("MailPassword")=NoSqlHack(Request.Form("MailPassword"))
		RS("WebCopy")=NoSqlHack(Request.Form("webCopyrighttext"))
		Rs.Update
		Rs.Close
		Set Rs = Nothing
		Call AddLog("修改网站配置信息",1)
		call Admin_ShowErr("<li>网站配置信息修改成功</li>","Admin_System.asp",1)
		Case Else
		Set Rs=Server.CreateObject(YWNT_TMS_RS)
		sql="select * from YWNT_TMS_Config"
		Rs.open sql,Conn,1,1
		YWNT_TMS_ID=RS("ID")
		YWNT_TMS_Weburl = RS("Weburl")
		YWNT_TMS_WebName = RS("WebName")
		YWNT_TMS_WebLogo=RS("WebLogo")
		YWNT_TMS_WebMeta=RS("WebMeta")
		YWNT_TMS_WebCentent=RS("WebCentent")
		YWNT_TMS_WebOff=RS("WebOff")
		YWNT_TMS_WebonReasons=RS("WebonReasons")
		YWNT_TMS_WebMode=RS("WebMode")
		YWNT_TMS_WebSession=RS("WebSession")
		YWNT_TMS_PageNumber=RS("PageNumber")
		YWNT_TMS_UpTypes=RS("UpTypes")
		YWNT_TMS_UpSize=RS("UpSize")
		YWNT_TMS_WebiInstallDir=RS("WebiInstallDir")
		YWNT_TMS_AdminDir=RS("AdminDir")
		YWNT_TMS_PhotoUpDir=RS("PhotoUpDir")
		YWNT_TMS_HtmlDIr=RS("HtmlDIr")
		YWNT_TMS_MailServer=RS("MailServer")
		YWNT_TMS_MailUser=RS("MailUser")
		YWNT_TMS_MailPassword=RS("MailPassword")
		YWNT_TMS_WebCopy=RS("WebCopy")
		RS.close   
      	set RS=nothing
		End Select%>
<TABLE class=table height=197 cellSpacing=1 cellPadding=3 width="98%" 
align=center border=0>
  <TBODY>
  <TR>
    <TD class=xingmu colSpan=4>系统设置</TD>
  </TR>
 <form name="form" action="Admin_System.asp?Action=Save" method="post" onSubmit="return checkSend();">
 <TR>
    <TD height=32 align="right" class="hback">站点域名：</TD>
    <TD height=32 class="hback"><input name="ID" type="hidden" value="<%=YWNT_TMS_ID%>">
    <input name="weburltext" type="text" id="weburltext" value="<%=YWNT_TMS_Weburl%>" size="40">
    (请使用http://标识),后面不要带"/"符号 </TD>
  </TR>
  <TR>
    <TD width="21%" height=32 align="right" class="hback">站点名称：</TD>
    <TD width="79%" height=32 class="hback"><input name="webnametext" type="text" id="webnametext" value="<%=YWNT_TMS_WebName%>" size="40"></TD>
  </TR>
  <TR>
    <TD width="21%" height=32 align="right" class="hback">站点LOGO：</TD>
    <TD width="79%" height=37 class="hback"><input name="weblogotext" type="text" id="weblogotext" value="<%=YWNT_TMS_WebLogo%>" size="40"></TD>
  </TR>
  <TR>
    <TD width="21%" height=32 align="right" class="hback">站点关键字：</TD>
    <TD width="79%" height=32 class="hback"><textarea name="webkeywordstext" cols="40" rows="5" id="webkeywordstext"><%=YWNT_TMS_WebMeta%></textarea></TD>
  </TR>
  <TR>
    <TD width="21%" height=32 align="right" class="hback">站点介绍：</TD>
    <TD width="79%" height=32 class="hback"><textarea name="webctiontext" cols="40" rows="5" id="webctiontext"><%=YWNT_TMS_WebCentent%></textarea></TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">站点开关：</TD>
    <TD height=32 class="hback">
      <input type="radio" name="weboff" value="1" onClick="showThumbnail_RateOrSize(1,'Reasons')" <%if YWNT_TMS_WebOff=1 then Response.Write("checked")%>>
      关闭站点
       &nbsp; &nbsp; &nbsp; &nbsp;<input name="weboff" type="radio" value="0" onClick="showThumbnail_RateOrSize(0,'Reasons')" <%if YWNT_TMS_WebOff=0 then Response.Write("checked")%>>
      开启站点</TD>
  </TR>
    <TR id=Reasons style="display:none">
    <TD height=32 align="right" class="hback">关闭原因：</TD>
    <TD height=32 class="hback"><textarea name="webonReasons" cols="40" rows="5" id="webonReasons"><%=YWNT_TMS_WebonReasons%></textarea></TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">站点模式：</TD>
    <TD height=32 class="hback"><select name="webmode">
      <option value="1" <%if YWNT_TMS_WebMode=1 then Response.Write("selected")%>>收费模式 &nbsp;</option>
      <option value="0" <%if YWNT_TMS_WebMode=0 then Response.Write("selected")%>>免费模式 &nbsp;</option>
    </select></TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">Session会话保持时间：</TD>
    <TD height=32 class="hback"><input name="webtimetext" type="text" id="webtimetext" value="<%=YWNT_TMS_WebSession%>" size="40"  onkeypress="onlyNum();">
      /分钟</TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">后台操作区每页显示数量：</TD>
    <TD height=32 class="hback"><input name="webpagetext" type="text" id="webpagetext" value="<%=YWNT_TMS_PageNumber%>" size="40" onKeyPress="onlyNum();">
      /条</TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">上传文件类型：</TD>
    <TD height=32 class="hback"><input name="webupTypestext" type="text" id="webupTypestext" value="<%=YWNT_TMS_UpTypes%>" size="40"></TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">上传文件大小：</TD>
    <TD height=32 class="hback"><input name="webupSizetext" type="text" id="webupSizetext" value="<%=YWNT_TMS_UpSize%>" size="40" onKeyPress="onlyNum();">
      /kb &nbsp;&nbsp;&nbsp;&nbsp;提示：1 MB = 1024 KB</TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">站点安装目录：</TD>
    <TD class="hback"><input name="websetuptext" type="text" id="websetuptext" value="<%=YWNT_TMS_WebiInstallDir%>" size="40">
      系统安装的虚拟目录</TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">网站后台目录：</TD>
    <TD class="hback"><input name="webadmintext" type="text" id="webadmintext" value="<%=YWNT_TMS_AdminDir%>" size="40"></TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">生成页面目录：</TD>
    <TD class="hback"><input name="webhtmltext" type="text" id="webhtmltext" value="<%=YWNT_TMS_HtmlDIr%>" size="40"></TD>
  </TR>
  <TR>
    <TD height=32 align="right" class="hback">图片上传目录：</TD>
    <TD class="hback"><input name="webPhototext" type="text" id="webPhototext" value="<%=YWNT_TMS_PhotoUpDir%>" size="40"></TD>
  </TR>
  <TR>
    <TD height=32 colspan="2" class="hback"><table width="100%" border="0" class=table align="center" cellpadding="3" cellspacing="1">
      <tr>
        <td width="21%" height="32" align="right" class="hback">发送邮件服务器：</td>
        <td width="79%" class="hback"><input name="MailServer" type="text" id="MailServer" value="<%=YWNT_TMS_MailServer%>" size="40"></td>
      </tr>
      <tr>
        <td height="32" align="right" class="hback">发送邮件用户名：</td>
        <td class="hback"><input name="MailUser" type="text" id="MailUser" value="<%=YWNT_TMS_MailUser%>" size="40"></td>
      </tr>
      <tr>
        <td height="32" align="right" class="hback">发送邮件密码：</td>
        <td class="hback"><input name="MailPassword" type="text" id="MailPassword" value="<%=YWNT_TMS_MailPassword%>" size="40"></td>
      </tr>
      
    </table></TD>
    </TR>
  <TR>
    <TD height=32 align="right" class="hback">网站版权：</TD>
    <TD height=32 class="hback"><textarea name="webCopyrighttext" cols="40" rows="8" id="webCopyrighttext"><%=YWNT_TMS_WebCopy%></textarea></TD>
  </TR>
  <TR align="center">
    <TD height=32 colspan="2" class="hback"><input type="submit" name="Submit" value="提 交">
      <input type="reset" name="reset" value="重 置"></TD>
    </TR>
	</form>
  </TBODY></TABLE>
  <script language="javascript">
  showThumbnail_RateOrSize(<%=YWNT_TMS_WebOff%>,'Reasons')
function showThumbnail_RateOrSize(param,pname)
{
	if(param==1)
	{
		document.getElementById(pname).style.display="block"
	}else
	{
		document.getElementById(pname).style.display="none"
	}
}
  </script>
<%call connclose()%>
</BODY></HTML>
