<%@ Register TagPrefix="uc1" TagName="NSManagerMiddle" Src="../NSControls/NSManagerMiddle.ascx"%>
<%@ Register TagPrefix="uc1" TagName="NSManagerHeader" Src="../NSControls/NSManagerHeader.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NSFooter" Src="../NSControls/NSFooter.ascx" %>
<%@ Page language="c#" Inherits="NScontract.Manager.Login" CodeFile="NSManagerLogin.aspx.cs" %>

<%@ Register Src="../NSControls/NSManagerTreeView.ascx" TagName="NSManagerTreeView"
    TagPrefix="uc2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Login</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
        <link href="../style.css" rel="stylesheet" type="text/css" />
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<uc1:nsmanagerheader id="NSManagerHeader1" runat="server"></uc1:nsmanagerheader>
			<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 40px; TOP: 64px; HEIGHT: 75px" cellSpacing="0"
				cellPadding="5" width="770" align="center" border="0">
				<TR>
					<TD style="WIDTH: 194px" vAlign="top" align="center"><FONT face="宋体">
                        <uc2:NSManagerTreeView ID="NSManagerTreeView1" runat="server" />
                    </FONT></TD>
					<TD vAlign="top" align="center"><FONT face="宋体"><asp:datagrid id="NSmyGrid" runat="server" OnPageIndexChanged="NSmyGrid_Page" AllowPaging="True"
								PageSize="5" AutoGenerateColumns="False" OnCancelCommand="NSmyGrid_cancel" OnDeleteCommand="NSmyGrid_delete" OnEditCommand="NSmyGrid_edit"
								OnUpdateCommand="NSmyGrid_update" DataKeyField="NSUserID" Width="100%">
								<Columns>
									<asp:BoundColumn DataField="NSUserID" HeaderText="用户ID"></asp:BoundColumn>
									<asp:BoundColumn DataField="NSNickName" HeaderText="登录名称"></asp:BoundColumn>
									<asp:BoundColumn DataField="NSUserPwd" ReadOnly="True" HeaderText="用户密码" DataFormatString="******"></asp:BoundColumn>
									<asp:BoundColumn DataField="NSUserName" HeaderText="真实姓名"></asp:BoundColumn>
									<asp:TemplateColumn HeaderText="管理权限">
										<ItemTemplate>
											<%# DataBinder.Eval(Container.DataItem,"NSNoAdmin").ToString()=="1"?"<font color=red>是</font>":"否" %>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
									<asp:ButtonColumn Text="删除" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
								<PagerStyle NextPageText="" HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
							</asp:datagrid></FONT></TD>
				</TR>
			</TABLE>
			<uc1:nsfooter id="NSFooter1" runat="server"></uc1:nsfooter></form>
	</body>
</HTML>
