<!--#include file="conn/hl_conn.asp" -->
<!--#include file="inc/hl_manage.inc" -->
<%
'……………………版权信息……………………
'本软件已登记软件著作权，版权归广州恒浪网络科技有限公司所有。所有代码都已经注册登记！
'任何未经许可的修改、复制、提供下载、出售等均属违法侵权行为，请尊重版权，勿以身试法！谢谢！
'请保留此版权信息，请尊重版权，勿以身试法！谢谢！
'网    址：http://www.Howave.Net
'技术论坛：http://BBS.Howave.Net
'联系邮箱：websky888@gmail.com 
'……………………版权信息……………………
%>
<%set rs=server.CreateObject("adodb.recordset")
      sql="select * from hl_web"
	  rs.open sql,conn,1,1
	  
%>
<style type="text/css">
<!--
body {
	margin-top: 0px;
	margin-left: 0px;
}
.STYLE12 {font-size: 12px}
.a {
	BORDER-RIGHT: #cccccc 0px solid; BORDER-TOP: #cccccc 0px solid; FONT-SIZE: 12px; BORDER-LEFT: #cccccc 0px solid; WIDTH: 100px; COLOR: #666666; LINE-HEIGHT: 20px; BORDER-BOTTOM: #cccccc 0px solid; HEIGHT: 18px; TEXT-DECORATION: red
}
.b {
	BORDER-RIGHT: #cccccc 0px solid; BORDER-TOP: #cccccc 0px solid; FONT-SIZE: 12px; BORDER-LEFT: #cccccc 0px solid; WIDTH: 200px; COLOR: #666666; LINE-HEIGHT: 20px; BORDER-BOTTOM: #cccccc 0px solid; HEIGHT: 18px; TEXT-DECORATION: none
}
.c {
	BORDER-RIGHT: #cccccc 0px solid; BORDER-TOP: #cccccc 0px solid; FONT-SIZE: 12px; BORDER-LEFT: #cccccc 0px solid; WIDTH: 220px; COLOR: #666666; LINE-HEIGHT: 20px; BORDER-BOTTOM: #cccccc 0px solid; HEIGHT: 18px; TEXT-DECORATION: none
}
.td {font-size: 12px;
color:#FF0000}
body,td,th {
	font-size: 12px;
}
.STYLE16 {color: #669900}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language='JavaScript' type='text/JavaScript'>
function preloadImg(src) 
{
  var img=new Image();
  img.src=src
}
preloadImg("Images/admin_top_open.gif");

var displayBar=true;
function switchBar(obj) 
{
  if (displayBar) 
  {
    parent.frame.cols="0,*";
    displayBar=false;
    obj.src="img/open.gif";
    obj.title="打开左边管理导航菜单";
  } else 
  {
    parent.frame.cols="165,*";
    displayBar=true;
    obj.src="img/close.gif";
    obj.title="关闭左边管理导航菜单";
  }
}
</script>



<body onLoad="MM_preloadImages('img/b32.jpg','img/b1.jpg','img/b2.jpg','img/b3.jpg')">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="92%" align="center"><table width="808" border="0" align="right" cellpadding="0" cellspacing="0" background="img/r3_c3.jpg">
      <tr>
        <td width="620" height="35"></td>
        <td width="193" class="td"></td>
      </tr>
    </table></td>
    <td width="8%" background="img/top_bg3.gif">&nbsp;</td>
  </tr>
</table>
<table width="808" height="34" border="0" align="center" cellpadding="0" cellspacing="0" background="img/r4_c3.jpg">
  <tr>
    <td width="178">&nbsp;</td>
    <td width="102" valign="bottom"><a href="#" target="hl_main"><img src="img/b11.jpg" name="Image1" width="102" height="24" border="0" id="Image1" onMouseOver="MM_swapImage('Image1','','img/b1.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td>
    <td width="102" valign="bottom"><a href="Admin_Index_Back.asp" target="hl_main"><img src="img/b21.jpg" name="Image3" width="102" height="24" border="0" id="Image3" onMouseOver="MM_swapImage('Image3','','img/b2.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td>
    <td width="102" valign="bottom"><a href="Admin_Index_Channel.asp" target="hl_main"><img src="img/b31.jpg" name="Image4" width="102" height="24" border="0" id="Image4" onMouseOver="MM_swapImage('Image4','','img/b3.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td>
    <td width="336" valign="bottom"><a href="Admin_Index_UserChannel.asp" target="hl_main"><img src="img/b41.jpg" name="Image5" width="102" height="24" border="0" id="Image5" onMouseOver="MM_swapImage('Image5','','img/b32.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td>
  </tr>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="0">
  <form action="modify.asp?action=changekey" method="post" name="modify">
  <input type="hidden" name="WebID" value="<%=rs("id")%>" />
<tr><td valign="top">
<table width="808" border="1"  align="center" cellpadding="2" cellspacing="0" bordercolor="#A0D3FE" bgcolor="#EEF9FD" class="STYLE12" style="BORDER-COLLAPSE: collapse">
  <tr>
    <td width="57" height="41" align="right">网站密钥</td>
    <td width="229" height="41" valign="middle"><input name="SecurityKey" type="text" size="32" value="<%=rs("hl_webkey")%>"/>    </td>
    <td width="67" rowspan="5" align="center" valign="middle"><input type="image" src="img/button_1.jpg" name="Image2" width="58" height="23" border="0" id="Image2" /></a></td>
    <td width="429" rowspan="5" valign="top" class="STYLE12">说明：<br>
      <br>
      1、网站地址必须是恒浪manage所在的空间地址。<br>
      网站地址可以填&quot;/&quot;或者直接填写你的域名如&quot;http://www.jsp163.com/&quot;<br>
和恒浪整合不在同一空间请相应修改各个目标系统upiconfig里的HL_Url和Manage_Url的值<br>
<br>
2、网站密钥和后台密钥请自行修改，并在整合目标系统里的inc/upiconfig.asp里相应修改SecurityKey和AdminSecurityKey的值与整合设置的值相同。 <br>
<br>
<br>
3、若manage放在根目录的形式如http://www.XXX.com/manage/则填&quot;manage/&quot;<br>
若manage放在二级目录，形式如http://www.XXX.com/FFF/manage/则manage目录地址为:FFF/manage/<br>
若需修改manage的文件夹名，则把manage修改成你想要的名称即可<br>
若不在同一服务器下请手动修改inc/upiconfig.asp里的manage_Url</td>
  </tr>
  <tr>
    <td height="38" align="right">网站名称      </td>
    <td height="38" valign="middle"><label>
    <input name="hl_webname" type="text" id="hl_webname" value="<%=rs("hl_webname")%>" size="32" /></label></td>
    </tr>
  <tr>
    <td height="38" align="right">网站地址
      <label></label></td>
    <td height="38" valign="middle"><input name="hl_weburl" type="text" id="hl_weburl" value="<%=rs("hl_weburl")%>" size="32" /></td>
    </tr>
  <tr>
    <td height="38" align="right">后台密钥</td>
    <td height="38" valign="middle"><input name="AdminSecurityKey" type="text" id="AdminSecurityKey" value="<%=rs("hl_adminkey")%>" size="32"/></td>
    </tr>
  <tr>
    <td height="38" align="right">manage<br>
      目录地址</td>
    <td height="38" valign="middle"><input name="hl_manageurl" type="text" id="hl_manageurl" value="<%=rs("hl_manageurl")%>" size="32"/></td>
    </tr>
</table>
</td>
</tr></form>
<tr><td height="20"></td></tr>
<form action="Admin_Index_Main.asp?action=add" method="post" name="add" target="_self">
<tr><td align="center" valign="top">
<table width="808" height="32" border="0" align="center" cellpadding="0" cellspacing="0" background="img/r7_c3.jpg">
  <tr>
    <td width="118" height="32" align="right" class="STYLE12">前台整合设置</td>
    <td width="555">&nbsp;</td>
    <td width="150" valign="middle"><input type="image" src="img/button_2.jpg" name="Submit" value="添加" /></td>
  </tr>
</table>
</td>
</tr>
</form>


<tr>
  <td><table width="808" border="1"  align="center" cellpadding="2" cellspacing="0" bordercolor="#A0D3FE" bgcolor="#EEF9FD" style="BORDER-COLLAPSE: collapse" background="img/td_bg.jpg">
    <tr>
      <td width="105"  align="center" valign="middle" class="STYLE12">前台整合系统</td>
      <td width="390" align="center" valign="middle" class="STYLE12">前台接口路径</td>
      <td width="96" align="center" valign="middle" class="STYLE12">关闭注册</td>
      <td width="92" align="center" valign="middle" class="STYLE12">是否整合</td>
      <td width="93" align="center" valign="middle" class="STYLE12">操作</td>
    </tr>
  </table></td>
</tr>
<tr>
  <td>
   <%
	Set rsweb=Server.CreateObject("ADODB.Recordset")
	sqlweb="Select * from hl_web where id=1"
	rsweb.open sqlweb,conn,1,1
	
	Set rsinfo=Server.CreateObject("ADODB.Recordset")
	sqlinfo="Select * from hl_config"
	rsinfo.open sqlinfo,conn,1,1
	
	if  rsinfo.eof or rsinfo.bof and request("action")="" then
	%>
	<table width="808" border="1"  align="center" cellpadding="2" cellspacing="0" bordercolor="#A0D3FE" bgcolor="#EEF9FD" style="BORDER-COLLAPSE: collapse">
    <tr><td>没有整合网站</td></tr></table>
	<%
	else
	i=1
	do while not rsinfo.eof
	%>

  <table width="808" border="1"  align="center" cellpadding="2" cellspacing="0" bordercolor="#A0D3FE" bgcolor="#EEF9FD" style="BORDER-COLLAPSE: collapse"><form action="modify.asp?action=Modify" method="post" >
    <tr>
	<input type="hidden" name="id" value="<%=rsinfo("id")%>" />
	<input type="hidden" name="type" value="ModifyFront" />
      <td width="107"  align="center" valign="middle" class="STYLE12"><input name="hl_name" type="text" size="12" value="<%=rsinfo("hl_name")%>" /></td>
      <td width="390" align="center" valign="middle" class="STYLE12"><input name="hl_interface" type="text"  value="<%=rsinfo("hl_interface")%>" size="50"/></td>
      <td width="94" align="center" valign="middle" class="STYLE12"><label>
        <input name="hl_RegClose" type="checkbox" id="hl_RegClose" value="1" <%if rsinfo("hl_RegClose")=1 then%>checked<%end if%>>
      </label></td>
      <td width="91" align="center" valign="middle" class="STYLE12"><input name="hl_open"  id="hl_open" type="checkbox" value="1" <%if rsinfo("hl_open")=1 then%>checked<%end if%>/></td>
      <td width="94" align="center" valign="middle" class="STYLE12" ><input type="submit" name="submit" value="修改" />　<a href="modify.asp?id=<%=rsinfo("id")%>&action=del" onClick="return confirm('将会删除前台和后台接口!!确定要删吗？');" target="_self">删除</a></td>
    </tr></form>
  </table>
  
  <%rsinfo.movenext
  loop
  end if
  hl_weburl=rsweb("hl_weburl")
  rsweb.close
  set rsweb=nothing
   rsinfo.close
   set rsinfo=nothing
%>
<%if request("action")="add" then%>

<table width="808"  border="1"  align="center" cellpadding="2" cellspacing="0" bordercolor="#A0D3FE" bgcolor="#EEF9FD" style="BORDER-COLLAPSE: collapse">
   <tr><form action="modify.asp?action=add" method="post">
      <td width="106"  align="center" valign="middle" class="STYLE12"><input name="hl_name" type="text" class="STYLE12" size="12" /></td>
      <td width="391" align="center" valign="middle" class="STYLE12"><input name="hl_interface" type="text" size="50"/></td>
      <td width="94" align="center" valign="middle" class="STYLE12"><input name="hl_RegClose" type="checkbox" id="hl_RegClose" value="1"></td>
      <td width="92" align="center" valign="middle" ><input name="hl_open" type="checkbox" value="1" /></td>
      <td width="93" align="center" valign="middle" class="STYLE12" ><input type="submit" name="submit" value="保存" /><input type="reset" name="reset" value="清除" /></td>
  </form> </tr>
  </table>

  <%end if%>
  <br>
  <table border="1" width="808" align="center" cellpadding="2" cellspacing="0" bordercolor="#A0D3FE" bgcolor="#EEF9FD" style="BORDER-COLLAPSE: collapse"><tr>
    <td valign="top"><span class="STYLE12">说明：<br>
  1、要实现网站整合必须填写正确的前台接口地址和后台接口地址，如果你的几个系统都是放在同一服务器上，并且域名指向你的根目录那么填写格式如下&quot;\bbs\interface.asp&quot;。若你的目标系统跟恒浪整合系统不在同一空间请填写完整的地址如http://bbs.abc.com/interface.asp<br>
      2、如果不需要整合其中任何一个系统，只需在是否整合里不选中，然后点击修改即可.<br>
      3、若你需要把整合的某一个系统关闭注册，那么你就要在关闭注册里选中，点击修改.然后到该系统的后台进行相应的设置.<br>
      4、若整合系统中有博客，可以关闭博客注册，使用激活博客，也不影响整合。<br>
      5、若你的几个目标系统在不同的服务器，那么你只需修改不和manage目录在同一服务器下的系统的inc/upiconfig的设置，将link=1改成2即可.<br>
      如你的A系统和恒浪在服务器一，B系统在服务器二，那么你就只需要修改B系统的inc/upiconfig link的值为2，并删除&lt;!--#include file=&quot;../../manage/conn/HL_DataLink.asp&quot;--&gt;,否则会出错. </span></td>
  </tr></table>
  </td>
</tr>
<tr>
  <td>&nbsp;</td>
</tr>
<tr>
  <td>&nbsp;</td>
</tr>
 

