index.aspx
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:12k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Import Namespace="System.Data" %>
  2. <%@ Page language="c#" Codebehind="index.aspx.cs" AutoEventWireup="false" Inherits="kuangren.index" %>
  3. <%@ Register TagPrefix="uc1" TagName="jianinclude5" Src="jianinclude5.ascx" %>
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  5. <HTML>
  6. <HEAD>
  7. <title>狂人论坛|论坛首页</title>
  8. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  9. <meta content="C#" name="CODE_LANGUAGE">
  10. <meta content="JavaScript" name="vs_defaultClientScript">
  11. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  12. <link href="skin/dvbbs/style.css" rel="stylesheet" type="text/css">
  13. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  14. </HEAD>
  15. <body leftmargin="0" topmargin="0">
  16. <!--#include file="sitehead.aspx" -->
  17. <table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
  18.   <tr> 
  19.     <td><div align="center"> 
  20.         <SCRIPT language="JavaScript" src="Style/fader.js" type="text/javascript"></SCRIPT>
  21.         <SCRIPT language="JavaScript" type="text/javascript">
  22. prefix="";
  23. arNews = ["<b><a href='for_user.asp?'target=_blank><font color=red>网站新版本开发中,即日起新用户停止注册</font></a></b> ","","欢迎光临狂人论坛","",
  24. "严禁恶意使用粗言秽语,违者经劝告无效,立即封ID。",""
  25. ]
  26. </SCRIPT>
  27.       </div>
  28.       <DIV id="elFader" style="VISIBILITY: hidden; POSITION: relative; HEIGHT: 16px"> 
  29.       </DIV>
  30.       <div align="center"></div></td>
  31.   </tr>
  32. </table>
  33. <table width="97%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6595d6" class="table"
  34. style="BORDER-COLLAPSE: collapse">
  35.   <TBODY>
  36.     <tr > 
  37.       <td colspan="2" class="title"><div align="center"> </div></td>
  38.     </tr>
  39.     <tr > 
  40.       <td width="50%" height="60" valign="middle" bgcolor="#ffffff" > 
  41.         <%if (Request.Cookies["jusername"]==null)
  42. {%>
  43.         <div align="center">欢迎您访问狂人论坛,您还没有<a href="reg.aspx"><strong> 注册 </strong></a>或 
  44.           <a href="login.aspx"><strong>登录</strong></a> <br>
  45.         </div>
  46.         <table width="100%" border="0" cellspacing="6" cellpadding="0">
  47.  <form name="form1" method="post" action="chklogin.aspx"> <tr> 
  48.             <td width="15%"><div align="left">用户名:</div></td>
  49.             <td width="20%"><input name="username" size="12" maxlength="16"></td>
  50.             <td width="10%"><div align="center">密码:</div></td>
  51.             <td width="20%"><input name="password" type="password" id="password" size="12" maxlength="20"></td>
  52.             <td width="18%"><select name="CookieDate" class="TableBody1" id="CookieDate">
  53.                 <option value="0" selected>不保存</option>
  54.                 <option value="1">保存一天</option>
  55.                 <option value="30">保存一月</option>
  56.                 <option value="365">保存一年</option>
  57.               </select></td>
  58.             <td><input name="hidden" type="hidden" id="hidden2" value="0"> <input type="submit" name="submit2" value="登陆"></td>
  59.           </tr></form>
  60.         </table><%}else{%>
  61.         <TABLE width="98%" align=center border=0>
  62.           <TBODY>
  63.             <TR> 
  64.               <TD align=middle width=88 rowSpan=6><IMG height=60 
  65. width=60></TD>
  66.             </TR>
  67.             <TR> 
  68.               <TD height=22 colspan="3">您的当前状态为:已经登陆 </TD>
  69.             </TR>
  70.             <TR> 
  71.               <TD bgColor=#6595d6 colSpan=3 height=1></TD>
  72.             </TR>
  73.             <TR> 
  74.               <TD>&nbsp;:: <a href="user_board_favord.aspx">我的收藏夹</A></TD>
  75.               <TD>&nbsp;:: <a href="messagesend.aspx?page=default" target="_blank"> 
  76.                 发短信</a> </TD>
  77.             </TR>
  78.             <TR> 
  79.               <TD>&nbsp;:: <a href="user_board_post.aspx">我所发表的文章</a> </TD>
  80.               <TD>&nbsp;:: <a href="user_board_inforup.aspx">基本资料修改</a></TD>
  81.             </TR>
  82.             <TR> 
  83.               <TD> &nbsp;::<a href="user_board_message.aspx"> 用户短信服务</a></TD>
  84.               <TD>&nbsp;:: <a href="user_board_passup.aspx">用户密码修改</a></TD>
  85.             </TR>
  86.           </TBODY>
  87.         </TABLE>
  88.         <%}%></td>
  89.       <td width="48%" bgcolor="#ffffff" >
  90. <TABLE width="98%" align=center border=0>
  91.           <TBODY>
  92.             <TR> 
  93.               <TD><!--#include file="Writerfile2.aspx" --></TD>
  94.             </TR>
  95.             <TR> 
  96.               <TD bgColor=#6595d6 height=1></TD>
  97.             </TR>
  98.             <TR> 
  99.               <TD> <!--#include file="Writerfile1.aspx" -->
  100.               </TD>
  101.             </TR>
  102.             <TR> 
  103.               <TD>最高日发贴:<FONT 
  104.             title="发生日期: [2003-12-31"><B>646</B></FONT> 篇,发生时间:2003-9-23</TD>
  105.             </TR>
  106.           </TBODY>
  107.         </TABLE></td>
  108.     </tr>
  109.     <tr > 
  110.       <td height="20" colspan="2" bgcolor="#e2ebf5"><div align="center"><a href="article_order.aspx?user=f3_id">查看新贴 
  111.           </a><FONT face=Wingdings color=#666666>v</FONT><a href="article_order.aspx?user=f3_replynum"> 
  112.           热门话题</a> <FONT face=Wingdings color=#666666>v</FONT> <a href="new_user.aspx?user=u_post"> 
  113.           发贴排行</a> <FONT face=Wingdings color=#666666>v</FONT><a href="new_user.aspx?user=u_id"> 
  114.           用户列表</a></div></td>
  115.     </tr>
  116. </table>
  117. <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
  118.   <tr>
  119.     <td>&nbsp;</td>
  120.   </tr>
  121. </table>
  122. <asp:repeater id="parent" runat="server">
  123.   <itemtemplate> 
  124.     <table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#6595D6">
  125. <tr class="title_link">
  126.         <td class="title"><img src="skin/dvbbs/images/-.gif" width="9" height="9" hspace="6" align="absmiddle" /> 
  127.           <a href="list.aspx?f1_id=<%# DataBinder.Eval(Container.DataItem,"f1_id") %>"><%# DataBinder.Eval(Container.DataItem,"f1_caption") %></a> </td>
  128. </tr>
  129. <!-- start child repeater -->
  130. <asp:repeater id="child" DataSource='<%# ((DataRowView)Container.DataItem).Row.GetChildRows("myrelation") %>' runat="server">
  131. <itemtemplate>
  132.           <tr> 
  133.             <td class="board">
  134. <table width="100%" border="0" cellspacing="0" cellpadding="3">
  135.                 <tr> 
  136.                   <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>
  137.                   <td width="77%"><table width="100%" height="100%" border="0" cellpadding="2" cellspacing="0">
  138.                       <tr> 
  139.                         <td width="67%"><font color="#000000">『<a href="maintable.aspx?f2_id=<%#DataBinder.Eval(Container.DataItem,"["f2_id"]")%>">
  140.                           <%#DataBinder.Eval(Container.DataItem,"["f2_caption"]")%>
  141.                           </a>』</font></td>
  142.                         <td width="10%" rowspan="3"><%# GetPath(DataBinder.Eval(Container.DataItem,"["f2_forumpic"]"))%> 
  143.                         </td>
  144.                         <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">
  145.                           <%#FilterBadWords(dotrim(DataBinder.Eval(Container.DataItem,"["f2_lasttopic"]").ToString(),8))%>
  146.                           </a></td>
  147.                       </tr>
  148.                       <tr> 
  149.                         <td width="67%" rowspan="2" valign="top"><img src="skin/dvbbs/images/forum_readme.gif" width="5" height="9" /> 
  150.                           <%#DataBinder.Eval(Container.DataItem,"["f2_explain"]")%>
  151.                           <font color="#000000">&nbsp; </font></td>
  152.                         <td>作者: <a href="user_infor.aspx?u_user=<%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>" target="_blank">
  153.                           <%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>
  154.                           </a> </td>
  155.                       </tr>
  156.                       <tr> 
  157.                         <td width="23%">日期: 
  158.                           <%#DataBinder.Eval(Container.DataItem,"["f2_lastposttime"]")%>
  159.                           <img src="skin/dvbbs/images/lastpost.gif" width="11" height="10" hspace="7" align="bottom" /> 
  160.                         </td>
  161.                       </tr>
  162.                     </table></td>
  163.                 </tr>
  164.                 <tr> 
  165.                   <td bgcolor="#E2EBF5">
  166. <table width="100%" border="0" cellspacing="0" cellpadding="1">
  167.                       <tr> 
  168.                         <td width="50%">版主: 
  169.                           <%#getModerator(DataBinder.Eval(Container.DataItem,"["f2_master"]").ToString())%>
  170.                         </td>
  171.                         <td width="50%"><table width="60%" border="0" align="right" cellpadding="0" cellspacing="0">
  172.                             <tr>
  173.                               <td width="30"><img src="images/Forum_today.gif" width="25" height="10"></td>
  174.                               <td width="200"><div align="center"><a href="user_infor.aspx?u_user=<%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>" target="_blank"> 
  175.                                   <%#DataBinder.Eval(Container.DataItem,"["f2_todaynum"]")%>
  176.                                   </a></div></td>
  177.                               <td width="30"><img src="images/post.gif" width="25" height="10"></td>
  178.                               <td width="200"><div align="center"><a href="user_infor.aspx?u_user=<%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>" target="_blank"> 
  179.                                   <%#DataBinder.Eval(Container.DataItem,"["f2_topicnum"]")%>
  180.                                   </a></div></td>
  181.                               <td width="30"><img src="images/topic.gif" width="25" height="10"></td>
  182.                               <td width="200"><div align="center"><a href="user_infor.aspx?u_user=<%#DataBinder.Eval(Container.DataItem,"["f2_lastpostuser"]")%>" target="_blank"> 
  183.                                   <%#Convert.ToInt32(DataBinder.Eval(Container.DataItem,"["f2_topicnum"]").ToString())+Convert.ToInt32(DataBinder.Eval(Container.DataItem,"["f2_replynum"]").ToString())%>
  184.                                   </a></div></td>
  185.                             </tr>
  186.                           </table></td>
  187.                       </tr>
  188.                     </table></td>
  189.                 </tr>
  190.               </table>
  191. </td>
  192. </tr>
  193. </itemtemplate>
  194. </asp:repeater>
  195. <!-- end child repeater -->
  196. </table>
  197. <table border="0" cellspacing="0" cellpadding="0">
  198. <tr>
  199. <td height="18"></td>
  200. </tr>
  201. </table>
  202. </itemtemplate>
  203. </asp:repeater>
  204. <table width="97%" border="0" align="center" cellpadding="4" cellspacing="0" class="table">
  205. <tr class="title_link">
  206. <td class="title">-=&gt; 友情论坛</td>
  207. </tr>
  208. <tr>
  209. <td><a href="http://www.asp600.com" target="_blank">狂人论坛官方网站</a></td>
  210. </tr>
  211. </table>
  212. <table border="0" cellspacing="0" cellpadding="0">
  213. <tr>
  214. <td height="18"></td>
  215. </tr>
  216. </table>
  217. <table width="97%" border="0" align="center" cellpadding="4" cellspacing="0" class="table">
  218. <tr>
  219. <td class="title">-=&gt; 用户来访信息</td>
  220. </tr>
  221. <tr>
  222. <td>您的 IP 是:
  223. <%# Request.UserHostAddress %>
  224. , 操作系统:
  225. <%# User.Agent(2) %>
  226. , 浏 览 器:
  227. <%# User.Agent(1) %>
  228. </td>
  229. </tr>
  230. </table>
  231. <uc1:jianinclude5 id="Jianinclude51" runat="server"></uc1:jianinclude5>
  232. <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
  233. <tr>
  234. <td height="20" colspan="3"></td>
  235. </tr>
  236. <tr height="50">
  237. <td><img src="skin/dvbbs/images/forum_nonews.gif" width="24" height="24" hspace="5" align="absMiddle">没有新的帖子</td>
  238. <td align="center"><img src="skin/dvbbs/images/forum_isnews.gif" width="24" height="24" hspace="5" align="absMiddle">有新的帖子</td>
  239. <td align="right"><img src="skin/dvbbs/images/forum_lock.gif" width="24" height="24" hspace="5" align="absmiddle">被锁定的论坛</td>
  240. </tr>
  241. </table>
  242. <!--#include file="sitefloor.aspx" -->
  243. </body>
  244. </HTML>