📄 index.aspx
字号:
<%@ Register TagPrefix="Forum" TagName="Top" Src="_Top.ascx" %>
<%@ Register TagPrefix="Forum" TagName="Bt" Src="_Bt.ascx" %>
<%@ Page language="c#" Debug="true" Codebehind="Index.aspx.cs" AutoEventWireup="false" Inherits="Forum.Index" EnableSessionState="True"%>
<%@ OutputCache Duration="43200" VaryByParam="none" VaryByCustom="Top"%>
<HTML>
<HEAD>
<title>
<%=Title%>
</title>
<LINK href="Forum.css" type="text/css" rel="stylesheet">
</HEAD>
<body topMargin="0" leftmargin="0">
<form id="Index" method="post" runat="server">
<FORUM:TOP id="Top" Runat="server"></FORUM:TOP>
<table cellSpacing="0" cellpadding="0" width="97%" align="center">
<tr>
<td align="middle" colSpan="2">
<SCRIPT language="JavaScript" src="fader.js" type="text/javascript"></SCRIPT>
<asp:label id="bbsnews" Runat="server"></asp:label>
<div id="elFader" style="VISIBILITY: hidden; POSITION: relative; HEIGHT: 16px"></div>
</td>
</tr>
<tr>
<td>
<asp:label id="Path" runat="server" EnableViewState="False"></asp:label>
</td>
<td align="right">
<asp:label id="TopicWithMe" runat="server" EnableViewState="False"></asp:label>
</td>
</tr>
</table>
<table cellSpacing="1" cellpadding="2" width="97%" align="center">
<tr>
<td align="right">
<asp:label id="ForumCount" runat="server" EnableViewState="False"></asp:label>
</td>
</tr>
</table>
<asp:table id="Table3" runat="server" HorizontalAlign="Center" CellSpacing="1" CellPadding="6" Width="97%" Visible="False">
<asp:TableRow AccessKey="H">
<asp:TableCell>
<b>快速登录入口</b> [<A href="Reg.aspx">注册用户</A>]
</asp:TableCell>
</asp:TableRow>
<asp:TableRow AccessKey="B">
<asp:TableCell>
<b>用户名:</b>
<asp:TextBox ID="UsersName" Runat="server" Columns="10"></asp:TextBox>
<b>密码:</b>
<asp:TextBox ID="UsersPwd" Runat="server" TextMode="Password" Columns="10"></asp:TextBox>
<asp:DropDownList ID="CookieDate" Runat="server">
<asp:ListItem Text="立刻过期" Value="0" Selected></asp:ListItem>
<asp:ListItem Text="保存一天" Value="1"></asp:ListItem>
<asp:ListItem Text="保存一月" Value="30"></asp:ListItem>
<asp:ListItem Text="保存一年" Value="365"></asp:ListItem>
</asp:DropDownList>
<asp:Button ID="btnLogin" Runat="server" Text="登 录" OnClick="btnLogin_Click"></asp:Button>
<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="用户名含有不合法字符" ValidationExpression="^[^<']*" ControlToValidate="UsersName" Display="None"></asp:RegularExpressionValidator>
<asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" ErrorMessage="用户密码含有不合法字符" ValidationExpression="^[^<']*" ControlToValidate="UsersPwd" Display="None"></asp:RegularExpressionValidator>
<asp:Label ID="Info" Runat="server"></asp:Label>
</asp:TableCell>
</asp:TableRow>
</asp:table><br>
<asp:DataList ID="dlfclist" Runat="server" Width="97%" BorderWidth="0" CellPadding="0" CellSpacing="0" HorizontalAlign="Center">
<HeaderTemplate>
<table width="100%" cellpadding="6" cellspacing="1" bgcolor='<%=Config[0]["Forum_Config_TableBgcolor"].ToString()%>'>
<tr bgcolor='<%=Config[0]["Forum_Config_HeadBgcolor"].ToString()%>'>
<td width="30" align="center">
<b>状态</b>
</td>
<td>
<b>论坛名称</b>
</td>
<td width="100" align="center">
<b>版主</b>
</td>
<td width="40" align="center">
<b>主题</b>
</td>
<td width="40" align="center">
<b>回贴</b>
</td>
<td width="150" align="center">
<b>最后发表</b>
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="ClassId" Runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Class_Id") %>'>
</asp:Label>
<table width="100%" cellpadding="6" cellspacing="1" style='border-left: 1 solid <%=Config[0]["Forum_Config_TableBgcolor"].ToString()%>; border-right: 1 solid <%=Config[0]["Forum_Config_TableBgcolor"].ToString()%>'>
<tr>
<td>
<asp:Label ID="ClassName" Runat="server" Font-Bold="True" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Class_Name") %>'>
</asp:Label>
</td>
</tr>
</table>
<asp:DataGrid id="dgfblist" runat="server" ShowHeader="False" AutoGenerateColumns="False" BorderWidth="0px" cellpadding="6" CellSpacing="1" HorizontalAlign="Center" Width="100%">
<Columns>
<asp:TemplateColumn>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="30px"></ItemStyle>
<ItemTemplate>
<asp:Label ID="Pic" Runat="server">
<img src='Pic/FoldO.gif' border='0'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemStyle VerticalAlign="Top"></ItemStyle>
<ItemTemplate>
<table>
<tr>
<td>
<asp:Label ID="PicUrl" Visible="False" Runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Forum_Board_PicUrl") %>'>
</asp:Label>
</td>
<td valign="top">
<a href='List.aspx?fbId=<%# DataBinder.Eval(Container, "DataItem.Forum_Board_Id") %>'>
<%# DataBinder.Eval(Container, "DataItem.Forum_Board_Name")%>
</a>
<%#DataBinder.Eval(Container, "DataItem.Board_Type")%>
<br>
<%# DataBinder.Eval(Container, "DataItem.Forum_Board_Mark") %>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
<ItemTemplate>
<asp:Label ID="Admin" Runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Forum_Board_Admin") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
<ItemTemplate>
<%# DataBinder.Eval(Container, "DataItem.Forum_Board_Post") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
<ItemTemplate>
<%# DataBinder.Eval(Container, "DataItem.Forum_Board_RePost") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemStyle Width="150px"></ItemStyle>
<ItemTemplate>
<asp:Label ID="LastPost" Runat="server"></asp:Label>
<asp:Label ID="BoardId" Runat="server" Visible="False" Text='<%# DataBinder.Eval(Container, "DataItem.Forum_Board_Id") %>'>
</asp:Label>
<asp:Label ID="LastPostId" Runat="server" Visible="False" Text='<%# DataBinder.Eval(Container, "DataItem.Forum_Board_LastPostId") %>'>
</asp:Label>
<asp:Label ID="LastPostTitle" Runat="server" Visible="False" Text='<%# DataBinder.Eval(Container, "DataItem.Forum_Board_LastPostTitle") %>'>
</asp:Label>
<asp:Label ID="LastPostUsers" Runat="server" Visible="False" Text='<%# DataBinder.Eval(Container, "DataItem.Forum_Board_LastPostUsers") %>'>
</asp:Label>
<asp:Label ID="LastPostDate" Runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Board_LastPostDate") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</ItemTemplate>
</asp:DataList>
<BR>
<asp:DataGrid id="dgflList" runat="server" Width="97%" HorizontalAlign="Center" CellSpacing="1" cellpadding="6" BorderWidth="0px" AutoGenerateColumns="False" EnableViewState="False">
<Columns>
<asp:TemplateColumn>
<HeaderStyle Font-Bold="True" Width="30px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Top"></ItemStyle>
<ItemTemplate>
<img src="Pic/ForumLink.gif" border="0">
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="论坛联盟">
<HeaderStyle Font-Bold="True"></HeaderStyle>
<ItemTemplate>
<a href='<%# DataBinder.Eval(Container, "DataItem.Forum_Link_Url") %>'>
<%# DataBinder.Eval(Container, "DataItem.Forum_Link_Name") %>
</a>
<br>
<%# DataBinder.Eval(Container, "DataItem.Forum_Link_Mark") %>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
<br>
<asp:Table id="Table1" runat="server" cellpadding="6" CellSpacing="1" Width="97%" HorizontalAlign="Center" EnableViewState="False">
<asp:TableRow AccessKey="H">
<asp:TableCell Width="30px"></asp:TableCell>
<asp:TableCell Text="
<b>今天过生日的人</b>"></asp:TableCell>
</asp:TableRow>
<asp:TableRow AccessKey="B">
<asp:TableCell VerticalAlign="Top" HorizontalAlign="Center" Text="
<img src="Pic/Birth.gif" border="0">"></asp:TableCell>
<asp:TableCell>
<asp:DataList runat="server" Width="100%" RepeatDirection="Horizontal" ID="dlfuList" CellPadding="0" RepeatLayout="Flow">
<ItemTemplate>
<a href="#">
<%# DataBinder.Eval(Container, "DataItem.Forum_Users_Name") %>
</a>
</ItemTemplate>
</asp:DataList>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<BR>
<asp:Table id="Table2" runat="server" cellpadding="6" CellSpacing="1" Width="97%" HorizontalAlign="Center" EnableViewState="False">
<asp:TableRow AccessKey="H">
<asp:TableCell Width="30px"></asp:TableCell>
<asp:TableCell Text="
<b>论坛在线统计</b>
"></asp:TableCell>
</asp:TableRow>
<asp:TableRow AccessKey="B">
<asp:TableCell VerticalAlign="Top" HorizontalAlign="Center" Text="
<img src="Pic/Online.gif" border="0">"></asp:TableCell>
<asp:TableCell>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
现在论坛上共有 <B>
<asp:Label runat="server" ID="Users"></asp:Label>
</B>位会员与 <B>
<asp:Label runat="server" ID="Guest"></asp:Label>
</B>位客人
<asp:LinkButton runat="server" CommandName="1" ID="ShowOnline" OnCommand="LinkButton_Command" Enabled="false" Visible="false">[显示在线]</asp:LinkButton>
<br>
在线名单图例:<IMG height="18" src="pic/Admin.gif" width="16">总坛主 ‖ <IMG border="0" src="pic/Master.gif">论坛坛主
‖ <IMG border="0" src="pic/Honour.gif">论坛贵宾 ‖ <IMG border="0" src="pic/Users.gif">普通会员
‖ <IMG border="0" src="pic/Guest.gif">客人
</td>
<td align="right"><a href="http://www.aspxapp.com"><img src="logo/logo_s.gif" alt="DotNet应用网:http://www.aspxapp.com<br>DotNet应用网官方论坛http://www.aspxapp.com/forum" border="0"></a></td>
</tr>
</table>
<hr size="1">
<asp:DataList runat="server" Width="100%" RepeatDirection="Horizontal" ID="dlfoList" CellPadding="0" RepeatLayout="Flow">
<ItemTemplate>
<asp:Label ID="OnlineName" Runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Online_Name") %>'>
</asp:Label>
<asp:Label id="OnlineClass" runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Online_Class") %>'>
</asp:Label>
<asp:Label id="OnlineIp" runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Online_Ip") %>'>
</asp:Label>
<asp:Label id="OnlineSystem" runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Online_System") %>'>
</asp:Label>
<asp:Label id="OnlineBrowser" runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Online_Browser") %>'>
</asp:Label>
<asp:Label id="OnlineLocation" runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Online_Location") %>'>
</asp:Label>
<asp:Label id="OnlineAction" runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Online_Action") %>'>
</asp:Label>
<asp:Label id="OnlineLogin" runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Online_Login") %>'>
</asp:Label>
<asp:Label id="OnlineNow" runat="server" Visible="False" text='<%# DataBinder.Eval(Container, "DataItem.Forum_Online_Now") %>'>
</asp:Label>
<asp:Label id="Online" runat="server"></asp:Label>
</ItemTemplate>
</asp:DataList>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<FORUM:Bt id="Bt" Runat="server" EnableViewState="False"></FORUM:Bt>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -