📄 index.asp
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/mydb.asp" -->
<%
// *** Validate request to log in to this site.
var MM_LoginAction = Request.ServerVariables("URL");
if (Request.QueryString!="") MM_LoginAction += "?" + Server.HTMLEncode(Request.QueryString);
var MM_valUsername=String(Request.Form("textfield"));
if (MM_valUsername != "undefined") {
var MM_fldUserAuthorization="quanxian";
var MM_redirectLoginSuccess="myworld.asp";
var MM_redirectLoginFailed="logerror.asp";
var MM_flag="ADODB.Recordset";
var MM_rsUser = Server.CreateObject(MM_flag);
MM_rsUser.ActiveConnection = MM_mydb_STRING;
MM_rsUser.Source = "SELECT name, pass";
if (MM_fldUserAuthorization != "") MM_rsUser.Source += "," + MM_fldUserAuthorization;
MM_rsUser.Source += " FROM 表1 WHERE name='" + MM_valUsername.replace(/'/g, "''") + "' AND pass='" + String(Request.Form("textfield2")).replace(/'/g, "''") + "'";
MM_rsUser.CursorType = 0;
MM_rsUser.CursorLocation = 2;
MM_rsUser.LockType = 3;
MM_rsUser.Open();
if (!MM_rsUser.EOF || !MM_rsUser.BOF) {
// username and password match - this is a valid user
Session("MM_Username") = MM_valUsername;
if (MM_fldUserAuthorization != "") {
Session("MM_UserAuthorization") = String(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value);
} else {
Session("MM_UserAuthorization") = "";
}
if (String(Request.QueryString("accessdenied")) != "undefined" && false) {
MM_redirectLoginSuccess = Request.QueryString("accessdenied");
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginSuccess);
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginFailed);
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>论坛首页</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
body {
background-image: url();
}
.style2 {font-size: 12px}
.style3 {font-size: 14px}
.style4 {color: #6BBC14}
.style5 {color: #8BCC4E}
.style6 {color: #FF0000}
.style7 {color: #6BBC14; font-size: 12px; }
.style8 {color: #70BB35}
.style9 {font-size: 12px; color: #70BB35; }
.style10 {font-family: "Times New Roman", Times, serif}
-->
</style></head>
<body>
<table width="925" height="825" border="0" align="left">
<tr>
<th width="242" rowspan="2" bgcolor="#FFFFFF" scope="row"><img src="board-left.gif" width="242" height="825">
<div id="Layer3" style="position:absolute; width:177px; height:165px; z-index:3; left: 49px; top: 598px;">
<div align="left" class="style3">
<p>合作站点</p>
<p><a href="http://www.sina.com.cn/"><img src="sina_logo2.gif" width="128" height="41" border="0"></a></p>
<p><a href="http://www.sohu.com/"><img src="sohu.gif" width="160" height="61" border="0"></a></p>
</div>
</div>
<div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:2; left: 35px; top: 193px;"><img src="boardl1.gif" width="174" height="244"> </div> </th>
<td width="618" height="168" align="left" valign="top"><div align="left"> <img src="board.gif" width="618" height="168" hspace="0" vspace="0" align="baseline"> </div></td>
<td width="51" height="168" align="left" valign="top"><div align="right"><img src="board-right.gif" width="51" height="168" hspace="0" vspace="0" align="baseline"> </div> <div align="center"></div></td>
</tr>
<tr>
<td width="618" height="168"><div align="left">
<div id="Layer4" style="position:absolute; width:170px; height:104px; z-index:4; left: 56px; top: 78px;">
<table width="200" border="0">
<tr>
<td colspan="2"><span class="style4">欢迎光临我的空间</span></td>
</tr>
<tr>
<td width="14"> </td>
<td width="140"><span class="style4">今天是</span></td>
</tr>
<tr>
<td> </td>
<td><!-- #BeginDate format:Ch2 -->2006年1月3日 <!-- #EndDate --></td>
</tr>
</table>
</div>
<div id="Layer5" style="position:absolute; width:147px; height:221px; z-index:5; left: 60px; top: 204px;">
<table width="200" height="109" border="0">
<tr>
<td height="17"><a href="index.asp"><img src="boardl3.gif" width="141" height="51" border="0"></a></td>
</tr>
<tr>
<td height="17"><a href="reg.asp"><img src="boardl5.gif" width="141" height="51" border="0"></a></td>
</tr>
<tr>
<td height="17"><img src="boardl6.gif" width="141" height="51"></td>
</tr>
<tr>
<td height="46"><a href="default.asp"><img src="boardl4.gif" width="141" height="51" border="0"></a></td>
</tr>
</table>
</div>
<div id="Layer6" style="position:absolute; width:615px; height:665px; z-index:6; left: 261px; top: 191px;">
<table width="611" height="310" border="0" bgcolor="#CCF188">
<tr>
<td colspan="4"><span class="style5">我是一个平凡的人 在自己的世界行走 我就是我 别人怎么说与我何干呢</span></td>
</tr>
<tr>
<td width="130" height="104" rowspan="8" align="left" valign="top"><img src="LOGO.JPG" width="130" height="100"></td>
<td width="93" height="17" align="left" valign="top"> <p align="justify">我的名字:</p></td>
<td width="256" align="left" valign="top"><span class="style7">包亮亮</span></td>
<td width="104" align="left" valign="top"> </td>
</tr>
<tr>
<td height="17" align="left" valign="top"><div align="justify">英文名:</div></td>
<td align="left" valign="top"><span class="style7">Eric</span></td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td height="17" align="left" valign="top"><div align="justify">呢称:</div></td>
<td align="left" valign="top"><span class="style7">夏日</span></td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td height="20" align="left" valign="top"><div align="justify">血型:</div></td>
<td align="left" valign="top"><span class="style7">AB</span></td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td height="20" align="left" valign="top"><div align="justify">星座:</div></td>
<td align="left" valign="top"><span class="style7">天平座</span></td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td height="22" align="left" valign="top"><div align="justify">QQ:</div></td>
<td align="left" valign="top"><span class="style7">264394740</span></td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td height="17" align="left" valign="top"><div align="justify">爱好:</div></td>
<td align="left" valign="top"><span class="style7">听歌,唱歌,玩游戏,一个人思考</span></td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td height="17" align="left" valign="top"><div align="justify">个人信言:</div></td>
<td colspan="2" align="left" valign="top"> </td>
</tr>
<tr>
<td height="126"> </td>
<td> </td>
<td align="left" valign="top"><p class="style6 style2">我知道自己的,无奈中对自己轻语</p>
<p class="style6 style2">我不知道我自己,无奈自己软弱</p>
<p class="style6 style2">我认识我自己,在梦中</p>
<p class="style6 style2">我不认识我自己,在现实中</p></td>
<td><img src="HUDIE.GIF" width="104" height="79"></td>
</tr>
</table>
<div id="Layer7" style="position:absolute; width:609px; height:116px; z-index:1; left: 0px; top: 314px;"><img src="guangliang.gif" width="231" height="257">
<div id="Layer8" style="position:absolute; width:372px; height:115px; z-index:7; left: 237px; top: 65px;">
<p class="style2 style8">漫漫人生路</p>
<p class="style9">需要我们一点一滴的去走</p>
<p class="style9">没人能帮助我们 但是</p>
<p class="style9">我们可以找人倾诉 也许</p>
<p class="style9">你--</p>
<p class="style9">就是我要找的那个 知心朋友</p>
</div>
</div>
<div id="Layer9" style="position:absolute; width:323px; height:16px; z-index:2; left: 127px; top: 649px;">
<div align="center" class="style4 style10">Edited by Baoliangliang </div>
</div>
</div>
</div></td>
<td width="51" height="654" align="left" valign="top"><img src="board-right2.gif" width="51" height="622"></td>
</tr>
</table>
<div id="Layer1" style="position:absolute; width:150px; height:130px; z-index:1; left: 48px; top: 459px; background-image: url(boardl2.gif); layer-background-image: url(boardl2.gif); border: 1px none #000000;">
<form name="form1" method="POST" action="<%=MM_LoginAction%>">
<p>用户登录∶</p>
<table width="177" border="0" align="center" bordercolor="#6BBC14">
<tr>
<td width="60"><div align="left" class="style2">
<div align="right">用户名:</div>
</div></td>
<td colspan="2"><input name="textfield" type="text" class="style2" size="15"></td>
</tr>
<tr>
<td><div align="left" class="style2">
<div align="right">密码:</div>
</div></td>
<td colspan="2"><input name="textfield2" type="password" class="style2" size="15"></td>
</tr>
<tr>
<td> </td>
<td width="61"><input type="submit" name="Submit" value="登陆"> </td>
<td width="56"><input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -