<%dbs="../"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="uccook.asp"-->
<!--#include file="uc.asp"-->
<%
action=request.QueryString("action")
if action="edit" then
W_title=Replace(Replace(Left(request.Form("W_title"),50),"<","["),">","]")
W_keywords=Replace(Replace(Left(request.Form("W_keywords"),300),"<","["),">","]")
W_description=Replace(Replace(Left(request.Form("W_description"),500),"<","["),">","]")
W_DNS=Replace(Replace(Left(request.Form("W_DNS"),30),"<","["),">","]")
W_DNSkey=Replace(Replace(Left(request.Form("W_DNSkey"),30),"<","["),">","]")
E_title=Replace(Replace(Left(request.Form("E_title"),200),"<","["),">","]")
E_user=Replace(Replace(Left(request.Form("E_user"),30),"<","["),">","]")
W_bbs=Replace(Replace(Left(request.Form("W_bbs"),200),"<","["),">","]")
W_page=Replace(Replace(Left(request.Form("W_page"),2),"<","["),">","]")
W_END=Left(request.Form("W_END"),2000)
E_Mchar=Left(request.Form("E_Mchar"),5000)
E_Mchar=replace(E_Mchar,"table","表格")
E_Mchar=replace(E_Mchar,"TABLE","表格")
E_Mchar=replace(E_Mchar,"<tr","表格")
E_Mchar=replace(E_Mchar,"<td","表格")
E_Mchar=replace(E_Mchar,"</tr","表格")
E_Mchar=replace(E_Mchar,"</td","表格")
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_user where ucuser='"&E_user&"'"
	rs.open sql,conn,1,1
	if rs.bof then
	response.Write "<script >alert('提示：\n\n对不起，系统用户名错误，请填写系统有的用户...');history.back(-1);</script>"
	response.end 
	end if
rs.close
if W_page="" then
	response.Write "<script >alert('提示：\n\n对不起，请选择商家模式...');history.back(-1);</script>"
	response.end 
end if
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select top 1 * from H_config"
	rs.open sql,conn,1,3
	rs("W_title")=W_title
	rs("W_keywords")=W_keywords
	rs("W_description")=W_description
	rs("W_DNS")=W_DNS
	rs("W_DNSkey")=W_DNSkey
	rs("E_title")=E_title
	rs("E_Mchar")=E_Mchar
	rs("E_user")=E_user
	rs("W_END")=W_END
	rs("W_bbs")=W_bbs
	rs("W_page")=W_page
	rs.update
	rs.close
	set rs=nothing	
	response.Write "<script >alert('提示：\n\n修改成功,立即返回...');location.href='config.asp';</script>"
	response.End()	
end if
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title><%=W_title%>,总管理中心</title>


<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
<script>
function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }
</script>
<script>
function oa_tool1(){
window.parent.mm.rows="20,200,10,*";
}
</script>
<SCRIPT language=javascript src="images/jquery.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript src="images/function.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>
<!--


/*
function AddnewType()
*/
-->
</SCRIPT>

<META content="MSHTML 6.00.3790.4426" name=GENERATOR>
</HEAD>
<BODY><!--用户中心头部-->
<!--#include file="top.asp"-->
<table width="960" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="150" valign="top"><!--#include file="left.asp"--></td>
      <td width="810" align="right" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20" align="center"><img src="images/ico_4.gif" width="12" height="12"></td>
                <td height="30" align="left"><a href="index.asp" target="_self">管理中心</a> <span class="uc_huise">&gt;系统设置</span></td>
            </tr>
            <tr>
                <td height="1" colspan="2" bgcolor="#EEEEEE"></td>
        </tr>
        </table>
            <table width="600" height="5" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td></td>
                </tr>
            </table>
		
            <table width="800" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE">
			<form action="config.asp?action=edit" method="post" target="_self">
              <tr>
                <td height="28" colspan="2" bgcolor="#FFFFFF" class="uc_huise">系统设置</td>
              </tr>
              <tr>
                <td width="78" height="28" bgcolor="#FFFFFF" class="uc_huise">站点名称：</td>
                <td width="719" bgcolor="#FFFFFF" class="uc_huise"><input name="W_title" type="text" id="W_title" value="<%=W_title%>"></td>
              </tr>
              <tr>
                <td height="28" bgcolor="#FFFFFF" class="uc_huise">网站标签：</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><input name="W_keywords" type="text" id="W_keywords" value="<%=W_keywords%>"></td>
              </tr>
              <tr>
                <td height="13" bgcolor="#FFFFFF" class="uc_huise">网站描述：</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><textarea name="W_description" cols="80" rows="4" id="W_description"><%=W_description%></textarea></td>
              </tr>
              <tr>
                <td height="14" bgcolor="#FFFFFF" class="uc_huise">网站底部：</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><textarea name="W_END" cols="80" rows="8" id="W_END"><%=W_END%></textarea></td>
              </tr>
              <tr>
                <td height="30" bgcolor="#FFFFFF" class="uc_huise">二级域名：</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><input name="W_DNS" type="text" id="W_DNS" value="<%=W_DNS%>"> <input name="W_DNSkey" type="radio" value="0" <%if W_DNSkey=0 then%> checked<%end if%>>
                  不开通
                  <input type="radio" name="W_DNSkey" value="1"<%if W_DNSkey=1 then%> checked<%end if%>> 
  开通</td>
              </tr>
              <tr>
                <td height="30" bgcolor="#FFFFFF" class="uc_huise">打折信息：</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><input name="W_page" type="radio" value="0" <%if W_page=0 then%> checked<%end if%>>
签约商家才可发布
  <input type="radio" name="W_page" value="1"<%if W_page=1 then%> checked<%end if%>> 
  非签约商家也可发布
</td>
              </tr>
              <tr>
                <td height="30" bgcolor="#FFFFFF" class="uc_huise">论坛连接：</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><input name="W_bbs" type="text" id="W_bbs" value="<%=W_bbs%>" size="80"></td>
              </tr>
              <tr>
                <td height="28" bgcolor="#FFFFFF" class="uc_huise">邮件标题：</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><input name="E_title" type="text" id="E_title" value="<%=E_title%>" size="80"></td>
              </tr>
              <tr>
                <td height="28" bgcolor="#FFFFFF" class="uc_huise">邮件内容：</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><textarea name="E_Mchar" cols="80" rows="4" id="E_Mchar"><%=E_Mchar%></textarea></td>
              </tr>
              <tr>
                <td height="28" bgcolor="#FFFFFF" class="uc_huise">系统用户：</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><input name="E_user" type="text" id="E_user" value="<%=E_user%>" size="60"> 
                  填写系统ID 默认为0</td>
              </tr>
              <tr>
                <td height="28" bgcolor="#FFFFFF" class="uc_huise">&nbsp;</td>
                <td bgcolor="#FFFFFF" class="uc_huise"><input name="Submit" type="submit" class="UCform" value="修 改"></td>
              </tr>
			  </form>
            </table>
      </td>
    </tr>
</table>

<!--#include file="end.asp"-->

</BODY></HTML>
