index.aspx

来自「asp做的新闻系统」· ASPX 代码 · 共 154 行

ASPX
154
字号
<%@ Page language="c#" Codebehind="Index.aspx.cs" AutoEventWireup="false" Inherits="Web.index" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>欢迎光临</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<LINK href="common/common.css" type="text/css" rel="stylesheet">
			<script language="javascript">
			<!--
			function CheckInput()
			{
				if(document.all("TxtUserName").value=="")
				{
					alert("用户名不能为空!");
					document.all("TxtUserName").focus();
					return false;
				}
				else if(document.all("TxtPwd").value=="")
				{
					alert("密码不能为空!");
    				document.all("TxtPwd").focus();
					return false;
				}
				else
				{
					return true;
				}
			}
			
			function openwin(htmlurl) 
			{
				window.open(htmlurl,"newWin","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,top=50,left=50,width=450,height=250");
				//self.showModalDialog(htmlurl,'','dialogWidth:550px;dialogHeight:350px;help:0;status:0');
			}
			
			//-->
			</script>
	</HEAD>
	<body text="#333333" vLink="#333333" aLink="#333333" link="#333333" bgColor="#ffffff" leftMargin="0" topMargin="10" onload="" marginwidth="0" marginheight="0">
		<form id="frmIndex" method="post" runat="server">
			<div align="center">
				<table height="3" cellSpacing="1" cellPadding="4" width="90%" border="0">
					<tr bgColor="#cccccc">
						<td width="312" height="25">欢迎光临</td>
						<td align="middle"><a href="articlelist.aspx">热点文章</a></td>
						<td align="middle"><a href="forum/forum.aspx">论坛</a></td>
						<td align="middle"><a href="bbs/bbs.aspx">留言本</a></td>
						<td align="middle"><a href="FileList.aspx">文件下载</a></td>
					</tr>
				</table>
				<table>
					<tr>
						<td width="20"></td>
					</tr>
				</table>
				<table cellSpacing="1" cellPadding="0" width="90%" bgColor="#8c8c8c" border="0">
					<tr vAlign="center" bgColor="whitesmoke">
						<td height="20">网站登录</td>
						<td height="20">您的位置:首页</td>
					</tr>
					<tr>
						<td vAlign="top" bgColor="#ffffff">
							<table height="95" cellSpacing="0" cellPadding="0" border="0">
								<tr>
									<td>
										<table height="71" cellSpacing="5" cellPadding="0" border="0">
											<form action="#" name="frmLogin" method="post">
												<TBODY>
													<tr>
														<td>用户名:</td>
														<td><asp:textbox id="TxtUserName" runat="server" Width="84px"></asp:textbox></td>
														<td align="right"><asp:button id="BtnOK" runat="server" Width="35px" BorderStyle="Groove" Height="20px" Text="确定"></asp:button></td>
													</tr>
													<tr>
														<td>密&nbsp; 码:</td>
														<td><asp:textbox id="TxtPwd" runat="server" Width="83px" Height="20px" TextMode="Password"></asp:textbox></td>
														<td align="right"><asp:button id="BtnRegister" runat="server" Width="35px" BorderStyle="Groove" Height="20px" Text="注册"></asp:button></td>
													</tr></form>
										</table>
										<table align="center">
											<tr>
												<td>
													<%Login();%>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
						<td width="75%" bgColor="#ffffff">
							<table height="23" cellSpacing="0" cellPadding="0" border="0">
								<tr>
									<td vAlign="top" align="left" width="90%">
										<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										</table>
										<%GetArticle();%>
									</td>
									<td align="right"><map name="Map"><IMG style="WIDTH: 93px; HEIGHT: 76px" height="119" src="Images/12.jpg" width="223" useMap="#Map" border="0">&nbsp;</map></td>
								</tr>
							</table>
						</td>
					</tr>
					</TBODY></table>
				<table>
					<tr>
						<td width="20"></td>
					</tr>
				</table>
				<table cellSpacing="1" cellPadding="0" width="90%" bgColor="#8c8c8c" border="0">
					<TR bgColor="whitesmoke">
						<TD height="20">站点公告</TD>
						<TD>最新帖子</TD>
					</TR>
					<tr>
						<td vAlign="top" align="left" bgColor="#ffffff" height="2"><br>
							&nbsp;&nbsp;经过前段时间紧张的开发,我们的站点开通了。<br>
							&nbsp;&nbsp;希望大家能对我们的站点热心的支持和鼓励,我们一定会尽全力为大家提供一切最新的开发学习资料和力所能及的帮助。
						</td>
						<td vAlign="top" align="left" width="75%" background="img/di.gif" bgColor="#ffffff" height="2">
							<%GetForum();%>
						</td>
					</tr>
				</table>
				<table height="20" cellSpacing="0" cellPadding="0" background="img/xian.gif" border="0">
				</table>
				<table cellSpacing="1" cellPadding="0" bgColor="#8c8c8c" border="0">
				</table>
				<table cellSpacing="0" cellPadding="0" width="90%" border="0">
					<tr>
						<td><IMG height="5" src="img/top.gif"></td>
					</tr>
					<tr align="middle" bgColor="#666666">
						<td bgColor="#ffffff" height="55">
							<table cellSpacing="3" cellPadding="0" border="0">
								<tr>
									<td>
										<div align="center"></div>
									</td>
								</tr>
								<tr>
									<td>
										<div align="center"><FONT color="#000000"><FONT face="Arial">copyright:2002-2003</FONT>版权所有</FONT></div>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?