lianxi.asp
来自「实现一个用JSP、Servlet技术实现的小型物流网站系统。实现功能如下:管理员」· ASP 代码 · 共 185 行
ASP
185 行
<%@ codepage ="936" %>
<%
if session("globalecmaster")="" or session("masterflag")="" then
response.write "<script language='javascript'>"
response.write"parent.location.href='../login.asp';</SCRIPT>"
response.end
end if
'权限限制^^^^^^^^^^^^^^^^^^^^
dim ishavegant
ishavegant=false
in_str=split(session("masterflag"),",")
for each ins in in_str
if trim(ins)="101" then
ishavegant=true
end if
next
if ishavegant=false then
response.redirect "../err.asp"
response.end
end if
'^^^
%>
<% data_path="../../" 'ACC连接数据库路径,对SQL无效 %>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%if Request.QueryString("no")="eshop" then
set rs=server.createobject("adodb.recordset")
sql="select * from [yixiang_main]"
rs.open sql,conn,3,3
if not rs.eof then
For i = 1 To Request.Form("content1").Count
about = sContent & Request.Form("content1")(i)
About=replace(About,"'","'")
Next
rs("lianxi")=About
about=rs("lianxi")
rs.update
rs.close
end if
filename=request.ServerVariables("PATH_INFO")
response.redirect filename
end if
sql="select * from yixiang_main"
Set rs_home= Server.CreateObject("ADODB.Recordset")
rs_home.open sql,conn,1,1
if not rs_home.eof then
about=rs_home("lianxi")
else
about="暂无信息"
end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language = "JavaScript">
function CheckForm()
{
if (document.myform.Content.value=="")
{
alert("肉容不能为空!");
editor.HtmlEdit.focus();
return false;
}
}
</script>
<style type="text/css">
<!--
a {
font-size: 12px;
color: #003366;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #003366;
}
a:hover {
text-decoration: underline;
color: #FF6600;
}
a:active {
text-decoration: none;
}body,td,th {
font-size: 12px;
}
-->
</style><LINK href="../css/style.css" rel=stylesheet type=text/css>
<style type="text/css">
<!--
.STYLE1 {
color: #000000;
font-weight: bold;
}
-->
</style>
<table cellpadding="2" cellspacing="1" border="0" width="98%" class="tableBorder" align=center>
<tr align="center">
<th height=25 align="center"><span class="tableHeaderText"><strong>网站底部信息管理</strong></span> </tr>
</table><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td align="center">
<table width="98%" height="22" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#A2BBDD" bgcolor="#999999">
<tr>
<td width="90" height="25" align="center" bgcolor="#A2BBDD"><font color="red">→</font><font color="#FFFFFF"><b>生成静态页面</b></font></td>
<td width="90" align="center" bgcolor="#FFFFFF"><a href="html_page.asp?act=about" target=_blank>关于我们</a></td>
<td width="72" align="center" bgcolor="#FFFFFF"><a href="html_page.asp?act=shenming" target=_blank>法律声明</a></td>
<td width="81" align="center" bgcolor="#FFFFFF"><a href="html_page.asp?act=link" target=_blank>友情连接</a></td>
<td width="81" align="center" bgcolor="#FFFFFF"><a href="html_page.asp?act=contact" target=_blank>联系我们</a></td>
<td width="81" align="center" bgcolor="#FFFFFF"><a href="html_page.asp?act=map" target=_blank>地图概要</a></td>
<td width="81" align="center" bgcolor="#FFFFFF"><a href="html_page.asp?act=hezuo" target=_blank>合作代理</a></td>
<td width="81" align="center" bgcolor="#FFFFFF"><a href="html_page.asp?act=kefu" target=_blank>客服中心</a></td>
<td width="84" align="center" bgcolor="#FFFFFF"><a href="html_page.asp?act=job" target=_blank>诚聘英才</a></td>
</tr>
</table>
<table width="98%" height="22" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#CBD6E7" bgcolor="#999999">
<tr>
<td height="25" align="center" bgcolor="#CBD6E7"><span class="STYLE1">修改栏目相关内容页面</span></td>
<td align="center" bgcolor="#FFFFFF"><a href="aboutus.asp">关于我们</a></td>
<td align="center" bgcolor="#FFFFFF"><a href="sm.asp">法律声明</a></td>
<td align="center" bgcolor="#FFFFFF"><a href="lianxi.asp">联系我们</a></td>
<td align="center" bgcolor="#FFFFFF"><a href="map.asp">地图概要</a></td>
<td align="center" bgcolor="#FFFFFF"><a href="hezuo.asp">合作代理</a></td>
<td align="center" bgcolor="#FFFFFF"><a href="kefu.asp">客服中心</a></td>
<td align="center" bgcolor="#FFFFFF"><a href="job.asp">诚聘英才</a></td>
</tr>
</table>
<br />
使用的静态页面模版页是:<a href="../../about/index_temp.html" target="_blank"><strong>about/index_temp.html</strong></a> <a href="editmoban.asp" ><font color="red">编辑模板</font></a><br />
(栏目名称:#HOPE_Aboutname#、栏目内容:#HOPE_Aboutus# )<strong><br>
</strong>
<table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25">
<div align="center"><strong>联系我们</strong></div></td>
</tr>
<tr>
<form method="POST" action="?no=eshop" name=myform>
<td><table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td height="10" colspan="2"> </td>
</tr>
<tr>
<td width="100%" height="252" align="center" valign="top" bgcolor="#FFFFFF"><TABLE width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
<TR>
<TD>
<INPUT type="hidden" name="content1" value='<%=about%>'>
<iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=content1&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="617" HEIGHT="450"></iframe>
</TD>
</TR>
<TR align="center">
<TD colspan=2>
<INPUT type=submit name=b1 value="提交" onClick="content1.value=eWebEditor1.getHTML()">
<INPUT type=reset name=b2 value="重填">
</TD>
</TR>
</TABLE>
</td>
</tr>
</table></td></form>
</tr>
</table>
<strong> </strong></td>
</tr>
</table>
<% rs_home.close
set rs_home = nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?