📄 worldec_index.asp
字号:
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
if Request.Cookies("globalec")("globalecmaster")="" or Request.Cookies("globalec")("masterflag")="" then
response.write "<script language='javascript'>"
response.write"this.location.href='../login.asp';</SCRIPT>"
response.end
end if
if instr(Request.Cookies("globalec")("masterflag"),"121")=0 then
response.redirect "../err.asp"
response.end
end if
%>
<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,corporation_index,productshow_index,vipinfo_index,expo_index,info_index,help_index,feedback_index from worldec_Temp where id=1"
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")
%>
<form name="Form" action="?action=saveedit" 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" width=33% height=40 align=left>网站首页模版:<br></td>
<td class="forumRowHighlight" width=64% 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=33% height=40 align=left>采购首页模版:<br>
<a href="worldec_tradeinfo.asp"><U>进入采购模板</u></a></td>
<td class="forumRowHighlight" width=64% 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=33% height=40 align=left>销售首页模版:<br>
<a href="worldec_seller.asp"><u>进入销售模板</u></a></td>
<td class="forumRowHighlight" width=64% 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=33% height=40 align=left>公司库首页模版:<br>
<a href="worldec_corporation.asp"><u>进入公司库模板</u></a></td>
<td class="forumRowHighlight" width=64% 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=33% height=40 align=left>产品库首页模版:<br>
<a href="worldec_productshow.asp"><u>进入产品库模板</u></a></td>
<td class="forumRowHighlight" width=64% 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=33% height=40 align=left>专项商机模版:<br>
<a href="worldec_vipinfo.asp"><u>进入专项商机模板</u></a></td>
<td class="forumRowHighlight" width=64% 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=33% height=40 align=left>展会首页模版:<br>
<a href="worldec_expo.asp"><u>进入展会模板</u></a></td>
<td class="forumRowHighlight" width=64% 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=33% height=40 align=left>以商会友首页模版:<br>
<a href="worldec_info.asp"><u>进入以商会友模板</u></a></td>
<td class="forumRowHighlight" width=64% 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=33% height=40 align=left>帮助信息首页模版:<br>
<a href="worldec_help.asp"><u>进入帮助信息模板</u></a></td>
<td class="forumRowHighlight" width=64% 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" width=33% height=40 align=left>会员意见反馈模版:</td>
<td class="forumRowHighlight" width=64% 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=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")
sql="select home_index,tradeinfo_index,seller_index,corporation_index,productshow_index,vipinfo_index,expo_index,info_index,help_index,feedback_index from worldec_Temp where id=1"
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.update
rs.close
set rs=noting
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'><< 返回上一页</a></td>"
response.write"</tr>"
response.write"</table>"
response.write"<br><br>"
end if
%>
</body>
</html>
<!--#include file="../copy.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -