index.aspx
资源名称:论坛源码.rar [点击查看]
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:12k
源码类别:
.net编程
开发平台:
C#
- <%@ Import Namespace="System.Data" %>
- <%@ Page language="c#" Codebehind="index.aspx.cs" AutoEventWireup="false" Inherits="kuangren.index" %>
- <%@ Register TagPrefix="uc1" TagName="jianinclude5" Src="jianinclude5.ascx" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>狂人论坛|论坛首页</title>
- <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
- <meta content="C#" name="CODE_LANGUAGE">
- <meta content="JavaScript" name="vs_defaultClientScript">
- <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
- <link href="skin/dvbbs/style.css" rel="stylesheet" type="text/css">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- </HEAD>
- <body leftmargin="0" topmargin="0">
- <!--#include file="sitehead.aspx" -->
- <table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><div align="center">
- <SCRIPT language="JavaScript" src="Style/fader.js" type="text/javascript"></SCRIPT>
- <SCRIPT language="JavaScript" type="text/javascript">
- prefix="";
- arNews = ["<b><a href='for_user.asp?'target=_blank><font color=red>网站新版本开发中,即日起新用户停止注册</font></a></b> ","","欢迎光临狂人论坛","",
- "严禁恶意使用粗言秽语,违者经劝告无效,立即封ID。",""
- ]
- </SCRIPT>
- </div>
- <DIV id="elFader" style="VISIBILITY: hidden; POSITION: relative; HEIGHT: 16px">
- </DIV>
- <div align="center"></div></td>
- </tr>
- </table>
- <table width="97%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6595d6" class="table"
- style="BORDER-COLLAPSE: collapse">
- <TBODY>
- <tr >
- <td colspan="2" class="title"><div align="center"> </div></td>
- </tr>
- <tr >
- <td width="50%" height="60" valign="middle" bgcolor="#ffffff" >
- <%if (Request.Cookies["jusername"]==null)
- {%>
- <div align="center">欢迎您访问狂人论坛,您还没有<a href="reg.aspx"><strong> 注册 </strong></a>或
- <a href="login.aspx"><strong>登录</strong></a> <br>
- </div>
- <table width="100%" border="0" cellspacing="6" cellpadding="0">
- <form name="form1" method="post" action="chklogin.aspx"> <tr>
- <td width="15%"><div align="left">用户名:</div></td>
- <td width="20%"><input name="username" size="12" maxlength="16"></td>
- <td width="10%"><div align="center">密码:</div></td>
- <td width="20%"><input name="password" type="password" id="password" size="12" maxlength="20"></td>
- <td width="18%"><select name="CookieDate" class="TableBody1" id="CookieDate">
- <option value="0" selected>不保存</option>
- <option value="1">保存一天</option>
- <option value="30">保存一月</option>
- <option value="365">保存一年</option>
- </select></td>
- <td><input name="hidden" type="hidden" id="hidden2" value="0"> <input type="submit" name="submit2" value="登陆"></td>
- </tr></form>
- </table><%}else{%>
- <TABLE width="98%" align=center border=0>
- <TBODY>
- <TR>
- <TD align=middle width=88 rowSpan=6><IMG height=60
- width=60></TD>
- </TR>
- <TR>
- <TD height=22 colspan="3">您的当前状态为:已经登陆 </TD>
- </TR>
- <TR>
- <TD bgColor=#6595d6 colSpan=3 height=1></TD>
- </TR>
- <TR>
- <TD> :: <a href="user_board_favord.aspx">我的收藏夹</A></TD>
- <TD> :: <a href="messagesend.aspx?page=default" target="_blank">
- 发短信</a> </TD>
- </TR>
- <TR>
- <TD> :: <a href="user_board_post.aspx">我所发表的文章</a> </TD>
- <TD> :: <a href="user_board_inforup.aspx">基本资料修改</a></TD>
- </TR>
- <TR>
- <TD> ::<a href="user_board_message.aspx"> 用户短信服务</a></TD>
- <TD> :: <a href="user_board_passup.aspx">用户密码修改</a></TD>
- </TR>
- </TBODY>
- </TABLE>
- <%}%></td>
- <td width="48%" bgcolor="#ffffff" >
- <TABLE width="98%" align=center border=0>
- <TBODY>
- <TR>
- <TD><!--#include file="Writerfile2.aspx" --></TD>
- </TR>
- <TR>
- <TD bgColor=#6595d6 height=1></TD>
- </TR>
- <TR>
- <TD> <!--#include file="Writerfile1.aspx" -->
- </TD>
- </TR>
- <TR>
- <TD>最高日发贴:<FONT
- title="发生日期: [2003-12-31"><B>646</B></FONT> 篇,发生时间:2003-9-23</TD>
- </TR>
- </TBODY>
- </TABLE></td>
- </tr>
- <tr >
- <td height="20" colspan="2" bgcolor="#e2ebf5"><div align="center"><a href="article_order.aspx?user=f3_id">查看新贴
- </a><FONT face=Wingdings color=#666666>v</FONT><a href="article_order.aspx?user=f3_replynum">
- 热门话题</a> <FONT face=Wingdings color=#666666>v</FONT> <a href="new_user.aspx?user=u_post">
- 发贴排行</a> <FONT face=Wingdings color=#666666>v</FONT><a href="new_user.aspx?user=u_id">
- 用户列表</a></div></td>
- </tr>
- </table>
- <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td> </td>
- </tr>
- </table>
- <asp:repeater id="parent" runat="server">
- <itemtemplate>
- <table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#6595D6">
- <tr class="title_link">
- <td class="title"><img src="skin/dvbbs/images/-.gif" width="9" height="9" hspace="6" align="absmiddle" />
- <a href="list.aspx?f1_id=<%# DataBinder.Eval(Container.DataItem,"f1_id") %>"><%# DataBinder.Eval(Container.DataItem,"f1_caption") %></a> </td>
- </tr>
- <!-- start child repeater -->
- <asp:repeater id="child" DataSource='<%# ((DataRowView)Container.DataItem).Row.GetChildRows("myrelation") %>' runat="server">
- <itemtemplate>
- <tr>
- <td class="board">
- <table width="100%" border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td width="9%" rowspan="2" align="center" class="boardstate"><div align="center"><img src="<%#GetPath1(DataBinder.Eval(Container.DataItem,"["f2_pass"]"))%>" width="24" height="24" /></div></td>
- <td width="77%"><table width="100%" height="100%" border="0" cellpadding="2" cellspacing="0">
- <tr>
- <td width="67%"><font color="#000000">『<a href="maintable.aspx?f2_id=<%#DataBinder.Eval(Container.DataItem,"["f2_id"]")%>">
- <%#DataBinder.Eval(Container.DataItem,"["f2_caption"]")%>
- </a>』</font></td>
- <td width="10%" rowspan="3"><%# GetPath(DataBinder.Eval(Container.DataItem,"["f2_forumpic"]"))%>
- </td>
- <td width="23%">主题:<a href="article_det.aspx?f2_id=<%#DataBinder.Eval(Container.DataItem,"["f2_id"]")%>&f3_id=<%#DataBinder.Eval(Container.DataItem,"["f2_lastrootid"]")%>&pageindex=1">
- <%#FilterBadWords(dotrim(DataBinder.Eval(Container.DataItem,"["f2_lasttopic"]").ToString(),8))%>
- </a></td>
- </tr>
- <tr>
- <td width="67%" rowspan="2" valign="top"><img src="skin/dvbbs/images/forum_readme.gif" width="5" height="9" />
- <%#DataBinder.Eval(Container.DataItem,"["f2_explain"]")%>
- <font color="#000000"> </font></td>
- <td>作者: <a href="user_infor.aspx?u_user=<%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>" target="_blank">
- <%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>
- </a> </td>
- </tr>
- <tr>
- <td width="23%">日期:
- <%#DataBinder.Eval(Container.DataItem,"["f2_lastposttime"]")%>
- <img src="skin/dvbbs/images/lastpost.gif" width="11" height="10" hspace="7" align="bottom" />
- </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td bgcolor="#E2EBF5">
- <table width="100%" border="0" cellspacing="0" cellpadding="1">
- <tr>
- <td width="50%">版主:
- <%#getModerator(DataBinder.Eval(Container.DataItem,"["f2_master"]").ToString())%>
- </td>
- <td width="50%"><table width="60%" border="0" align="right" cellpadding="0" cellspacing="0">
- <tr>
- <td width="30"><img src="images/Forum_today.gif" width="25" height="10"></td>
- <td width="200"><div align="center"><a href="user_infor.aspx?u_user=<%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>" target="_blank">
- <%#DataBinder.Eval(Container.DataItem,"["f2_todaynum"]")%>
- </a></div></td>
- <td width="30"><img src="images/post.gif" width="25" height="10"></td>
- <td width="200"><div align="center"><a href="user_infor.aspx?u_user=<%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>" target="_blank">
- <%#DataBinder.Eval(Container.DataItem,"["f2_topicnum"]")%>
- </a></div></td>
- <td width="30"><img src="images/topic.gif" width="25" height="10"></td>
- <td width="200"><div align="center"><a href="user_infor.aspx?u_user=<%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>" target="_blank">
- <%#Convert.ToInt32(DataBinder.Eval(Container.DataItem,"["f2_topicnum"]").ToString())+Convert.ToInt32(DataBinder.Eval(Container.DataItem,"["f2_replynum"]").ToString())%>
- </a></div></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </td>
- </tr>
- </itemtemplate>
- </asp:repeater>
- <!-- end child repeater -->
- </table>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="18"></td>
- </tr>
- </table>
- </itemtemplate>
- </asp:repeater>
- <table width="97%" border="0" align="center" cellpadding="4" cellspacing="0" class="table">
- <tr class="title_link">
- <td class="title">-=> 友情论坛</td>
- </tr>
- <tr>
- <td><a href="http://www.asp600.com" target="_blank">狂人论坛官方网站</a></td>
- </tr>
- </table>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="18"></td>
- </tr>
- </table>
- <table width="97%" border="0" align="center" cellpadding="4" cellspacing="0" class="table">
- <tr>
- <td class="title">-=> 用户来访信息</td>
- </tr>
- <tr>
- <td>您的 IP 是:
- <%# Request.UserHostAddress %>
- , 操作系统:
- <%# User.Agent(2) %>
- , 浏 览 器:
- <%# User.Agent(1) %>
- </td>
- </tr>
- </table>
- <uc1:jianinclude5 id="Jianinclude51" runat="server"></uc1:jianinclude5>
- <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td height="20" colspan="3"></td>
- </tr>
- <tr height="50">
- <td><img src="skin/dvbbs/images/forum_nonews.gif" width="24" height="24" hspace="5" align="absMiddle">没有新的帖子</td>
- <td align="center"><img src="skin/dvbbs/images/forum_isnews.gif" width="24" height="24" hspace="5" align="absMiddle">有新的帖子</td>
- <td align="right"><img src="skin/dvbbs/images/forum_lock.gif" width="24" height="24" hspace="5" align="absmiddle">被锁定的论坛</td>
- </tr>
- </table>
- <!--#include file="sitefloor.aspx" -->
- </body>
- </HTML>