📄 config.asp
字号:
<%
if session("admin")="" then
response.redirect "admin.asp"
else
if session("flag")>1 then
response.write "<br><p align=center>您没有操作的权限</p>"
response.end
end if
end if
%>
<!-- #include file="conn.asp" -->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from config where id=22"
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title></title>
<link rel="stylesheet" type="text/css" href="inc/admin.css">
</head>
<body>
<form method="POST" name="myform" action='configsave.asp'>
<table align="center" width="450" align="center" border="1" cellspacing="0" cellpadding="4" class=lanyubk style="border-collapse: collapse">
<tr>
<td colspan="2" class=lanyuss>网站基本信息设置</td>
</tr>
<tr class=lanyuds><td>网站名称:</td><td><input type="text" name="titletxt" value='<%=rs("titletxt")%>' size="50"></td></tr>
<tr class=lanyuds>
<td>网站logo:</td><td><input type="text" name="poto" value='<%=rs("poto")%>' size="50"></td>
</tr>
<tr class=lanyuds>
<td>网站域名:</td><td><input type="text" name="liuyan" value='<%=rs("liuyan")%>' size="50"></td>
</tr>
<tr class=lanyuds>
<td>站长手机:</td><td><input type="text" name="chaxu" value='<%=rs("chaxu")%>' size="50"></td>
</tr>
<tr class=lanyuds>
<td>对齐方式:</td><td><select name="duiqi">
<% if rs("duiqi")="center" then %>
<option selected value="center">中间对齐</option>
<% else %>
<option value="center">中间对齐</option>
<% end if %>
<% if rs("duiqi")="left" then %>
<option selected value="left">左边对齐</option>
<% else %>
<option value="left">左边对齐</option>
<% end if %>
<% if rs("duiqi")="right" then %>
<option selected value="right">右边对齐</option>
<% else %>
<option value="right">右边对齐</option>
<% end if %>
</td>
</tr>
<tr><td colspan="2" class=lanyuqs align="center">
<input type="submit" value="提交" name="Submit">
<input type="reset" value="重写" name="Submit2">
</td></tr>
</form>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -