温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:WO@BIZ第一季1.2版源码
当前文件:
WOBIZ/admin/Notice.aspx,打开代码结构图
WOBIZ/admin/Notice.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Notice.aspx.cs" Inherits="admin_Notice" %> 2
3
<%@ Register TagPrefix="cc1" Namespace="WoNextDll.commen.PageInfo" Assembly="WoNextDll" %> 4
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6
7
<html xmlns="http://www.w3.org/1999/xhtml" > 8
<head runat="server"> 9
<title>公告管理</title> 10
<link href="Css/admin.css" rel="stylesheet" type="text/css" /> 11
</head> 12
<body> 13
<form id="form1" runat="server"> 14
<div> 15
<table width="100%" border="0" cellspacing="0" cellpadding="0"> 16
<tr> 17
<td width="10"><img src="Images/z-top_left.gif" width="10" height="33"></td> 18
<td valign="bottom" background="Images/z-center_center.gif"><table width="100" border="0" cellspacing="0" cellpadding="0"> 19
<tr> 20
<td width="3"><img src="Images/left1.gif" width="3" height="29"></td> 21
<td background="Images/center1.gif"><div align="center"><strong>基本设置</strong></div></td> 22
<td width="3"><img src="Images/right1.gif" width="3" height="29"></td> 23
</tr> 24
</table></td> 25
<td width="5"><img src="Images/z-top_right.gif" width="13" height="33"></td> 26
</tr> 27
<tr> 28
<td background="Images/z-center_left.gif"> </td> 29
<td height="470" valign="top" bgcolor="#FFFFFF"><DIV id=incontent-post> 30
<table width="100%" border="0" cellspacing="0" cellpadding="0"> 31
<tr> 32
<td class="postbg">当前位置:公告管理<asp:Label ID="Label1" runat="server" Visible="False"></asp:Label></td> 33
</tr> 34
<tr> 35
<td width="120" height="30"> 36
<asp:Button ID="Button1" runat="server" CssClass="button" OnClick="Button1_Click" 37
Text="添加新公告" /></td> 38
</tr> 39
<tr> 40
<td> </td> 41
</tr> 42
</table> 43
<table width="100%" border="0" cellspacing="0" cellpadding="0"> 44
45
<tr><td align="center"><asp:GridView ID="Dlist" runat="server" Width="100%" AutoGenerateColumns="False" DataKeyNames="id" OnRowDataBound="Dlist_RowDataBound" OnRowCommand="Dlist_RowCommand"> 46
<Columns> 47
<asp:BoundField DataField="id" HeaderText="编号" > 48
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" /> 49
</asp:BoundField> 50
<asp:BoundField DataField="title" HeaderText="标题" > 51
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="45%" /> 52
</asp:BoundField> 53
<asp:BoundField DataField="orderid" HeaderText="排序" /> 54
<asp:BoundField DataField="starttime" HeaderText="开始时间" DataFormatString="{0:D}" HtmlEncode="False" > 55
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" /> 56
</asp:BoundField> 57
<asp:BoundField DataField="endtime" HeaderText="结束时间" DataFormatString="{0:D}" HtmlEncode="False" > 58
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" /> 59
</asp:BoundField> 60
<asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="AddNote.aspx?id={0}&flag=Edit" HeaderText="修改" 61
Text="修改" > 62
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" /> 63
</asp:HyperLinkField> 64
<asp:ButtonField HeaderText="删除" CommandName="listdelete" 65
Text="<div id="de" onclick="JavaScript:return confirm('确定删除吗?')"><image src='images/delIcon.gif' border=0 alt="删除"/></div>" > 66
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> 67
</asp:ButtonField> 68
</Columns> 69
</asp:GridView></td></tr> 70
<tr><td align="left"><br /><cc1:jpage id="Jpage1" runat="server" borderstyle="Dashed" jpagesize="10" width="100%" Jcachetime="0"></cc1:jpage></td></tr> 71
</table> 72
</DIV></td> 73
<td background="Images/z-center_right.gif"> </td> 74
</tr> 75
</table> 76
</div> 77
</form> 78
</body> 79
</html> 80



