index.aspx
资源名称:论坛源码.rar [点击查看]
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:4k
源码类别:
.net编程
开发平台:
C#
- <%@ Page Inherits="huang.index" Language="C#" src="cs/huang.cs" %>
- <%@ OutputCache Duration="5" VaryByParam="Fid1" %>
- <html>
- <head>
- <title></title>
- <link href="css/css.css" rel="stylesheet" type="text/css">
- </head>
- <BODY leftMargin=0 topMargin=0 marginheight="10" marginwidth="10" class=bodycss >
- <!--#include file="inc/top.dat"-->
- <table cellspacing="1" cellpadding="0" align=center width="95%" border=0 class=unnamed3 >
- <tr class=bar ><form name="" method="post" action="log.aspx"><td >
- 用户名:<input name="UserName" type="text" class="unnamed2" id="UserName" size="20" maxlength="20">
- 密码: <input name="Pass" type="password" class="unnamed2" id="Pass" size="20" maxlength="20">
- <input name="Cookies_Time" type="hidden" value=2>
- <input name="Submit" type="submit" class="btn" value="提交">
- </td></form></tr>
- </table>
- <br>
- <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class=tablemain>
- <%
- int Fid1;
- int Fid2;
- int n=0;
- String Fid1Name;
- String Fid2Name;
- String Fimg;
- String ban;
- String ReplyTotal;
- String TopicTotal;
- String des;
- while(dr_Index.Read())
- {
- Fid1=(int)dr_Index["Fid1"];
- Fid2=(int)dr_Index["Fid2"];
- Fid1Name=dr_Index["Fid1Name"].ToString();
- Fid2Name=dr_Index["Fid2Name"].ToString();
- Fimg=dr_Index["Fimg"].ToString();
- ban=dr_Index["ban"].ToString();
- ReplyTotal=dr_Index["ReplyTotal"].ToString();
- des=dr_Index["des"].ToString();
- TopicTotal=dr_Index["TopicTotal"].ToString();
- if (n==Fid1){
- Response.Write("<tr class=tablemain2><td width='10%' align=center class=tablemain1><img src='"+Fimg+"'></td><td colspan=2>");
- Response.Write("<table width='100%' border='0' align='center' cellpadding='0' cellspacing='10' class=ziti><tr>");
- Response.Write("<td width='70%'>");
- Response.Write("<a href='list.aspx?Fid1="+Fid1.ToString()+"&Fid2="+Fid2.ToString()+"&page=1"+"'>『<b>"+Fid2Name+"</b>』</a><br>"+des);
- Response.Write("</td>");
- Response.Write("<td width='30%'>");
- Response.Write("版主:"+ban+"<br>");
- Response.Write("主题:"+TopicTotal+"<br>");
- Response.Write("回复:"+ReplyTotal+"<br>");
- Response.Write("</td>");
- Response.Write("</tr></table>");
- Response.Write("</td></tr>");
- }
- else {
- Response.Write("<tr ><td colspan=3 class=tablemain3 height=26><b><img src='img/openf.gif'>"+Fid1Name+"</b></a></td></tr>");
- Response.Write("<tr class=tablemain2><td width='10%' class=tablemain1 align=center><img src='"+Fimg+"'></td><td colspan=2>");
- Response.Write("<table width='100%' border='0' align='center' cellpadding='0' cellspacing='10' class=ziti><tr>");
- Response.Write("<td width='70%'>");
- Response.Write("<a href='list.aspx?Fid1="+Fid1.ToString()+"&Fid2="+Fid2.ToString()+"&page=1"+"'>『<b>"+Fid2Name+" </b>』</a><br>"+des);
- Response.Write("</td>");
- Response.Write("<td width='30%'>");
- Response.Write("版主:"+ban+"<br>");
- Response.Write("主题:"+TopicTotal+"<br>");
- Response.Write("回复:"+ReplyTotal+"<br>");
- Response.Write("</td>");
- Response.Write("</tr></table>");
- Response.Write("</td></tr>");
- n=Fid1;
- }
- }
- dr_Index.Close();
- n2= DateTime.Now;
- n3=n2-n1;
- MyConn.Close();
- %>
- </table><br>
- <table cellspacing="1" cellpadding="0" align=center width="95%" border=0 class=unnamed3 >
- <tr class=bar ><td >
- 论坛连接:
- </td></tr>
- </table>
- <div align=center>
- <%
- Response.Write("脚本执行时间"+n3.TotalMilliseconds.ToString()+"毫秒");
- %>
- </div>
- <!--#include file="inc/bot.dat"-->
- </body>
- </html>