📄 option.asp
字号:
<!--#include file = "public.asp"-->
<%
if session("admintype")<>"admin" then response.Redirect "index.asp"
SQL="Select * From foption"
Set rs=conn.Execute(SQL)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>功能选项</title>
<link rel="stylesheet" href="css.css" type="text/css">
<body>
<!--#include file = "admintop.asp"-->
<script type="text/javascript">
function checkform()
{
if(form.backrecord.value=='')
{
alert('后台每页记录数不能为空');
form.backrecord.focus();
return false;
}
if(form.record.value=='')
{
alert('前后台记录行数不能为空');
form.record.focus();
return false;
}
if(form.col.value=='')
{
alert('前台记录列数不能为空');
form.col.focus();
return false;
}
if(form.sortcol.value=='')
{
alert('类别显示列数不能为空');
form.sortcol.focus();
return false;
}
if(form.title.value=='')
{
alert('首页滚动文字不能为空');
form.title.focus();
return false;
}
}
</script>
<form action="Goption.asp" method="post" name="form" id="form" onsubmit="return checkform();">
<table width="64%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="" class="9point" >
<tr class="table003" bgcolor="#F4F9FD">
<td colspan="2">
<p align="center"><strong>功能选项</strong>
</td>
</tr>
<tr class="table001">
<td width="36%" align="center">
<div align="left"><strong>是否需要认证:<br>
</strong>选是的话添加的链接需要管理员进行后台认证才能在前台显示 </div>
</td>
<td width="64%" height="28" align="center">
<div align="left">
<input name="auto" type="radio" value="1" <% if rs("auto") then%>checked<%end if%>>
是
<input type="radio" name="auto" value="0" <% if not rs("auto") then%>checked<%end if%>>
否 </div>
</td>
</tr>
<tr class="table001">
<td ><strong>后台每页记录数:</strong></td>
<td height="28">
<input name="backrecord" type="text" class="input1" id="backrecord" value="<% =rs("backrecord")%>" size="10">
</td>
</tr>
<tr class="table001">
<td align="center">
<div align="left"><strong>前后台记录行数:</strong></div>
</td>
<td height="28" align="center">
<div align="left">
<input name="record" type="text" class="input1" id="record" value="<% =rs("record")%>" size="10" >
</div>
</td>
</tr>
<tr class="table001">
<td align="center">
<div align="left"><strong>前台记录列数:<br>
</strong>此项仅对显示模式为<font color="#999999">“简洁”时</font>有效 </div>
</td>
<td height="28" align="center">
<div align="left">
<input name="col" type="text" class="input1" id="col" value="<% =rs("col")%>" size="10">
</div>
</td>
</tr>
<tr class="table001">
<td align="center">
<div align="left"><strong>类别显示列数:<br>
</strong>页面上方显示的类别列数,单行5-7是最佳设置,可根据类别数目进行设置</div>
</td>
<td height="28" align="center">
<div align="left">
<input name="sortcol" type="text" class="input1" id="sortcol" value="<% =rs("sortcol")%>" size="10">
</div>
</td>
</tr>
<tr class="table001">
<td align="center">
<div align="left"><strong>首页显示模式:<br>
</strong>美化显示为标准显示,简洁显示一页可以显示更多链接<strong> <br>
</strong></div>
</td>
<td height="28" align="center">
<div align="left">
<input name="showmodal" type="radio" value="1" <% if rs("showmodal")=1 then%>checked<%end if%>>
美化
<input type="radio" name="showmodal" value="2" <% if rs("showmodal")=2 then%>checked<%end if%>>
简洁</div>
</td>
</tr>
<tr class="table001">
<td align="center">
<div align="left"><strong>首页滚动文字:<br>
</strong>不需要此功能时打入空格即可</div>
</td>
<td height="28" align="center">
<div align="left">
<input name="title" type="text" class="input1" id="title" value="<% =rs("title")%>" size="50" >
</div>
</td>
</tr>
<tr class="table001">
<td height="28" colspan="2" align="center">
<input name="Submit" type="submit" class="input2" id="Submit" value=" 确 定 " >
<input name="clear" type="reset" class="input2" id="Submit2" value=" 复 位 " >
</td>
</tr>
</table>
</form>
<!--#include file = "bottom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -