admin_add.aspx
资源名称:论坛源码.rar [点击查看]
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:2k
源码类别:
.net编程
开发平台:
C#
- <%@ Page Inherits="huang.admin_add" Language="C#" src="cs/huang.cs" %>
- <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=ziti >
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class=ziti bordercolordark="#0000FF" bordercolor="#0000FF" bordercolorlight="#FFFFFF" >
- <%
- 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();
- LastFid1=dr_Index["Fid1"].ToString();
- if (n==Fid1){
- Response.Write("<tr ><td width='5%' align=center></td><td colspan=2>");
- Response.Write("<a href='list.aspx?Fid1="+Fid1.ToString()+"&Fid2="+Fid2.ToString()+"&page=1"+"'><b>1"+Fid2Name+"</b></a><br>");
- Response.Write("</td></tr>");
- }
- else {
- Response.Write("<tr ><td colspan=3 bgcolor=#E8F3F9 ><b>"+Fid1Name+"</b></a><a href='admin_do1.aspx?action=addclass1&Fid1="+Fid1+"&Fid1Name="+Fid2Name+"'><font color=red>[添加版块]</font></a></td></tr>");
- Response.Write("<tr ><td width='5%' align=center></td><td colspan=2>");
- Response.Write("<a href='list.aspx?Fid1="+Fid1.ToString()+"&Fid2="+Fid2.ToString()+"&page=1"+"'><b>"+Fid2Name+"</b></a><br>");
- Response.Write("</td></tr>");
- n=Fid1;
- }
- }
- dr_Index.Close();
- n2= DateTime.Now;
- n3=n2-n1;
- MyConn.Close();
- %>
- <tr ><form name="form1" method="get" action="admin_do1.aspx?action=addclass1" ><td colspan=3 >
- <input type="text" name="Fid1Name">
- <input name="Fid1" type="hidden" value="<%=Int32.Parse(LastFid1)+1%>" >
- <input type="submit" name="Submit" value="添加一级分类" >
- </td></form></tr>
- </table>
- </body>
- </html>