📄 admin_config.asp
字号:
<!--#include file="conn.asp"-->
<%if session(hxCacheName&"_admin")<>"OK" then
response.redirect("admin_login.asp")
end if
if request.cookies(hxCacheName&"_rank")("rank")>1 then
response.write "<script language='javascript'>"
response.write "alert('您的级别不够!');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
end if%>
<%
'-------------------------------------
'功能:管理员管理网站首页
'天天智能友情链接管理系统
'天天DV网制作 http://www.ttdv.cn
'博大网址库http://www.ip126.com
'海纳数据广西http://www.idcgx.net
'可自由传播和免费使用,但必须保留此完整版权信息
'本程序撷取了ITlearner、博大网址库等优秀程序中的源代码,对他们的作者表示感谢
'-------------------------------------
%>
<link href="../style.css" rel="stylesheet" type="text/css">
<BODY background="../images/back.gif">
<script language=javascript src=../images/mouse_on_title.js></script>
<script LANGUAGE=JavaScript>
function textLimitCheck(thisArea, maxLength){
if (thisArea.value.length > maxLength){
alert(maxLength + ' 个字限制. \r超出的将自动去除.');
thisArea.value = thisArea.value.substring(0, maxLength);
thisArea.focus();
}
/*回写span的值,当前填写文字的数量*/
messageCount.innerText = thisArea.value.length;
}
</script>
<style type="text/css">
<!--
body {
background-color: #dadae9;
}
.style1 {
color: #FFFFFF;
font-weight: bold;
}
.style2 {color: #FF0000}
-->
</style>
<%
if request("action")="config" then
call config
else
call showaddform
end if
sub showaddform
dim rs,sql,id,action,blnerror
id=request("id")
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [tt_config]"
rs.open sql,conn,1,3
%>
<script language="javascript">
<!--
function form1_onsubmit() {
if (document.form1.WebName.value=="")
{
alert("请填网站名称!")
document.form1.WebName.focus()
return false
}
if (document.form1.Weburl.value=="")
{
alert("请填网址!")
document.form1.Weburl.focus()
return false
}
if (document.form1.WebLogo.value=="")
{
alert("请填网站LOGO地址!")
document.form1.WebLogo.focus()
return false
}
if (document.form1.WebAlt.value=="")
{
alert("请填网站说明!")
document.form1.WebAlt.focus()
return false
}
if (document.form1.ChannelName.value=="")
{
alert("请填网站频道名称!")
document.form1.ChannelName.focus()
return false
}
if (document.form1.webemail.value=="")
{
alert("请填网站电子信箱!")
document.form1.webemail.focus()
return false
}
if (document.form1.hxCacheName.value=="")
{
alert("请填网站缓存名称!")
document.form1.hxCacheName.focus()
return false
}
}
// --></script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse">
<tr>
<td align="center">
<form name="form1" method="POST" action="admin_config.asp?ok=1&id=<%=request("id")%>&action=config"" language="javascript" onSubmit="return form1_onsubmit()">
<table border="1" cellspacing="0" cellpadding="0" width="100%" style="border-collapse: collapse" bordercolor="#ADAED6" height="799">
<tr>
<td width="688" height="28" >
<p class="main_title<%=skin%>"><font size="2"> 网站基本参数</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" align="center" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium" width="686" height="735">
<table width="100%" border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="26%" style="border-bottom-style: none; border-bottom-width: medium; border-top-style:solid; border-top-width:1" height="27" bgcolor="#FFFFFF">
<p style="margin-left: 20">设定网站名称:</td>
<td width="84%" style="border-bottom-style: none; border-bottom-width: medium; border-top-style:solid; border-top-width:1" height="27" bgcolor="#FFFFFF">
<p style="margin-left: 20">
<input type="text" name="WebName" value="<%=rs("WebName")%>" size="40">
</td>
</tr>
<tr>
<td width="26%" style="border-bottom-style: none; border-bottom-width: medium; border-top-style:none; border-top-width:medium" height="27" bgcolor="#FFFFFF">
<p style="margin-left: 20">网站访问地址:</td>
<td width="84%" style="border-bottom-style: none; border-bottom-width: medium; border-top-style:none; border-top-width:medium" height="27" bgcolor="#FFFFFF">
<p style="margin-left: 20">
<input type="text" name="Weburl" value="<%=rs("Weburl")%>" size="40"> <img src=../images/memo.gif alt="前面要带“http://”,后面要带“/”">
</td>
</tr>
<tr>
<td width="26%" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="33" bgcolor="#FFFFFF">
<p style="margin-left: 20">网站WebLogo:</td>
<td width="84%" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="33" bgcolor="#FFFFFF">
<p style="margin-left: 20">
<input type="text" name="WebLogo" value="<%=rs("WebLogo")%>" size="40">
</td>
</tr>
<tr>
<td width="26%" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="33" bgcolor="#FFFFFF">
<p style="margin-left: 20">网站说明:</td>
<td width="84%" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="33" bgcolor="#FFFFFF">
<p style="margin-left: 20">
<input type="text" name="WebAlt" value="<%=rs("WebAlt")%>" size="40" onkeyUp="textLimitCheck(this, 50);"> <br>限 50 个字符 已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字 <img src=../images/memo.gif alt="用于超链接alt显示,不宜太多">
</td>
</tr>
<tr>
<td width="26%" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="33" bgcolor="#FFFFFF">
<p style="margin-left: 20">网站频道名称:</td>
<td width="84%" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="33" bgcolor="#FFFFFF">
<p style="margin-left: 20">
<input type="text" name="ChannelName" value="<%=rs("ChannelName")%>" size="30">
</td>
</tr>
<tr>
<td width="26%" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="33" bgcolor="#FFFFFF">
<p style="margin-left: 20">网站电子信箱:</td>
<td style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="28" bgcolor="#FFFFFF"><p style="margin-left: 20"><input type="text" name="webemail" value="<%=rs("webemail")%>" size="30">
</td>
</tr>
<tr>
<td width="26%" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="33" bgcolor="#FFFFFF">
<p style="margin-left: 20">是否使用邮件功能:</td>
<td style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="28" bgcolor="#FFFFFF"><p style="margin-left: 20"> <%if rs("emailkg")=1 then%>
<input type="radio" name="emailkg" value="1" id="emailkg" checked>
使用
<input type="radio" name="emailkg" value="0" id="emailkg">
不使用 <img src=../images/memo.gif alt="用户注册、系统管理等要用到自动邮件通知功能,建议使用"></td>
<%else%>
<input type="radio" name="emailkg" value="1" id="emailkg">
使用
<input type="radio" name="emailkg" value="0" id="emailkg" checked>
不使用 <img src=../images/memo.gif alt="用户注册、系统管理等要用到自动邮件通知功能,建议使用"><%end if%>
</td>
</tr>
<tr>
<td width="26%" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="33" bgcolor="#FFFFFF">
<p style="margin-left: 20">邮件服务器SMTP地址:</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -