📄 admin.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<% response.buffer=true %>
<%
dim conn,rs,articleid,sql,strsql,name1,password,pass
name1=request.Form("name")
password=request.Form("password")
articleid=request.QueryString("articleid")
set conn=Server.CreateObject("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & server.mappath("db\db.mdb")
set pass=Server.CreateObject("ADODB.recordset")
pass.open "select * from admin",conn
if name1=pass("admin") and password=pass("password") or session("admin")<>"" then
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>铁吧——Tie8_管理界面</title>
<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-size: 14px}
.style9 {font-family: "隶书"; font-size: 12px;}
body,td,th {
font-size: 12px;
color: #CCCCCC;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
color: #CC3300;
}
body {
background-color: #003399;
}
-->
</style>
</head><body>
<table width="779" height="80" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#003399">
<tr>
<td width="152"><img src="img/logo.gif" width="150" height="80"></td>
<td width="620" valign="bottom" align="right"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#003399">
<tr>
<td align="right"><A onclick="this.style.behavior='url(#default#homepage)';this.setHomePage(location.href)" href='javascript:'>设为首页</A>
<A href='javascript:external.AddFavorite(location.href,document.title)'>收藏本站</A>
<A href='mailto:dajiaweb@126.com'>联系站长</A>
<td valign="bottom" align="right" width="160"><META http-equiv='Content-Type' content='text/html;charset=gb2312'>
<DIV id='a'></DIV>
<SCRIPT>
function changtime(){
alldate=new Date();
str1=alldate.getFullYear()+"年"+(alldate.getMonth()+1)+"月"
str1+=alldate.getDate()+"日 "+alldate.getHours()+":"
str1+=alldate.getMinutes()+":"+alldate.getSeconds()
if(document.readyState=="complete")a.innerText=str1
}
setInterval('changtime()',1000)
</SCRIPT></td></td>
</tr>
</table>
</td>
</tr>
</table>
<hr align="center" width="779" size="1" color="##0066CC">
<div align="center">
<table width="779" height="20" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#003399">
<tr>
<td><div align="left" class="style2">
<p><div align="left"><a href="index.asp">首页</a> |
<a href="sort.asp?classid=1">李铁新闻</a> |
<a href="sort.asp?classid=2">李铁图集</a> |
<a href="sort.asp?classid=3">辽宁30号</a> |
<a href="sort.asp?classid=4">埃弗顿12号</a> |
<a href="sort.asp?classid=5">China8号</a> |
<a href="guestbook.asp">本站留言</a> |
<a href="aboutme.asp">站长简历</a> |
<a href="login.asp"> 管理登陆</a> |
</div></p>
</div></td>
</tr>
</table>
</div>
<br>
<table width="779" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="##0066CC">
<tr>
<td width="180"align="left" valign="top" scope="row">
<table width="100%" height="100%" border="0">
<tr><td align="center" valign="top" scope="row"></tr>
<tr><td align="center" valign="top" scope="row"><!--#include file="hot.asp"--></tr>
<tr><td align="center" valign="top" scope="row"><!--#include file="tuijian.asp"--></td></tr>
</table>
</td>
<td width="490" align="center" valign="top">
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#003399" valign="top">
<td valign="top" align="center">
<img src="img/newarticle.gif">
</td>
</tr>
<tr><td>
<table>
<tr><td>
<form action="article.asp" method="post">
<p>文章标题:<input name="title" size="20" type="text"> 作者:<input name="author" size="10" type="text">
<p>文章类别:<select name="class">
<option value="isnull">==请选择分类==</option>
<option value="1">李铁新闻</option>
<option value="2">李铁图集</option>
<option value="3">辽宁30号</option>
<option value="4">埃弗顿12号</option>
<option value="5">China8号</option>
</select> <input type=radio name="tuijian" value="1">推荐 <input type=radio name="tuijian" value="0" checked>不推荐
<p align="left">文章内容:
<p><textarea name="content" rows="20" cols="50"></textarea>
<p align="center"><input type="submit" name="submit" value="发表"></p>
</form>
</td>
</tr>
</table>
</td></tr>
</table></td>
<td width="120"align="left" valign="top" scope="row">
<table width="100%" height="100%" border="0">
<tr><td align="center" valign="top" scope="row"><table><tr>
<td align="center" valign="top" scope="row"><b>密码修改</b><br></td></td>
</tr>
<tr>
<td>
<form action="password.asp?user=<%=name1%>" method="post">
<p>原密码:<p><input name="password1" size="10" type="password">
<p>新密码:<p><input name="password2" size="10" type="password">
<p>新密码:<p><input name="password3" size="10" type="password">
<p><input type="submit" value="确定">
</form>
<p>用于网友测试,请不要更改密码!
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p align="center">Copyright (C) 2004 Tie8.Studio All Rights Reserved </p>
<p align="center">版权所有 铁吧</p>
<%
else
%>
请输入正确的用户名和密码。点击<a href="index.asp">返回</a>
<%end if
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -