温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:小区物业管理系统源码
当前文件:
SmallHouse/admin/admin.aspx,打开代码结构图
SmallHouse/admin/admin.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin.aspx.cs" Inherits="admin_Default2" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head id="Head1" runat="server"> 7
<title>添加友情链接</title> 8
9
<LINK href="image/style.css" type=text/css rel=stylesheet> 10
</head> 11
<body> 12
<form id="form1" runat="server"> 13
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#c4d8ed border=0> 14
<TBODY> 15
<TR> 16
<TD style="height: 27px"><IMG alt="" src="image/r_1.gif"></TD> 17
<TD width="100%" background=image/r_0.gif style="height: 5px"></TD> 18
<TD style="height: 27px"><IMG alt="" src="image/r_2.gif"></TD></TR> 19
20
<TR> 21
<TD></TD> 22
<TD> 23
24
25
<table class="toptable grid" cellspacing=1 cellpadding=1 align=center 26
border=1> 27
<tbody> 28
<tr> 29
<td class=category colspan="3" style="height: 22px; width: 743px;"> 系统管理员管理</td> 30
</tr> 31
<tr> 32
<td align="right" colspan="3" style="height: 23px; text-align: right; width: 743px;"> 33
<asp:Button ID="btnadd" runat="server" Font-Bold="True" OnClick="Button3_Click" 34
Text="添加新用户" /> 35
36
</td> 37
</tr> 38
<tr> 39
<td colspan="3" style="height: 23px; text-align: center; width: 743px;" align="right"> 40
<strong><span style="color: #003373; background-color: #ffffff"> 41
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" 42
BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="UID" 43
OnRowDataBound="GridView1_RowDataBound" Width="611px" OnRowDeleting="GridView1_RowDeleting"> 44
<FooterStyle BackColor="#99CCCC" ForeColor="#003399" /> 45
<Columns> 46
<asp:BoundField DataField="ID" HeaderText="管理员编号"> 47
<ItemStyle ForeColor="ActiveCaption" /> 48
</asp:BoundField> 49
<asp:BoundField DataField="name" HeaderText="管理员名称" /> 50
<asp:BoundField DataField="UID" HeaderText="登录用户名"> 51
<ItemStyle ForeColor="Red" HorizontalAlign="Center" /> 52
</asp:BoundField> 53
<asp:HyperLinkField DataNavigateUrlFields="UID" DataNavigateUrlFormatString="editadminpwd.aspx?ID={0}" 54
HeaderText="修改密码" Text="修改密码" /> 55
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" /> 56
</Columns> 57
<RowStyle BackColor="White" ForeColor="#003399" /> 58
<SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" /> 59
<PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" /> 60
<HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" /> 61
</asp:GridView> 62
</span></strong></td> 63
</tr> 64
<tr> 65
<td colspan="3" align="right" style="text-align: center; width: 743px;"> 66
67
<asp:Panel ID="adduser" runat="server" Height="120px" Visible="False" Width="400px"> 68
<table> 69
<tr> 70
<td style="width: 93px; height: 22px"> 71
管理员名称:</td> 72
<td style="width: 176px; height: 22px"> 73
<asp:TextBox ID="tbname" runat="server"></asp:TextBox></td> 74
<td style="width: 194px; height: 22px"> 75
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbname" 76
ErrorMessage="请输入管理员名称!"></asp:RequiredFieldValidator></td> 77
</tr> 78
<tr> 79
<td style="width: 93px; height: 22px"> 80
登录帐号:</td> 81
<td style="width: 176px; height: 22px"> 82
<asp:TextBox ID="tbuser" runat="server"></asp:TextBox></td> 83
<td style="width: 194px; height: 22px"> 84
<asp:RequiredFieldValidator ID="UID" runat="server" ControlToValidate="tbuser" ErrorMessage="请输入新用户名!"></asp:RequiredFieldValidator></td> 85
</tr> 86
<tr> 87
<td style="width: 93px"> 88
密 码:</td> 89
<td style="width: 176px"> 90
<asp:TextBox ID="tbpass" runat="server" TextMode="Password"></asp:TextBox></td> 91
<td style="width: 194px"> 92
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbpass" 93
ErrorMessage="请输入新密码!"></asp:RequiredFieldValidator></td> 94
</tr> 95
<tr> 96
<td style="width: 93px; height: 27px;"> 97
新密码:</td> 98
<td style="width: 176px; height: 27px;"> 99
<asp:TextBox ID="tbtwopass" runat="server" TextMode="Password"></asp:TextBox></td> 100
<td style="width: 194px; height: 27px;"> 101
<asp:CompareValidator ID="compass" runat="server" ControlToCompare="tbpass" ControlToValidate="tbtwopass" 102
ErrorMessage="两次密码不一致!"></asp:CompareValidator></td> 103
</tr> 104
<tr> 105
<td style="width: 93px; height: 23px"> 106
</td> 107
<td style="width: 176px; height: 23px"> 108
<asp:Button ID="btnadduser" runat="server" OnClick="btnadduser_Click" Text="添加" Width="46px" /> 109
110
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="取消" Width="58px" /> 111
</td> 112
<td style="width: 194px; height: 23px"> 113
</td> 114
</tr> 115
</table> 116
</asp:Panel> 117
</td> 118
</tr> 119
<tr> 120
<td align="right" colspan="3" rowspan="4" style="width: 743px"> 121
</td> 122
</tr> 123
<tr> 124
</tr> 125
<tr> 126
</tr> 127
<tr> 128
</tr> 129
<tr> 130
<td align="right" colspan="3" style="height: 23px; width: 743px;"> 131
</td> 132
</tr> 133
</tbody> 134
</table> 135
136
</TD> 137
<TD></TD></TR> 138
139
140
141
142
<TR> 143
<TD><IMG alt="" src="image/r_4.gif"></TD> 144
<TD></TD> 145
<TD><IMG alt="" 146
src="image/r_3.gif"></TD></TR></TBODY></TABLE> 147
</form> 148
</BODY> 149
150
151
</html> 152
153



