 <% 
	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>
<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
sql="select home_index,tradeinfo_index,seller_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")
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%>" method=post>
  <table border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder">
    <tr>
      <th class="tableHeaderText" colspan=3 height=25>网站各大版块首页模板管理</th>
    </tr>
    <tr>
      <td class="forumRowHighlight" height=30 align=left>模版名称：</td>
      <td class="forumRowHighlight" height=25 align=left><label>
        <input name="yx_tempname"  onBlur="this.value=this.value.replace(/\s/igm,'')" type="text" id="yx_tempname" value="<%=yx_tempname%>" size="50" maxlength="50">
      </label></td>
      <td class="forumRowHighlight">&nbsp;</td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>网站首页模版：<br></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="home_index" id="home_index" cols="100" rows="5"><%=rs("home_index")%></textarea>
      </td>
      <td width="3%" class="forumRowHighlight"><a href="javascript:admin_Size(-5,'home_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'home_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>我要采购首页模版：<br>
        <a href="worldec_tradeinfo.asp?id=<%=id%>&HOPE_Type=other"><u>进入我要采购模板</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="tradeinfo_index" id="tradeinfo_index" cols="100" rows="5"><%=rs("tradeinfo_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'tradeinfo_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'tradeinfo_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>我要销售首页模版：<br>
        <a href="worldec_seller.asp?id=<%=id%>&HOPE_Type=other"><u>进入我要销售模板</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="seller_index" id="seller_index" cols="100" rows="5"><%=rs("seller_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'seller_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'seller_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>公司库首页模版：<br>
        <a href="worldec_corporation.asp?id=<%=id%>&HOPE_Type=other"><u>进入公司库模板</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="corporation_index" id="corporation_index" cols="100" rows="5"><%=rs("corporation_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'corporation_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'corporation_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>产品库首页模版：<br>
        <a href="worldec_productshow.asp?id=<%=id%>&HOPE_Type=other"><u>进入产品库模板</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="productshow_index" id="productshow_index" cols="100" rows="5"><%=rs("productshow_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'productshow_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'productshow_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>进入专项商机首页模板：<br>
          <a href="../webtemp/Template_index.asp?skinorder=5&id=5"><u> 进入专项商机库模板</u></a> <br>
          <br>
      </td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="vipinfo_index" id="vipinfo_index" cols="100" rows="5"><%=rs("vipinfo_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'vipinfo_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'vipinfo_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>展会首页模版：<br>
        <a href="worldec_expo.asp?id=<%=id%>&HOPE_Type=other"><u>进入展会模板</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="expo_index" id="expo_index" cols="100" rows="5"><%=rs("expo_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'expo_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'expo_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>行业资讯首页模版：<br>
        <a href="worldec_info.asp?id=<%=id%>&HOPE_Type=other"><u>进入行业资讯模板</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="info_index" id="info_index" cols="100" rows="5"><%=rs("info_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'info_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'info_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>帮助信息首页模版：<br>
        <a href="worldec_help.asp?id=<%=id%>&HOPE_Type=other"><u>进入帮助信息模板</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="help_index" id="help_index" cols="100" rows="5"><%=rs("help_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'help_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'help_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" height=40 align=left>人才首页模版：</td>
      <td class="forumRowHighlight" height=25 align=left><textarea name="job_index" id="job_index" cols="100" rows="5"><%=rs("job_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'job_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'job_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>会员意见反馈模版：</td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="feedback_index" id="feedback_index" cols="100" rows="5"><%=rs("feedback_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'feedback_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'feedback_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td height="25" colspan="3" 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
home_index=replace(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=replace(Request.Form("help_index"),"’","'")
feedback_index=Request.Form("feedback_index")
job_index=Request.Form("job_index")
yx_tempname=Request.Form("yx_tempname")

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 from websen_worldec_Temp where id="&id
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,3

rs("home_index")=home_index
rs("tradeinfo_index")=tradeinfo_index
rs("seller_index")=seller_index
rs("corporation_index")=corporation_index
rs("productshow_index")=productshow_index
rs("vipinfo_index")=vipinfo_index
rs("expo_index")=expo_index
rs("info_index")=info_index
rs("help_index")=help_index
rs("feedback_index")=feedback_index
rs("job_index")=job_index
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='worldec_index.asp?id="&id&"'>&lt;&lt; 返回上一页</a></td>"
response.write"</tr>"
response.write"</table>"
response.write"<br><br>"
end if
%>
 
</body>
</html>
<!--#include file="../copy.asp"-->