📄 admin.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin.aspx.cs" Inherits="admin_Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>添加友情链接</title>
<LINK href="image/style.css" type=text/css rel=stylesheet>
</head>
<body>
<form id="form1" runat="server">
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#c4d8ed border=0>
<TBODY>
<TR>
<TD style="height: 27px"><IMG alt="" src="image/r_1.gif"></TD>
<TD width="100%" background=image/r_0.gif style="height: 5px"></TD>
<TD style="height: 27px"><IMG alt="" src="image/r_2.gif"></TD></TR>
<TR>
<TD></TD>
<TD>
<table class="toptable grid" cellspacing=1 cellpadding=1 align=center
border=1>
<tbody>
<tr>
<td class=category colspan="3" style="height: 22px; width: 743px;"> 系统管理员管理</td>
</tr>
<tr>
<td align="right" colspan="3" style="height: 23px; text-align: right; width: 743px;">
<asp:Button ID="btnadd" runat="server" Font-Bold="True" OnClick="Button3_Click"
Text="添加新用户" />
</td>
</tr>
<tr>
<td colspan="3" style="height: 23px; text-align: center; width: 743px;" align="right">
<strong><span style="color: #003373; background-color: #ffffff">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="UID"
OnRowDataBound="GridView1_RowDataBound" Width="611px" OnRowDeleting="GridView1_RowDeleting">
<FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
<Columns>
<asp:BoundField DataField="ID" HeaderText="管理员编号">
<ItemStyle ForeColor="ActiveCaption" />
</asp:BoundField>
<asp:BoundField DataField="name" HeaderText="管理员名称" />
<asp:BoundField DataField="UID" HeaderText="登录用户名">
<ItemStyle ForeColor="Red" HorizontalAlign="Center" />
</asp:BoundField>
<asp:HyperLinkField DataNavigateUrlFields="UID" DataNavigateUrlFormatString="editadminpwd.aspx?ID={0}"
HeaderText="修改密码" Text="修改密码" />
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
</Columns>
<RowStyle BackColor="White" ForeColor="#003399" />
<SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
<PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
<HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
</asp:GridView>
</span></strong></td>
</tr>
<tr>
<td colspan="3" align="right" style="text-align: center; width: 743px;">
<asp:Panel ID="adduser" runat="server" Height="120px" Visible="False" Width="400px">
<table>
<tr>
<td style="width: 93px; height: 22px">
管理员名称:</td>
<td style="width: 176px; height: 22px">
<asp:TextBox ID="tbname" runat="server"></asp:TextBox></td>
<td style="width: 194px; height: 22px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbname"
ErrorMessage="请输入管理员名称!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 93px; height: 22px">
登录帐号:</td>
<td style="width: 176px; height: 22px">
<asp:TextBox ID="tbuser" runat="server"></asp:TextBox></td>
<td style="width: 194px; height: 22px">
<asp:RequiredFieldValidator ID="UID" runat="server" ControlToValidate="tbuser" ErrorMessage="请输入新用户名!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 93px">
密 码:</td>
<td style="width: 176px">
<asp:TextBox ID="tbpass" runat="server" TextMode="Password"></asp:TextBox></td>
<td style="width: 194px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbpass"
ErrorMessage="请输入新密码!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 93px; height: 27px;">
新密码:</td>
<td style="width: 176px; height: 27px;">
<asp:TextBox ID="tbtwopass" runat="server" TextMode="Password"></asp:TextBox></td>
<td style="width: 194px; height: 27px;">
<asp:CompareValidator ID="compass" runat="server" ControlToCompare="tbpass" ControlToValidate="tbtwopass"
ErrorMessage="两次密码不一致!"></asp:CompareValidator></td>
</tr>
<tr>
<td style="width: 93px; height: 23px">
</td>
<td style="width: 176px; height: 23px">
<asp:Button ID="btnadduser" runat="server" OnClick="btnadduser_Click" Text="添加" Width="46px" />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="取消" Width="58px" />
</td>
<td style="width: 194px; height: 23px">
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
<td align="right" colspan="3" rowspan="4" style="width: 743px">
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td align="right" colspan="3" style="height: 23px; width: 743px;">
</td>
</tr>
</tbody>
</table>
</TD>
<TD></TD></TR>
<TR>
<TD><IMG alt="" src="image/r_4.gif"></TD>
<TD></TD>
<TD><IMG alt=""
src="image/r_3.gif"></TD></TR></TBODY></TABLE>
</form>
</BODY>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -