温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:WO@BIZ第一季1.2版源码
当前文件:
WOBIZ/admin/Ranks.aspx,打开代码结构图
WOBIZ/admin/Ranks.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ranks.aspx.cs" Inherits="admin_Ranks" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
<html xmlns="http://www.w3.org/1999/xhtml"> 5
<head runat="server"> 6
<title>无标题页</title> 7
<link href="Css/admin.css" rel="stylesheet" type="text/css" /> 8
</head> 9
<body> 10
<form id="form1" runat="server"> 11
<div> 12
<table width="100%" border="0" cellspacing="0" cellpadding="0"> 13
<tr> 14
<td width="10"> 15
<img src="Images/z-top_left.gif" width="10" height="33"></td> 16
<td valign="bottom" background="Images/z-center_center.gif"> 17
<table width="100" border="0" cellspacing="0" cellpadding="0"> 18
<tr> 19
<td width="3"> 20
<img src="Images/left1.gif" width="3" height="29"></td> 21
<td background="Images/center1.gif"> 22
<div align="center"> 23
<strong>用户管理</strong></div> 24
</td> 25
<td width="3"> 26
<img src="Images/right1.gif" width="3" height="29"></td> 27
</tr> 28
</table> 29
</td> 30
<td width="5"> 31
<img src="Images/z-top_right.gif" width="13" height="33"></td> 32
</tr> 33
<tr> 34
<td background="Images/z-center_left.gif"> 35
</td> 36
<td valign="top" bgcolor="#FFFFFF"> 37
<div id="incontent-post"> 38
<table width="100%" border="0" cellspacing="0" cellpadding="0"> 39
<tr> 40
<td width="220" class="postbg"> 41
当前位置:等级设置 42
</td> 43
</tr> 44
<tr> 45
<td> 46
<asp:Button ID="Button1" runat="server" CssClass="button" OnClick="Button1_Click" 47
Text="添加新等级" /></td> 48
</tr> 49
</table> 50
<table width="100%" border="0" cellspacing="0" cellpadding="0"> 51
<tr> 52
<td style="height: 146px"> 53
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" 54
DataKeyNames="id" OnRowCommand="GridView1_RowCommand"> 55
<Columns> 56
<asp:BoundField DataField="id" HeaderText="编号"> 57
<ItemStyle HorizontalAlign="Center" Width="10%" /> 58
</asp:BoundField> 59
<asp:BoundField DataField="rankname" HeaderText="名称"> 60
<ItemStyle HorizontalAlign="Center" Width="30%" /> 61
</asp:BoundField> 62
<asp:BoundField DataField="jifen" HeaderText="最低积分"> 63
<ItemStyle HorizontalAlign="Center" Width="10%" /> 64
</asp:BoundField> 65
<asp:TemplateField HeaderText="图标路径"> 66
<ItemStyle HorizontalAlign="Center" Width="30%" /> 67
<ItemTemplate> 68
<img src='../<%# Eval("rankimg") %>' alt="" /> 69
</ItemTemplate> 70
</asp:TemplateField> 71
<asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="AddRank.aspx?id={0}&flag=Edit" 72
HeaderText="修改" Text="修改"> 73
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" /> 74
</asp:HyperLinkField> 75
<asp:ButtonField HeaderText="删除" CommandName="listdelete" Text="<div id="de" onclick="JavaScript:return confirm('确定删除吗?')"><image src='images/delIcon.gif' border=0 alt="删除"/></div>"> 76
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" /> 77
</asp:ButtonField> 78
</Columns> 79
</asp:GridView> 80
</td> 81
</tr> 82
</table> 83
</div> 84
</td> 85
<td background="Images/z-center_right.gif"> 86
</td> 87
</tr> 88
</table> 89
</div> 90
</form> 91
</body> 92
</html> 93



