
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="../inc/Conn.asp"-->
<!--#include file="Inc/Admin.Asp"-->
<!--#include file="../Inc/Ubbcode.asp"-->
<!--#include file="Inc/Function.asp"-->
<%
StrTitle="网站配置"
action=request("action")
if action="Modify" then
	id=request("id")
	Dream_SiteName=request("Dream_SiteName")
	Dream_SiteTitle=request("Dream_SiteTitle")
	Dream_SiteKeywords=request("Dream_SiteKeywords")
	Dream_SiteDescription=request("Dream_SiteDescription")
	Dream_Footer=request("Dream_Footer")
	Dream_Phone=request("Dream_Phone")
	Dream_Tel=request("Dream_Tel")
	Dream_Biaoyu=request("Dream_Biaoyu")
	Dream_Lxr=request("Dream_Lxr")
	Dream_Copy=request("Dream_Copy")
	Dream_Logo=request("DefaultPicUrl")
	Dream_Banner=request("Dream_Banner")
	Dream_Review=request("Dream_Review")
	Dream_Enter=request("Dream_Enter")
	Dream_Ad1=request("Dream_Ad1")
	Dream_Ad2=request("Dream_Ad2")
	Dream_Ad1Url=request("Dream_Ad1Url")
	Dream_Ad2Url=request("Dream_Ad2Url")
	Dream_Map=request("Dream_Map")
	Dream_Ewm=request("Dream_Ewm")
	Dream_Email=request("Dream_Email")
	Dream_IphoneDown=request("Dream_IphoneDown")
	Dream_AndroidDown=request("Dream_AndroidDown")
	
	Set rs=Server.CreateObject("Adodb.RecordSet")
	rs.open "Select * From Dream_Config Where id=" & id & "",conn,1,3
	if not (rs.bof and rs.eof) then
		rs("Dream_SiteName")=Dream_SiteName
		rs("Dream_SiteTitle")=Dream_SiteTitle
		rs("Dream_SiteKeywords")=Dream_SiteKeywords
		rs("Dream_SiteDescription")=Dream_SiteDescription
		rs("Dream_Footer")=Dream_Footer
		rs("Dream_Phone")=Dream_Phone
		rs("Dream_Tel")=Dream_Tel
		rs("Dream_Biaoyu")=Dream_Biaoyu
		rs("Dream_Lxr")=Dream_Lxr
		rs("Dream_Copy")=Dream_Copy
		rs("Dream_Logo")=Dream_Logo
		rs("Dream_Banner")=Dream_Banner
		rs("Dream_Ad1")=Dream_Ad1
		rs("Dream_Ad2")=Dream_Ad2
		rs("Dream_Ad1Url")=Dream_Ad1Url
		rs("Dream_Ad2Url")=Dream_Ad2Url
		rs("Dream_Map")=Dream_Map
		rs("Dream_Ewm")=Dream_Ewm
		rs("Dream_Email")=Dream_Email
		rs("Dream_IphoneDown")=Dream_IphoneDown
		rs("Dream_AndroidDown")=Dream_AndroidDown
	
		if Dream_Enter="yes" then
		rs("Dream_Enter")=true
		else
		rs("Dream_Enter")=false
		end if
		if Dream_Review="yes" then
		rs("Dream_Review")=true
		else
		rs("Dream_Review")=false
		end if
		rs.update
		rs.close
		set rs=nothing
		Response.Redirect "Dream_Config.asp"  
	end if
end if

dim ID,rs_news
dim sql
dim count
sql="select * from Dream_Config"
Set rs_news= Server.CreateObject("ADODB.Recordset")
rs_news.open sql,conn,1,1
id=rs_news("id")
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改<%=StrTitle%></title>
<link href="css/adminstyle.css" rel="stylesheet" type="text/css">
<script charset="utf-8" src="../editor/kindeditor.js"></script>
<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
<script>
		var Dream_Banner;
		var Dream_Footer;
        KindEditor.ready(function(K){
                Dream_Banner = K.create('#Dream_Banner', {
                        langType : 'zh_CN',
						uploadJson : '../editor/asp/upload_json.asp',
						fileManagerJson : '../editor/asp/file_manager_json.asp',
						allowFileManager : true
                });
				Dream_Footer = K.create('#Dream_Footer', {
                        langType : 'zh_CN',
						uploadJson : '../editor/asp/upload_json.asp',
						fileManagerJson : '../editor/asp/file_manager_json.asp',
						allowFileManager : true
                });
        });
</script>
</head>
<body>
<div class="container">
  <div class="local">
    <h3>您现在的位置：<a href="admin_Index_Main.asp">管理首页</a> >> <a href="Dream_Config.asp"><%=StrTitle%>管理</a></h3>
  </div>
  <table width="100%" border="0" cellpadding="10" cellspacing="0" class="border" style="margin-top:10px;">
    <tr>
      <td><div class="page_content">
          <div class="r_title">
            <h3><img src="images/xiao.jpg" /> 修改<%=StrTitle%></h3>
          </div>
          <%				
				if FoundErr=True then
					call WriteErrMsg()
				else
				%>
          <form method="POST" name="myform"  action="Dream_Config.asp?action=Modify" target="_self">
            <table  width="100%" border="0" cellpadding="2" cellspacing="1" class="table_style">   
			  <tr>
                <th>网站名称：</th>
                <td><input name="Dream_SiteName" type="text" class="input" size="50" maxlength="200" value="<%=rs_news("Dream_SiteName")%>"></td>
              </tr>
			  <tr>
                <th>网站标题：</th>
                <td><input name="Dream_SiteTitle" type="text" class="input" size="50" maxlength="200" value="<%=rs_news("Dream_SiteTitle")%>"></td>
              </tr>
			  <tr>
                <th>网站关键词：</th>
                <td><input name="Dream_SiteKeywords" type="text" class="input" size="50" maxlength="200" value="<%=rs_news("Dream_SiteKeywords")%>"></td>
              </tr>
			  <tr>
                <th>网站描述：</th>
                <td><input name="Dream_SiteDescription" type="text" class="input" size="50" maxlength="200" value="<%=rs_news("Dream_SiteDescription")%>"></td>
              </tr>			  
			  <tr>
                <th>网站LOGO：</th>
                <td>
                  <input name="DefaultPicUrl" type="text" id="DefaultPicUrl" size="30" maxlength="50" style="float:left" class="input" value="<%=rs_news("Dream_Logo")%>">
                  <iframe style="top:2px; display:inline; margin-left:10px; float:left" id="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=6" frameborder=0 scrolling=no width="340" height="30"></iframe>
                </td>
              </tr>
			  <tr>
                <th>手机号码：</th>
                <td><input name="Dream_Phone" type="text" class="input" size="50" maxlength="200" value="<%=rs_news("Dream_Phone")%>"> 注：用于手机网站</td>
              </tr>
			  <tr>
                <th>电话号码：</th>
                <td><input name="Dream_Tel" type="text" class="input" size="50" maxlength="200" value="<%=rs_news("Dream_Tel")%>"> 注：用于PC网站</td>
              </tr>
			  <tr>
                <th>Email：</th>
                <td><input name="Dream_Email" type="text" class="input" size="50" maxlength="200" value="<%=rs_news("Dream_Email")%>"></td>
              </tr>
			  <tr>
                <th>学校地图：</th>
                <td><textarea name="Dream_Map" id="Dream_Map" style="width:99%; height:60px;"><%=rs_news("Dream_Map")%></textarea></td>
              </tr>
			 	<tr>
                <th>网站评论：</th>
                <td><input name="Dream_Review" type="radio" value="yes" <%if rs_news("dream_review")=true then%>checked="checked"<%end if%> />
                启用&nbsp;&nbsp;&nbsp;<input name="Dream_Review" type="radio" value="no" <%if rs_news("dream_review")=false then%>checked="checked"<%end if%>/>关闭</td>
              </tr>
			 <tr>
                <th>二维码：</th>
                <td>
                  <input name="Dream_Ewm" type="text" id="Dream_Ewm" size="30" maxlength="50" style="float:left" class="input" value="<%=rs_news("Dream_Ewm")%>">
                  <iframe style="top:2px; display:inline; margin-left:10px; float:left" id="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=14" frameborder=0 scrolling=no width="340" height="30"></iframe>
                </td>
              </tr>
			  <tr>
                <th>苹果版链接：</th>
                <td><input name="Dream_IphoneDown" type="text" class="input" size="50" maxlength="225" value="<%=rs_news("Dream_IphoneDown")%>"></td>
              </tr>
			  <tr>
                <th>安卓版链接：</th>
                <td><input name="Dream_AndroidDown" type="text" class="input" size="50" maxlength="225" value="<%=rs_news("Dream_AndroidDown")%>"></td>
              </tr>
			  <tr>
                <th>网站底部信息：</th>
                <td><textarea name="Dream_Footer" id="Dream_Footer" style="width:99%; height:60px;"><%=rs_news("Dream_Footer")%></textarea></td>
              </tr>
              <tr align="center">
                <input type="hidden" name="Id" value="<%=id%>">
                <td height="35" colspan="2"><input type="submit" name="Submit" value=" 提交 ">
                  &nbsp;&nbsp;
                  <input type="reset" name="Submit" value=" 重置 ">
                </td>
              </tr>
            </table>
          </form>
        </div></td>
    </tr>
  </table>
  <%
end if
rs_news.close
set rs_news=nothing
call CloseConn()
%>
</div>
</body>
</html>