<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="admin_info.aspx.vb" Inherits="work_plan_web_deploy.admin_info" %>
<%@ Import namespace="work_plan_web_deploy"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD id="HEAD1" runat="server">
		<title>用户（员工）管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<LINK href="site_css.css" type="text/css" rel="stylesheet">
        <script type="text/javascript" src="js/myjs.js" language="javascript"></script>
	</HEAD>
	<body>
		<form id="Form1" runat="server">
			<div id="title">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td align="center" height="20">系统管理 — 用户（员工）管理</td>
					</tr>
				</table>
			</div>
			<div id="place">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td height="30">您当前的位置：系统高级管理 &gt;&gt; 用户（员工）管理</td>
					</tr>
				</table>
			</div>
			<div id="contentdiv">
				<table class="maintable" cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TBODY>
						<tr>
							<td vAlign="middle" align="left" height="30">
								<STRONG>用户数：</STRONG>
										<asp:label id="Label1" runat="server" ForeColor="Red">Label</asp:label>&nbsp;<asp:button id="Button1" runat="server" CausesValidation="False" Text="当页全选" Width="72px"></asp:button>&nbsp;<asp:button id="Button2" runat="server" CausesValidation="False" Text="取消选择" Width="72px"></asp:button>&nbsp;<asp:button 
                                    id="Button3" runat="server" ForeColor="Red" CausesValidation="False" Text="删除选中用户"
											Width="106px" ToolTip="此操作将删除选中栏目下的所有信息及其子栏目和信息"></asp:button>&nbsp;所属单位部门<STRONG><asp:TextBox 
                                    ID="dpmids" runat="server" ReadOnly="True" 
                                    onclick="showDIV(this,dwtrees);">所有部门|000000000</asp:TextBox>
                                    </STRONG>
                                    <br />
                                    <STRONG>添加新用户：</STRONG>帐号<asp:TextBox ID="ac" runat="server" Width="72px" style="width:72px;"></asp:TextBox>
                                密码<asp:TextBox ID="pwd" 
                                        runat="server" Width="60px" style="width:60px;"></asp:TextBox>
                                    姓名<asp:TextBox ID="name" 
                                        runat="server" Width="60px" style="width:60px;"></asp:TextBox>
                                    职务<asp:TextBox ID="zw" runat="server" Width="80px" style="width:80px;"></asp:TextBox>
                                    手机<asp:TextBox ID="tel" runat="server" Width="80px" style="width:80px;"></asp:TextBox>
                                邮箱<asp:TextBox ID="mailaddress" runat="server" Width="100px" style="width:100px;"></asp:TextBox>
                                权限<asp:TextBox ID="jurisdictions" onclick="showDIV(this,jdtree);" 
                                    runat="server" ReadOnly="True" Width="71px" style="width:71px;">点击选择</asp:TextBox>
                                                                    所属单位部门<asp:TextBox ID="dpmid" onclick="showDIV(this,dwtree);" 
                                    runat="server" ReadOnly="True" Width="118px" style="width:118px;">无|000000000</asp:TextBox>
                                                                    备注<asp:TextBox ID="about" 
                                        runat="server" Width="70px" style="width:70px;"></asp:TextBox>
                                权重<asp:TextBox ID="qz" 
                                        runat="server" Width="37px" style="width:37px;">0</asp:TextBox>
                                <asp:button id="Button4" runat="server" 
                                    Text="添加"></asp:button>
							    <STRONG><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                    ControlToValidate="ac" ErrorMessage="登录帐号不能为空"></asp:RequiredFieldValidator>
							<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="pwd" ErrorMessage="密码不能为空"></asp:requiredfieldvalidator>
							<asp:requiredfieldvalidator id="RequiredFieldValidator4" runat="server" 
                                    ControlToValidate="qz" ErrorMessage="权重不能为空"></asp:requiredfieldvalidator>
							<asp:regularexpressionvalidator id="RegularExpressionValidator3" runat="server" 
                                    ControlToValidate="qz" ErrorMessage="权重必须为整数"
								ValidationExpression="^\d+$"></asp:regularexpressionvalidator>
                               
                                </STRONG>
							                                    
							</td>
						</tr>
						<tr>
							<td>
                                <asp:GridView ID="GridView1" runat="server" BackColor="White" 
                                    BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                                    Width="100%" AutoGenerateColumns="False" GridLines="Vertical" 
                                    EnableModelValidation="True" AllowPaging="True" PageSize="15">
                                    <RowStyle ForeColor="Black" BackColor="#EEEEEE" Height="20px" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="选择">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="CheckBox1" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="ac" HeaderText="登录帐号" ReadOnly="True" />
                                        <asp:TemplateField HeaderText="加密密码">
                                            <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.pwd") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="pwd2" runat="server"  Width="80px" style="width:80px;"></asp:TextBox>
                                                <br>(不改请留空)
                                            </EditItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="姓名">
                                            <ItemTemplate>
                                                <asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="name2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>' Width="60px" style="width:60px;"></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="职务">
                                            <ItemTemplate>
                                                <asp:Label ID="Label33" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.zw") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="zw2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.zw") %>' Width="60px" style="width:60px;"></asp:TextBox>
                                            </EditItemTemplate>
                                            </asp:TemplateField> 
                                             <asp:TemplateField HeaderText="手机">
                                            <ItemTemplate>
                                                <asp:Label ID="Label17" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.tel") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="tel2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.tel") %>' Width="80px" style="width:80px;"></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateField>
                                         <asp:TemplateField HeaderText="邮箱">
                                            <ItemTemplate>
                                                <asp:Label ID="Label18" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mailaddress") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="mailaddress2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mailaddress") %>' Width="80px" style="width:80px;"></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="权限">
                                            <ItemTemplate>
                                                <asp:Label ID="Label4" runat="server" 
                                                    Text='鼠标放于此查看' 
                                                    ToolTip='<%# get_jurisdiction(DataBinder.Eval(Container, "DataItem.jurisdictions")) %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                               <asp:TextBox ID="jurisdictions2" runat="server" onclick="showDIV(this,jdtree2);" Text='点击选择'  ReadOnly="True"></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateField>
                                        
                                         <asp:TemplateField HeaderText="所属部门">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="dpmid2" runat="server" onclick="showDIV(this,dwtree2);" Text='<%# getdepartmentname2(DataBinder.Eval(Container, "DataItem.dpmid")) %>'  ReadOnly="True"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="Label5" runat="server" 
                                                    Text='<%# getdepartmentname(DataBinder.Eval(Container, "DataItem.dpmid")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        
                                         <asp:TemplateField HeaderText="备注">
                                            <ItemTemplate>
                                                <asp:Label ID="about1" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.about") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="about2" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.about") %>' Width="80px" style="width:80px;"></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="权重">
                                            <ItemTemplate>
                                                <asp:Label  ID="qz1" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.qz") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="qz2" runat="server" 
                                                    Text='<%# DataBinder.Eval(Container, "DataItem.qz") %>' Width="30px" style="width:30px;"></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="最后登录时间">
                                            <ItemTemplate>
                                                <asp:Label ID="Label6" runat="server" Text='<%# getlogintime(DataBinder.Eval(Container, "DataItem.ac")) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                                            <EditItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                                    CommandName="Update" Text="更新"></asp:LinkButton>
                                                &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                                    CommandName="Cancel" Text="取消"></asp:LinkButton>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                                    CommandName="Edit" Text="编辑"></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                     <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" 
                                        CssClass="pagerclass" />
                                    <EmptyDataTemplate>
                                        无用户信息，系统中必须存在一名超级用户，否则将失去系统管理权限！
                                    </EmptyDataTemplate>
                                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" 
                                        Height="20px" />
                                    <EditRowStyle Height="25px" />
                                    <AlternatingRowStyle BackColor="#DCDCDC" Height="20px" />
                                </asp:GridView>
                            </td>
						</tr>
					</TBODY></table>
			</div>
            <!--隐藏开始-->
			<div class="menudiv" id="dwtree">
            <asp:TreeView ID="fidTreeView" runat="server" ImageSet="XPFileExplorer" 
        NodeIndent="15" ShowLines="True">
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <NodeStyle Font-Names="Tahoma" ForeColor="Black" 
                HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
            </div>
			<!--隐藏结束-->
            <!--隐藏开始-->
			<div class="menudiv" id="dwtrees">
            <asp:TreeView ID="fidTreeViews" runat="server" ImageSet="XPFileExplorer" 
        NodeIndent="15" ShowLines="True">
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <NodeStyle Font-Names="Tahoma" ForeColor="Black" 
                HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
            </div>
			<!--隐藏结束-->
            <div class="menudiv" id="dwtree2">
            <asp:TreeView ID="fidTreeView2" runat="server" ImageSet="XPFileExplorer" 
        NodeIndent="15" ShowLines="True">
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <NodeStyle Font-Names="Tahoma" ForeColor="Black" 
                HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
            </div>
			<!--隐藏结束-->
            
            
             <!--隐藏开始-->
			<div class="menudiv" id="jdtree">
            <asp:TreeView ID="jurisdictionsTreeView" runat="server" ImageSet="Simple" 
        NodeIndent="15" ShowCheckBoxes="Leaf" ShowExpandCollapse="False">
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <NodeStyle Font-Names="Tahoma" ForeColor="Black" 
                HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
            </div>
			<!--隐藏结束-->
            
            <!--隐藏开始-->
			<div class="menudiv" id="jdtree2">
            <asp:TreeView ID="jurisdictionsTreeView2" runat="server" ImageSet="Simple" 
        NodeIndent="15" ShowCheckBoxes="Leaf" ShowExpandCollapse="False">
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <NodeStyle Font-Names="Tahoma" ForeColor="Black" 
                HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
            </div>
			<!--隐藏结束-->			
		</form>
	</body>
</HTML>