<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Parameters.aspx.cs" Inherits="ZYDN.Web.system.IEintegratedData.Parameters" ValidateRequest="false" %>

<!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 id="Head1" runat="server">
    <title>整合动网论坛数据设置</title>
    <link type="text/css" rel="stylesheet" href="../skins/CSS/main.css" />
    <link type="text/css" rel="stylesheet" href="../skins/CSS/Sys.css" />
    <style type="text/css">
         table{border="0" cellpadding="0" cellspacing="0"}
         .biaotouTd{font-size:12px;font-weight:bold; text-align:left;height:20px; boder:1px #cccccc solid;  background-color:#A8C1DD; color:#01439a; line-height:20px; border-right:1px #cccccc solid; border-left:1px #cccccc solid;padding-left:5px;}
        .jishutd{border-top:1px #cccccc solid; font-size:12px; text-align:left;color:#01439a; line-height:20px;background-color:#F0F5FB;padding-left:5px;padding-right:5px;}
        .oushutd{border-top:1px #cccccc solid;text-align:left; line-height:20px;font-size:12px;background-color:#FFFFFF;padding-left:5px;padding-right:5px;}
    </style>
    <script language="javascript" type="text/javascript" src="../JS/JFramework.js"></script>
    <script language="javascript" type="text/javascript" src="../JS/Sys.js"></script>
    <script language="javascript" type="text/javascript">
    var objAjax=new JAjax();
    function saveValue(obj)
    {
	    var syskey="";
	    var urlPath="";
	    switch(obj)
	    {
	    case "dvbbs":{
	                    syskey=form1.syskeydvbbs.value;//获取密钥匙
	                    urlPath=form1.urlPathdvbbs.value;//获取url地址
	                    }break;
	    case "oblog":{
	                    syskey=form1.syskeyoblog.value;//获取密钥匙
	                    urlPath=form1.urlPathoblog.value;//获取url地址
	                    }break
	     }
	    var Forumtype=obj;//获取当前设置论坛类型
	    var objResponse=new JHttpResponse();
	    objResponse.write("syskey",syskey);
	    objResponse.write("urlPath",urlPath);
	    objResponse.write("Forumtype",obj);
        var out=objAjax.getText("post","Parameters.aspx?type=save",objResponse,null);
	    if (out=="OK")
	    {alert("数据保存成功");}
	    else
	    {alert(erStr(out));}
    }
function readPar()
          {
            var option=new optionClass();
        	option.titleObj=document.getElementsByName("optionTitle");
			var objBody=document.getElementsByName("optionBody");
			option.bodyObj=objBody;
			option.create(); 
			for (var i=0;i<objBody.length;i++)
			{
			    objBody[i].style.height="191px";
			    objBody[i].style.width="510px";
			    objBody[i].style.overflow="auto";
            }            
	       var out=objAjax.getText("post","Parameters.aspx?type=read","",null);	
           out=comminute(out,c1,c2);
           if(out.length>6)
           {
             $("syskeydvbbs").value=out[0][0];
             $("urlPathdvbbs").value=out[1][0];
             $("syskeyoblog").value=out[3][0];
             $("urlPathoblog").value=out[4][0];
           }
           loadBodyclick();
	       writeFettleLeft("提示:该功能用于整合论坛数据参数设置") //状态栏提示  
        }
    </script>
</head>
<body onload="readPar()">
    <form id="form1" runat="server">
        <div style="position: absolute; top: 1px; left: 0px; width:500px;" id="optionDiv">
         <div style="width:500px;; position: absolute; left: 10px; top: 0px; z-index:2; overflow:auto;" >
              <div name="optionTitle" id="optionTitle">动网论坛</div>
              <div name="optionTitle" id="optionTitle">oblog</div>
         </div>
          <div style="overflow: hidden; width:512px; height: auto; position: absolute; top: 25px;z-index:1;" >
              <div name="optionBody" id="optionBody" style="height: 281px" >
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr><td style="width: 151px" class="oushutd">动网论坛系统密钥：</td><td style="width: 349px" class="oushutd"><input id="syskeydvbbs" type="text" style="width: 350px" isV="1" title="系统密钥"  notNull="1" /></td></tr>
                    <tr><td class="oushutd" colspan="2" style="height: 13px;width:500px;">设置系统密钥 (系统整合，必须保证与其它系统设置的密钥一致。)</td></tr>
                    <tr>
                        <td style="width: 151px" class="jishutd">动网论坛程序接口路径：</td>
                        <td style="width: 349px" class="jishutd"><input id="urlPathdvbbs" type="text" style="width: 348px"  title="整合程序接口文件路径"/></td>
                    </tr>
                     <tr><td class="jishutd" style="width:500px;" colspan="2">
                         整合的其它程序的接文件路径。<br />
                         例如： http://你的网站地址/论坛装目录/api/1.0/dv_api_serv.aspx<br />
                         请确保路径正确</td>
                      </tr>
                      <tr><td colspan="2" class="oushutd" style="width:500px;">请将数据库中zydn_Config表的value字段的宽度修改为300</td></tr>
                    <tr><td colspan="2" class="oushutd" style="height: 27px; text-align: center;width:500px;"><input id="Button1" type="button" value="保存" onclick="saveValue('dvbbs')" /></td></tr>
                </table>
            </div>
              <div name="optionBody" id="optionBody" style="height: 281px">
                   <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 151px" class="oushutd">oblog系统密钥：</td>
                            <td style="width: 349px" class="oushutd"><input id="syskeyoblog" type="text" style="width: 350px" title="系统密钥"/></td>
                           
                        </tr>
                        <tr><td class="oushutd" colspan="2" style="height: 13px;width:500px;">设置系统密钥 (系统整合，必须保证与其它系统设置的密钥一致。)</td></tr>
                        <tr>
                            <td style="width: 151px" class="jishutd">整合程序接口文件路径：</td>
                            <td style="width: 349px" class="jishutd"><input id="urlPathoblog" type="text" style="width: 348px" title="整合程序接口文件路径"/></td>
                        </tr>
                         <tr><td class="jishutd" style="width:500px;" colspan="2">
                             整合的其它程序的接文件路径。<br />
                             例如： http://你的网站地址/博客安装目录/api/1.0/dv_api_serv.aspx<br />
                             请确保路径正确</td>
                          </tr>
                           <tr><td colspan="2" class="oushutd" style="width:500px;">请将数据库中zydn_Config表的value字段的宽度修改为300</td></tr>
                        <tr><td colspan="2" class="oushutd" style="height: 27px; text-align: center;width:500px;"><input id="Button2" type="button" value="保存" onclick="saveValue('oblog')" /></td></tr>
                   </table>
              </div>
        </div>
    </div>
    </form>
</body>
</html>
