 <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="101"
	dir="../err.asp" 
  %>
  <!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
 <!--#include file="../rolecheck.asp"-->
 

<%
 
id=replace(request.QueryString("id"),"'","")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网站HTML模版信息设置</title>
<LINK href="../css/style.css" rel=stylesheet type=text/css>

</head>
<body>
<SCRIPT language=javascript>
<!--
function admin_Size(num,objname)
{
	var obj=document.getElementById(objname)
	if (parseInt(obj.rows)+num>=3) {
		obj.rows = parseInt(obj.rows) + num;	
	}
	if (num>0)
	{
		obj.width="90%";
	}
}
//--> 
</SCRIPT>
<%

 '********************替换后台编辑器中的标签安装路径函数*****  start   *****************

 '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 Function Websen_out(str,str1)
 
 result=ReplaceTest( "href=([\042\']{0,}(\s+)?)#HOPE_InstallDir#",str,"href=$1"&str1)
 result= ReplaceTest( "src=([\042\']{0,}(\s+)?)#HOPE_InstallDir#",result,"src=$1"&str1)
 result= ReplaceTest( "background=([\042\']{0,}(\s+)?)#HOPE_InstallDir#",result,"background=$1"&str1)
 result= ReplaceTest( "action=([\042\']{0,}(\s+)?)#HOPE_InstallDir#",result,"action=$1"&str1)

 Websen_out=result
 
 End Function
 
 '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 Function Websen_in(str,str1)

  result=ReplaceTest( "href=([\042\']{0,}(\s+)?)"&str1,str,"href=$1#HOPE_InstallDir#")
  result=ReplaceTest( "src=([\042\']{0,}(\s+)?)"&str1,result,"src=$1#HOPE_InstallDir#")
  result=ReplaceTest( "background=([\042\']{0,}(\s+)?)"&str1,result,"background=$1#HOPE_InstallDir#")
  result=ReplaceTest( "action=([\042\']{0,}(\s+)?)"&str1,result,"action=$1#HOPE_InstallDir#")

  Websen_in=result
  
 End Function
 
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'替换匹配函数
Function ReplaceTest(patrn,str,replStr) 

Dim regEx, str1 ' 建立变量。 
Set regEx = New RegExp ' 建立正则表达式。 
regEx.Pattern = patrn ' 设置模式。 
regEx.IgnoreCase = false ' 设置是否区分大小写。 
ReplaceTest = regEx.Replace(str, replStr) ' 作替换。 

End Function 


'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'匹配内容函数
 Function RegExpTest_url(patrn, strng)
 
   Dim regEx, Match, Matches   ' 建立变量。
   Set regEx = New RegExp   ' 建立正则表达式。
   regEx.Pattern = patrn   ' 设置模式。
   regEx.IgnoreCase = False   ' 设置是否区分字符大小写。
   regEx.Global = True   ' 设置全局可用性。
   Set Matches = regEx.Execute(strng)   ' 执行搜索。
   For Each Match in Matches   ' 遍历匹配集合。
   On Error Resume Next
   RetStr = RetStr & Match.Value&"|"
   Next
   RegExpTest_url = RetStr
   
 End Function

 '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 '^^^^^^^^^^^^^^^^^^^^^^^^^^^  查出  ^^^  start   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
'1.替换href=后的#HOPE_InstallDir#

 Function  Hope_htmlAll_href(str,str1)
    
    strInfo=RegExpTest_url("href=([\042\']{0,}(\s+)?)#HOPE_InstallDir#", str) '调用函数(RegExpTest)匹配出所有str变量中的标签
 
	If strInfo<>"" then
			arrInfo=Split(strInfo,"|")
			
			For i=0 To ubound(arrInfo)
			  str=Websen_out( str,str1)
       		Next
						 
		End If
		 		
		Hope_htmlAll_href=str
  End Function

'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

'2.替换src=后的#HOPE_InstallDir#

 Function  Hope_htmlAll_src(str,str1)
    
    strInfo=RegExpTest_url("src=([\042\']{0,}(\s+)?)#HOPE_InstallDir#", str) '调用函数(RegExpTest)匹配出所有str变量中的标签
 
	If strInfo<>"" then
			arrInfo=Split(strInfo,"|")
			
			For i=0 To ubound(arrInfo)
			  str=Websen_out( str,str1)
       		Next
						 
		End If
		 		
		Hope_htmlAll_src=str
  End Function


'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 '3.替换background=后的#HOPE_InstallDir#

 Function  Hope_htmlAll_bg(str,str1)
    
    strInfo=RegExpTest_url("background=([\042\']{0,}(\s+)?)#HOPE_InstallDir#", str) '调用函数(RegExpTest)匹配出所有str变量中的标签
 
	If strInfo<>"" then
			arrInfo=Split(strInfo,"|")
			
			For i=0 To ubound(arrInfo)
			  str=Websen_out( str,str1)
       		Next
						 
		End If
		 		
		Hope_htmlAll_bg=str
  End Function



'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


 '4.替换action=后的#HOPE_InstallDir#

 Function  Hope_htmlAll_ac(str,str1)
    
    strInfo=RegExpTest_url("action=([\042\']{0,}(\s+)?)#HOPE_InstallDir#", str) '调用函数(RegExpTest)匹配出所有str变量中的标签
 
	If strInfo<>"" then
			arrInfo=Split(strInfo,"|")
			
			For i=0 To ubound(arrInfo)
			  str=Websen_out( str,str1)
       		Next
						 
		End If
		 		
		Hope_htmlAll_ac=str
  End Function



'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

'对查出来的模板中的#HOPE_InstallDir#进行安装路径的替换 

Function Hope_htmlAll_url(str,str1)

result=Hope_htmlAll_href(str,str1)  '替换href=后的
result=Hope_htmlAll_src(result,str1) '替换src=后的
result=Hope_htmlAll_bg(result,str1)   '替换background=后的
result=Hope_htmlAll_ac(result,str1) '替换action=后的

Hope_htmlAll_url=result

End Function 


'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 '^^^^^^^^^^^^^^^^^^^^^^^^^^^  查出  ^^^  end   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
  '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 '^^^^^^^^^^^^^^^^^^^^^^^^^^^  存入  ^^^  start   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
'1.替换href=后的安装路径为#HOPE_InstallDir#

 Function  Hope_htmlAll_hrefi(str,str1)
    
    strInfo=RegExpTest_url("href=([\042\']{0,}(\s+)?)"&str1, str) '调用函数(RegExpTest)匹配出所有str变量中的标签
 
	If strInfo<>"" then
			arrInfo=Split(strInfo,"|")
			
			For i=0 To ubound(arrInfo)
			  str=Websen_in( str,str1)
       		Next
						 
		End If
		 		
		Hope_htmlAll_hrefi=str
  End Function

'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

'2.替换src=后的安装路径为#HOPE_InstallDir#

 Function  Hope_htmlAll_srci(str,str1)
    
    strInfo=RegExpTest_url("src=([\042\']{0,}(\s+)?)"&str1, str) '调用函数(RegExpTest)匹配出所有str变量中的标签
 
	If strInfo<>"" then
			arrInfo=Split(strInfo,"|")
			
			For i=0 To ubound(arrInfo)
			  str=Websen_in( str,str1)
       		Next
						 
		End If
		 		
		Hope_htmlAll_srci=str
  End Function


'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 '3.替换background=后的安装路径为#HOPE_InstallDir#

 Function  Hope_htmlAll_bgi(str,str1)
    
    strInfo=RegExpTest_url("background=([\042\']{0,}(\s+)?)"&str1, str) '调用函数(RegExpTest)匹配出所有str变量中的标签
 
	If strInfo<>"" then
			arrInfo=Split(strInfo,"|")
			
			For i=0 To ubound(arrInfo)
			  str=Websen_in( str,str1)
       		Next
						 
		End If
		 		
		Hope_htmlAll_bgi=str
  End Function



'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



 '4.替换action=后的安装路径为#HOPE_InstallDir#

 Function  Hope_htmlAll_aci(str,str1)
    
    strInfo=RegExpTest_url("action=([\042\']{0,}(\s+)?)"&str1, str) '调用函数(RegExpTest)匹配出所有str变量中的标签
 
	If strInfo<>"" then
			arrInfo=Split(strInfo,"|")
			
			For i=0 To ubound(arrInfo)
			  str=Websen_in( str,str1)
       		Next
						 
		End If
		 		
		Hope_htmlAll_aci=str
  End Function



'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

'对模板中的进行安装路径替换为#HOPE_InstallDir# 

Function Hope_htmlAll_urli(str,str1)

result=Hope_htmlAll_hrefi(str,str1)  '替换href=后的
result=Hope_htmlAll_srci(result,str1) '替换src=后的
result=Hope_htmlAll_bgi(result,str1)   '替换background=后的
result=Hope_htmlAll_aci(result,str1) '替换action=后的

Hope_htmlAll_urli=result

End Function 


'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 '^^^^^^^^^^^^^^^^^^^^^^^^^^^  存入  ^^^  end   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 

'********************替换后台编辑器中的标签安装路径函数*****  end   ******************



 
%>
<table border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder"> 
  <tr> 
    <th width="180%" class="tableHeaderText" height=25>网站HTML模板管理</th> 
  </tr> 
  <tr> 
    <td class="forumRowHighlight"><p><B>注意</B>：<BR> 
        ①在这里，您可以修改模板，可以编辑风格，操作时请按照相关页面提示完整填写表单信息。<BR> 
        ②执行删除时要慎重，任何的删除操作都是不可逆的。<br> </td> 
  </tr> 
</table>
<%

 


If request("action")="" Then
		HOPE_Type=HOPE_Str(Trim(Request("skinorder")))
		
sql="select home_index,tradeinfo_index,seller_index,brand_index,yx_tempname,corporation_index,job_index,productshow_index,vipinfo_index,expo_index,info_index,help_index,feedback_index from Websen_worldec_Temp where id="&id
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
home_index=rs("home_index")
tradeinfo_index=rs("tradeinfo_index")
seller_index=rs("seller_index")
brand_index=rs("brand_index")
corporation_index=rs("corporation_index")
productshow_index=rs("productshow_index")
vipinfo_index=rs("expo_index")
expo_index=rs("vipinfo_index")
info_index=rs("info_index")
help_index=rs("help_index")
feedback_index=rs("feedback_index")
job_index=rs("job_index")
yx_tempname=rs("yx_tempname")

 
%> 
<form name="Form" action="?action=saveedit&id=<%=id%>&skinorder=<%=HOPE_Type%>" method=post> 
  <table border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder"> 
    <tr> 
      <th class="tableHeaderText" colspan=2 height=25>网站各大版块首页模板管理&nbsp;&nbsp;&nbsp;&nbsp;<a href="ws_index.asp"><font color="#000000">模版管理首页</font></a></th> 
    </tr> 
    <tr>
      <td class="forumRowHighlight" height=30 align=left>模版名称：</td>
      <td width="85%" height=25 align=left class="forumRowHighlight"><label>
        <input name="yx_tempname" type="text" id="yx_tempname" value="<%=yx_tempname%>" size="50" maxlength="50">
      </label></td>
    </tr>
	<tr>
	  <td  class="forumRowHighlight">标签工具：</td><td class="forumRowHighlight"><a href="#" STYle="CURSOR: hand" onClick="javascript:window.open('../labelwrite.asp','','toolbar=no,directories=no,scrollbars=yes,resizable=1,status=no,menubar=no');"><img src="../../images/bi2.gif" width="36" title="标签辅助工具快捷键" height="32"    border="0" ></a></td>
	</tr>
<%
Select Case HOPE_Type
		Case "0"
 %>	
    <tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>网站首页模版：<br></td> 
      <td height=25 align=left class="forumRowHighlight"> <textarea name="home_index" id="home_index" cols="100" rows="20" ><%'Hope_htmlAll_url(rs("home_index"),HOPE_InstallDir)%><%=rs("home_index")%></textarea> 
  	 <!-- <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=home_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe> --> 	  </td> 
    </tr> 
<%Case "1"%>
    <tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>我要采购首页模版：<br>
      <a href="worldec_tradeinfo.asp?id=<%=id%>"><u>进入我要采购模板</u></a></td> 
      <td height=25 align=left class="forumRowHighlight"><textarea name="tradeinfo_index" id="tradeinfo_index" cols="100" rows="20" ><%'Hope_htmlAll_url(rs("tradeinfo_index"),HOPE_InstallDir)%><%=rs("tradeinfo_index")%></textarea>
	  
	<!--  <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=tradeinfo_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe>-->	  </td> 
    </tr> 
	
	
	
<%Case "2"%>
	
	<tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>我要销售首页模版：<br>
      <a href="worldec_seller.asp?id=<%=id%>"><u>进入我要销售模板</u></a></td> 
      <td height=25 align=left class="forumRowHighlight">
	  <textarea name="seller_index" id="seller_index" cols="100" rows="20"  ><%'Hope_htmlAll_url(rs("seller_index"),HOPE_InstallDir)%><%=rs("seller_index")%></textarea>
	  
<!--	  <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=seller_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe>
-->	  </td> 
    </tr> 
<%Case "11"%>
	
	<tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>品牌首页模版：<br>
      <a href="worldec_brand.asp?id=<%=id%>"><u>进入品牌模板</u></a></td> 
      <td height=25 align=left class="forumRowHighlight">
	  <textarea name="brand_index" id="brand_index" cols="100" rows="20"  ><%'Hope_htmlAll_url(rs("brand_index"),HOPE_InstallDir)%><%=rs("brand_index")%></textarea>
	  
<!--	  <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=brand_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe>
-->	  </td> 
    </tr> 
<%Case "3"%>
	<tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>公司库首页模版：<br>
      <a href="worldec_corporation.asp?id=<%=id%>"><u>进入公司库模板</u></a></td> 
      <td height=25 align=left class="forumRowHighlight">
	  <textarea name="corporation_index" id="corporation_index" cols="100" rows="20" ><%'Hope_htmlAll_url(rs("corporation_index"),HOPE_InstallDir)%><%=rs("corporation_index")%></textarea>
	  
	 <!--   <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=corporation_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe>
	  -->	  </td> 
    </tr> 
<%Case "4"%>
	<tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>产品库首页模版：<br>
      <a href="worldec_productshow.asp?id=<%=id%>"><u>进入产品库模板</u></a></td> 
      <td height=25 align=left class="forumRowHighlight"><textarea name="productshow_index" id="productshow_index" cols="100" rows="20"  ><%'Hope_htmlAll_url(rs("productshow_index"),HOPE_InstallDir)%><%=rs("productshow_index")%></textarea>
	  
	  <!-- <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=productshow_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe>
	  -->	  </td> 
    </tr>
<%Case "5"%>
	<tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>专项商机模版：<br>
      <a href="worldec_vipinfo.asp?id=<%=id%>"><u>进入专项商机模板</u></a></td> 
      <td height=25 align=left class="forumRowHighlight"><textarea name="vipinfo_index" id="vipinfo_index" cols="100" rows="20"   ><%'Hope_htmlAll_url(rs("vipinfo_index"),HOPE_InstallDir)%><%=rs("vipinfo_index")%></textarea>
	<!--  
	   <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=vipinfo_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe>
	  -->	  </td> 
    </tr> 
<%Case "6"%>
	<tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>展会首页模版：<br>
      <a href="worldec_expo.asp?id=<%=id%>"><u>进入展会模板</u></a></td> 
      <td height=25 align=left class="forumRowHighlight"><textarea name="expo_index" id="expo_index" cols="100" rows="20"><%'Hope_htmlAll_url(rs("expo_index"),HOPE_InstallDir)%><%=rs("expo_index")%></textarea>
	  
	  
 <!--     <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=expo_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe>   -->     </td> 
    </tr> 
<%Case "7"%>
	<tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>行业资讯首页模版：<br>
      <a href="worldec_info.asp?id=<%=id%>"><u>进入行业资讯模板</u></a></td> 
      <td height=25 align=left class="forumRowHighlight"><textarea name="info_index" id="info_index" cols="100" rows="20" ><%'Hope_htmlAll_url(rs("info_index"),HOPE_InstallDir)%><%=rs("info_index")%></textarea>
	  
	 <!--  
      <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=info_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe>   -->     </td> 
    </tr> 
<%Case "8"%>
<tr> 
      <td class="forumRowHighlight" width=15% height=40 align=left>帮助信息首页模版：<br>
      <a href="worldec_help.asp?id=<%=id%>"><u>进入帮助信息模板</u></a></td> 
      <td height=25 align=left class="forumRowHighlight">
	  <textarea name="help_index" id="help_index" cols="100" rows="20" ><%'Hope_htmlAll_url(rs("help_index"),HOPE_InstallDir)%><%=rs("help_index")%></textarea>
	  
	  
   <!--   <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=help_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe> -->       </td> 
    </tr>
<%Case "9"%>	
<tr>
  <td class="forumRowHighlight" height=40 align=left>人才首页模版：</td>
  <td height=25 align=left class="forumRowHighlight">
  <textarea name="job_index" id="job_index" cols="100" rows="20" ><%'Hope_htmlAll_url(rs("job_index"),HOPE_InstallDir)%><%=rs("job_index")%></textarea>
  
  <!-- <iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=job_index&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="700" HEIGHT="450"></iframe>  -->  </td>
  </tr>
<%Case "10"%>     
   
   <%
   	Case Else
		Response.redirect "../err.asp"

   End Select%>	
    <tr> 
      <td height="25" colspan="2" align="center" class="forumRowHighlight"><input type="submit" name="B1" value="确定修改设置"></td> 
    </tr> 
  </table> 
</form> 
<%
rs.close
set rs=nothing
end if
If request("action")="saveedit" Then

HOPE_Type=HOPE_Str(Trim(Request("skinorder")))
'-------------------------------------------------------------------------------------
'home_index=Hope_htmlAll_urli(Request.Form("home_index"),HOPE_InstallDir)
'tradeinfo_index=Hope_htmlAll_urli(Request.Form("tradeinfo_index"),HOPE_InstallDir)
'seller_index=Hope_htmlAll_urli(Request.Form("seller_index"),HOPE_InstallDir)
'corporation_index=Hope_htmlAll_urli(Request.Form("corporation_index"),HOPE_InstallDir)
'productshow_index=Hope_htmlAll_urli(Request.Form("productshow_index"),HOPE_InstallDir)
'vipinfo_index=Hope_htmlAll_urli(Request.Form("vipinfo_index"),HOPE_InstallDir)
'expo_index=Hope_htmlAll_urli(Request.Form("expo_index"),HOPE_InstallDir)
'info_index=Hope_htmlAll_urli(Request.Form("info_index"),HOPE_InstallDir)
'help_index=Hope_htmlAll_urli(Request.Form("help_index"),HOPE_InstallDir)
'feedback_index=Hope_htmlAll_urli(Request.Form("feedback_index"),HOPE_InstallDir)
'job_index=Hope_htmlAll_urli(Request.Form("job_index"),HOPE_InstallDir)
'yx_tempname=Hope_htmlAll_urli(Request.Form("yx_tempname"),HOPE_InstallDir)
'-------------------------------------------------------------------------------------
home_index=Request.Form("home_index")
tradeinfo_index=Request.Form("tradeinfo_index")
seller_index=Request.Form("seller_index")
corporation_index=Request.Form("corporation_index")
productshow_index=Request.Form("productshow_index")
vipinfo_index=Request.Form("vipinfo_index")
expo_index=Request.Form("expo_index")
info_index=Request.Form("info_index")
help_index=Request.Form("help_index")
feedback_index=Request.Form("feedback_index")
job_index=Request.Form("job_index")
yx_tempname=Request.Form("yx_tempname")
brand_index=Request.Form("brand_index")
sql="select home_index,tradeinfo_index,yx_tempname,seller_index,job_index,corporation_index,productshow_index,vipinfo_index,expo_index,info_index,help_index,feedback_index,brand_index from Websen_worldec_Temp where id="&id
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,3

Select Case HOPE_Type
		Case "0"
rs("home_index")=home_index
		Case "1"
rs("tradeinfo_index")=tradeinfo_index
		Case "2"
rs("seller_index")=seller_index
		Case "3"
rs("corporation_index")=corporation_index
		Case "4"
rs("productshow_index")=productshow_index
		Case "5"
rs("vipinfo_index")=vipinfo_index
		Case "6"
rs("expo_index")=expo_index
		Case "7"
rs("info_index")=info_index
		Case "8"
rs("help_index")=replace(help_index,"’","'")
		Case "9"
 rs("job_index")=job_index
		Case "10"
rs("feedback_index")=feedback_index
        case "11"
rs("brand_index")=brand_index
		Case Else
			Response.redirect "../err.asp"
	End select 

rs("yx_tempname")=yx_tempname

rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing

response.write"<br><table cellpadding=2 cellspacing=1 border=0 width=400 class=tableBorder align=center>"
response.write"<TR>"
response.write"<TH class=tableHeaderText colSpan=2 height=25>保存网站模板信息</TH>"
response.write"<TR><tr><td height=85 valign=top class=forumRow><div align=center><br><br>网站总模板保存成功！</div></td></tr>"
response.write"<tr align=center><td height=30 class=forumRowHighlight><a href='Template_index.asp?id="&id&"&skinorder="&HOPE_Type&"'>&lt;&lt; 返回上一页</a></td>"
response.write"</tr>"
response.write"</table>"
response.write"<br><br>"

end if
%>
 
</body>
</html>
<!--#include file="../copy.asp"-->