<!--#include file="../inchuayuwebrlzywzhyweb/CONN.ASP"-->
<!--#include file="../inchuayuwebrlzywzhyweb/cls_huayuweb()^191563631.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="../inchuayuwebrlzywzhyweb/style.css">
<title>网站后台管理系统</title>
<style type="text/css">
<!--
.STYLE5 {color: #000000}
-->
</style>
</head>
<body style="margin:0px">


<link href="../inchuayuwebrlzywzhyweb/Style.Css" rel="stylesheet" type="text/css">

<script charset="utf-8" src="../hywebEditorrlzthyweb/kindeditor.js"></script>
<script charset="utf-8" src="../hywebEditorrlzthyweb/lang/zh_CN.js"></script>
<script charset="utf-8" src="../hywebEditorrlzthyweb/plugins/code/prettify.js"></script>
<script>
<!--

KindEditor.ready(function(K) {
			var editor = K.create('textarea[name="web_bottom"]', {
				cssPath : '../hywebEditorrlzthyweb/plugins/code/prettify.css',
				uploadJson : '../hywebEditorrlzthyweb/upload_json.asp',
				fileManagerJson : '../hywebEditorrlzthyweb/file_manager_json.asp',
				allowFileManager : true,
			 afterBlur: function(){this.sync();}
			});
			prettyPrint();
		});
//-->
</script>
<%

oa.chkadmin()
if oa.act="web" then


   if not isobject(conn) then connectiondatabase
   set rs=server.CreateObject("adodb.recordset")
   rs.open "select * from web_config  where lx='web'",conn,1,3
   rs("web_title")=oa.sqlrequest("web_title")
   rs("web_url")=oa.sqlrequest("web_url")
   rs("web_defaultclass")=oa.sqlrequest("web_defaultclass")
   rs("web_logo")=oa.sqlrequest("web_logo")
   rs("web_Binner")=request("web_banner")
   rs("web_keyword")=request("web_keyword")
   rs("web_content")=request("web_content")
   rs("gonggao")=request("gonggao")
  rs("spurl2")=request("wxewm")
	rs("kftel")=request("kftel")
	 rs("fax")=request("fax")
	 rs("hyc")=request("hyc")
    rs("hyxt")=request("hyxt")
	rs("plxt")=request("plxt")
   rs("web_bottom")=request("web_bottom")
   rs.update
   rs.close
   oa.msgshowurl "操作成功！","web_config.asp"
end if

%>

<table width="98%" height="21" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="35" align="center" bgcolor="#6298E1" style="color:white"><div align="left"><strong>&nbsp;<img src="../img/Explain.gif" width="18" height="18" align="absmiddle" />&nbsp;网站基本信息</strong></div></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#6298E1">
  <form method="POST" name="myform" onSubmit="return CheckForm();" action="web_config.asp">
    
    <tr bgcolor="#FFFFFF">
      <td align="right"><table width="99%" border="0"  align="center" cellpadding="3" cellspacing="1" >
        <tr>
          <td align="left"><U>网站名称</U></td>
          <td align="left"><input name="web_title" type="text" class="wenbenkuang" id="web_title" value="<%=web_title%>" size="45" />          </td>
        </tr>
        <tr>
          <td align="left"><U>网站的访问地址</U></td>
          <td align="left"><input name="web_url" type="text" class="wenbenkuang" id="web_url" value="<%=web_url%>" size="45" />          </td>
        </tr>
        <tr>
          <td align="left"><U>左侧默认显视子栏目</U><br />
            如该栏目无子栏目则模认显视的栏目列表</td>
          <td align="left"><select name="web_defaultclass" id="web_defaultclass">
              <option value="0">显视所有栏目</option>
              <%dim rsclass
		 set rsclass=oa.execute("select classid,classname from classlist where parentid=0 and class_link is null order by rootid, orderid")
		do while not rsclass.eof%>
              <option value="<%=rsclass("classid")%>" <% if web_defaultclass=rsclass("classid") then response.write "selected='selected'"%>><%=rsclass("classname")%></option>
              <% rsclass.movenext
		   loop
		   rsclass.close
		   set rsclass=nothing%>
          </select></td>
        </tr>
        <tr>
          <td align="left"><U>网站首页Logo图片地址</U><br />
            显示在网站顶部左上角，请使用绝对路径</td>
          <td align="left"><input name="web_logo" type="text" class="wenbenkuang"  id="web_logo" size="20" value="<%=web_logo%>" />
              <input type="button" name="Submit114" value="上传" onClick="if (myform.web_logo.value!=''){alert('请删除文件后再进行上传')}else{window.open('../inchuayuwebrlzywzhyweb/upfile.asp?formname=myform&amp;editname=web_logo&amp;uppath=upfile/','','status=no,scrollbars=no,top=20,left=110,width=300,height=130')}" />
              <input type="button" name="Submit1132" value="删除" onClick="if (myform.web_logo.value==''){alert('文件不存在！请不要非法操作')}else{window.open('../inchuayuwebrlzywzhyweb/upload.asp?formname=myform&amp;editname=web_logo&amp;action=del&amp;filepath='+myform.web_logo.value,'','status=no,scrollbars=no,top=20,left=110,width=300,height=130')}" />
             <input type="button" name="Submit112" value="浏览" onClick="open1('<%=webdir%>'+myform.web_logo.value)">        </td>
        </tr>

        <tr>
          <td align="left"><U>站点关键字</U><br />
            将被搜索引擎用来搜索您网站的关键内容<br />
            每个关键字用“,”号分隔</td>
          <td align="left"><input name="web_keyword" type="text" class="wenbenkuang" id="web_keyword" value="<%=web_keyword%>" size="45" />          </td>
        </tr>
        <tr>
          <td align="left"><U>站点描述</U><br />
            将被搜索引擎用来说明您网站的主要内容<br /></td>
          <td align="left"><textarea name="web_content" cols="45" rows="4" class="wenbenkuang" id="web_content"><%=web_content%></textarea></td>
        </tr><tr>
          <td align="left"><u>底部logo</u></td>
          <td align="left"><input name="web_banner" type="text" class="wenbenkuang"  id="web_banner" size="20" value="<%=web_banner%>" />
              <input type="button" name="Submit114" value="上传" onClick="if (myform.web_banner.value!=''){alert('请删除文件后再进行上传')}else{window.open('../inchuayuwebrlzywzhyweb/upfile.asp?formname=myform&amp;editname=web_banner&amp;uppath=upfile/','','status=no,scrollbars=no,top=20,left=110,width=300,height=50')}" />
              <input type="button" name="Submit1132" value="删除" onClick="if (myform.web_banner.value==''){alert('文件不存在！请不要非法操作')}else{window.open('../inchuayuwebrlzywzhyweb/upload.asp?formname=myform&amp;editname=web_banner&amp;action=del&amp;filepath='+myform.web_banner.value,'','status=no,scrollbars=no,top=20,left=110,width=300,height=50')}" />
               <input type="button" name="Submit1131" value="浏览" onClick="open1('<%=webdir%>'+myform.web_banner.value)"></td>
        </tr><tr >
          <td align="left"><u>微信二维码</u></td>
          <td align="left"><input name="wxewm" type="text" class="wenbenkuang"  id="wxewm" size="20" value="<%=wxewm%>" />
              <input type="button" name="Submit114" value="上传" onClick="if (myform.wxewm.value!=''){alert('请删除文件后再进行上传')}else{window.open('../inchuayuwebrlzywzhyweb/upfile.asp?formname=myform&amp;editname=wxewm&amp;uppath=upfile/','','status=no,scrollbars=no,top=20,left=110,width=300,height=50')}" />
              <input type="button" name="Submit1132" value="删除" onClick="if (myform.wxewm.value==''){alert('文件不存在！请不要非法操作')}else{window.open('../inchuayuwebrlzywzhyweb/upload.asp?formname=myform&amp;editname=wxewm&amp;action=del&amp;filepath='+myform.wxewm.value,'','status=no,scrollbars=no,top=20,left=110,width=300,height=50')}" />
               <input type="button" name="Submit1131" value="浏览" onClick="open1('<%=webdir%>'+myform.wxewm.value)"></td>
        </tr><tr >
          <td align="left"><U>网站欢迎词：</U><br /></td>
          <td align="left"><input name="hyc" type="text" class="wenbenkuang" id="hyc" value="<%=hyc%>" size="60" /></td>
        </tr><tr >
          <td align="left"><U>联系电话</U>：</td>
          <td align="left"><input name="kftel" type="text" class="wenbenkuang" id="kftel" value="<%=kftel%>" size="50" /></td>
        </tr><tr> 
          <td align="left">在线客服QQ：</td>
          <td align="left"><input name="fax" type="text" class="wenbenkuang"  id="fax" value="<%=fax%>" size="50">
            （多个QQ请用|进行分开）</td>
        </tr>
		
		<tr>
          <td align="left" >在线客服电话：</td>
          <td align="left"><input name="gonggao" type="text" class="wenbenkuang"  id="gonggao" value="<%=gonggao%>" size="50">
            （多个电话请用|进行分开）</td>
        </tr><tr>
          <td colspan="2" align="left" style="display:none"><div align="center"><font class="a1 STYLE5">会员系统:
            <select name="hyxt" id="hyxt">
                <option value="1" <%if hyxt=1 then%> selected="selected"<%end if%> >开放</option>
                <option value="2" <%if hyxt=2 then%> selected="selected"<%end if%> >关闭</option>
                </select>
  &nbsp;&nbsp;&nbsp;评论系统:
  <select name="plxt" id="plxt">
    <option value="1" <%if plxt=1 then%> selected="selected"<%end if%> >开放</option>
    <option value="2" <%if plxt=2 then%> selected="selected"<%end if%> >关闭</option>
  </select>
          </font></div></td>
          </tr>
        <tr>
          <td align="left"><p><U>网站版权信息</U><U><br />
          </U>网站脚部显视内容，支持使用html语法</p></td>
          <td align="left" valign="top"><textarea name="web_bottom" cols="50" rows="5" class="wenbenkuang" style="display:none;width:700px;height:300px;"><%=web_bottom%></textarea>       </td>
        </tr>
        <tr>
          <td height="30" colspan="2" align="center"><input name="action" type="hidden" id="action" value="web" />
              <input type="submit" name="Submit3" value="提交" />
              <input type="reset" name="Submit22" value="重置" /></td>
        </tr>
      </table></td>
    </tr>
  </form>
</table>

<script language = "JavaScript">
function CheckForm()
{
  if (document.myform.ClassID.value=="")
  {
    alert("友情提示：文章所属栏目不能指定为含有子栏目的栏目！");
	document.myform.ClassID.focus();
	return false;
  }

  if (document.myform.title.value=="")
  {
    alert("友情提示：文章标题不能为空！");
	document.myform.title.focus();
	return false;
  }
  if(isUnsignedInteger(document.myform.orderid.value) == false||document.myform.orderid.value==""){
		alert("友情提醒:排序需为正整数");
		document.myform.order.focus();
		
		return (false);
		}
  return true;  
}
</script>
<script language="javascript">
function open1(valu)
{
if (valu=="")
{
alert('您还没有上传图片');
}
else
{
window.open(valu,'','')
}
}
</script>

