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

 
<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%";
	}
}
//模板ID链接
function HOPE_TemplateLink(targ,selObj,restore){
		
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function DelConfrim(){
	if (confirm("你是否真的要删除此模板?")){
		return true;

	}
	else{
		return false;
	
	}
	


}



//--> 
</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> 
        ①<span style="color:red">建议你修改时使用下拉列表式对模板进行单独操作</span><br>
        ②在这里，您可以修改模板，可以编辑风格，操作时请按照相关页面提示完整填写表单信息。<BR> 
        ③执行删除时要慎重，任何的删除操作都是不可逆的。<br> </td> 
  </tr> 
</table>
<%
sql="select id,yx_tempname,yx_selected from Websen_worldec_Temp "
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
%> 
<form name="Form" action="?action=saveedit" method=post>
  <table border="0" cellspacing="1" cellpadding="5" align=center class="tableBorder">
    <tr>
      <th class="tableHeaderText" colspan=4 height=25>网站各大版块模板管理</th>
    </tr>
    <tr>
      <td width=25% height="25" align=center class="forumRowHighlight">ID<br></td>
      <td height="25" align=center class="forumRowHighlight">名称</td>
      <td width="19%" height="25" align="center" class="forumRowHighlight">选择</td>
      <td width="34%" height="25" align="center" class="forumRowHighlight">操作</td>
    </tr>
	<%Do while not rs.eof%>
    <tr>
      <td class="forumRowHighlight" width=25% align=center><%=rs("id")%></td>
      <td class="forumRowHighlight" width=22% align=center><%=rs("yx_tempname")%></td>
      <td align="center" class="forumRowHighlight"><label>
        <input type="radio" name="sele" value="<%=rs("id")%>" <%if rs("yx_selected")=1 then Response.write "checked"%>>
      </label></td>
      <td align="left" class="forumRowHighlight"><select name="select" onChange="HOPE_TemplateLink('self',this,0)">
	  <option>请选择需要修改的模板</option>
	  	<!--<option value="Template_index.asp?skinorder=11&id=<%=rs("id")%>">会员登录模版</option>-->
        <option value="Template_index.asp?skinorder=0&id=<%=rs("id")%>">网站首页模版</option>
        <option value="Template_index.asp?skinorder=1&id=<%=rs("id")%>">我要采购首页模版</option>
		<!------------------------------------二级分类Begin---------------------------------------------->
        <option value="worldec_tradeinfo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=1">&nbsp;|－供应一级分类模版</option>
        <option value="worldec_tradeinfo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=2">&nbsp;|－供应二级分类模版</option>
        <option value="worldec_tradeinfo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=3">&nbsp;|－供应三级分类模版</option>
        <option value="worldec_tradeinfo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=4">&nbsp;|－供应详细信息模版</option>
		<!------------------------------------二级分类End---------------------------------------------->
		
        <option value="Template_index.asp?skinorder=2&id=<%=rs("id")%>">我要销售首页模版</option>
					<!------------------------------------二级分类Begin---------------------------------------------->
					<option value="worldec_seller.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=1">&nbsp;|－销售一级分类模版</option>
					<option value="worldec_seller.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=2">&nbsp;|－销售二级分类模版</option>
					<option value="worldec_seller.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=3">&nbsp;|－销售三级分类模版</option>
					<option value="worldec_seller.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=4">&nbsp;|－销售详细信息模版</option>
					<!------------------------------------二级分类End---------------------------------------------->

        <option value="Template_index.asp?skinorder=11&id=<%=rs("id")%>">品牌首页模版</option>
					<!------------------------------------二级分类Begin---------------------------------------------->
					<option value="worldec_brand.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=1">&nbsp;|－品牌一级分类模版</option>
					<option value="worldec_brand.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=2">&nbsp;|－品牌二级分类模版</option>
					<option value="worldec_brand.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=3">&nbsp;|－品牌三级分类模版</option>
					<option value="worldec_brand.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=4">&nbsp;|－品牌详细信息模版</option>
					<!------------------------------------二级分类End---------------------------------------------->




        <option value="Template_index.asp?skinorder=3&id=<%=rs("id")%>">公司库首页模版</option>
					<!------------------------------------二级分类Begin---------------------------------------------->
					<option value="worldec_corporation.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=1">&nbsp;|－公司库一级分类模版</option>
					<option value="worldec_corporation.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=2">&nbsp;|－公司库二级分类模版</option>
					<option value="worldec_corporation.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=3">&nbsp;|－公司库三级分类模版</option>
					<option value="worldec_corporation.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=4">&nbsp;|－公司库详细信息模版</option>
					<!------------------------------------二级分类End---------------------------------------------->
		
        <option value="Template_index.asp?skinorder=4&id=<%=rs("id")%>">产品库首页模版</option>
					<!------------------------------------二级分类Begin---------------------------------------------->
					<option value="worldec_productshow.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=1">&nbsp;|－产品一级分类模版</option>
					<option value="worldec_productshow.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=2">&nbsp;|－产品二级分类模版</option>
					<option value="worldec_productshow.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=3">&nbsp;|－产品三级分类模版</option>
					<option value="worldec_productshow.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=4">&nbsp;|－产品详细信息模版</option>
										                        <!------------------------------------二级分类End----------------------------------------------> 
																
	   <option value="Template_index.asp?skinorder=5&id=<%=rs("id")%>">专项商机首页模版</option>
        
					<!------------------------------------二级分类Begin---------------------------------------------->
					<option value="worldec_vipinfo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=1">&nbsp;|－专项商机一级分类模版</option>
					<option value="worldec_vipinfo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=2">&nbsp;|－专项商机详细信息模版</option>
					<!------------------------------------二级分类End---------------------------------------------->
        <option value="Template_index.asp?skinorder=6&id=<%=rs("id")%>">展会首页模版</option>
					<!------------------------------------二级分类Begin---------------------------------------------->
					<option value="worldec_expo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=1">&nbsp;|－国内及国际展会模版</option>
					<option value="worldec_expo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=2">&nbsp;|－展会详细内容模版</option>
					<option value="worldec_expo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=3">&nbsp;|－展会资讯模版</option>
					<option value="worldec_expo.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=4">&nbsp;|－展会资讯详细内容模版</option>
					<!------------------------------------二级分类End---------------------------------------------->
		
        <option value="Template_index.asp?skinorder=7&id=<%=rs("id")%>">行业资讯首页模版</option>
					<!------------------------------------二级分类Begin---------------------------------------------->
					<option value="worldec_info.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=1">&nbsp;|－行业资讯分类模版</option>
					<option value="worldec_info.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=2">&nbsp;|－行业资讯详细信息模版</option>
					<!------------------------------------二级分类End---------------------------------------------->
        <option value="Template_index.asp?skinorder=8&id=<%=rs("id")%>">帮助信息首页模版</option>
					<!------------------------------------二级分类Begin---------------------------------------------->
					<option value="worldec_help.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=1">&nbsp;|－帮助信息分类模版</option>
					<option value="worldec_help.asp?skinorder=0&id=<%=rs("id")%>&HOPE_Type=2">&nbsp;|－帮助信息详细信息模版</option>
					<!------------------------------------二级分类End---------------------------------------------->
        <option value="Template_index.asp?skinorder=9&id=<%=rs("id")%>">人才首页模版</option>
		
        </select>&nbsp;&nbsp;&nbsp;&nbsp;<a href="worldec_index.asp?id=<%=rs("id")%>">修改全部</a></td>
    </tr>
	<%
	rs.movenext
	Loop
	%>
    <tr>
      <td height=25 colspan="4" align=right class="forumRowHighlight"><label>
        <input type="button" name="Submit" value="增加模版" onClick="javascript:location.href='ws_temp_add.asp'">
        <input type="submit" name="aaa" value="设为默认模版">
      </label>
        <label>
        <input type="submit" name="aaa" value="删除" onClick="return DelConfrim()">
      </label>
      <label></label></td>
    </tr>
  </table>
</form> 
<%
If request("action")="saveedit" Then
	sele=request("sele")
	aaa=request("aaa")
	if aaa="设为默认模版" then
	response.write sele
	if request("sele")<>"" then
	conn.execute("update [Websen_worldec_Temp] set yx_selected=1 Where id="&sele)
	conn.execute("update [Websen_worldec_Temp] set yx_selected=0 Where id<>"&sele)
	Response.redirect "ws_index.asp"
	end if
	elseif aaa="删除" then
	if request("sele")<>"" then
	conn.execute("delete from [Websen_worldec_Temp] Where id="&sele)
	Response.redirect "ws_index.asp"
	end if
	end if
End if
%> 
</body>
</html>
<!--#include file="../copy.asp"-->