<%@ page language="C#" autoeventwireup="true" inherits="UserInfo_UserLFRM, App_Web_rbxcxpwt" theme="Themes" stylesheettheme="Themes" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<!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>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 129px;
        }
        .style3
        {
            width: 272px;
        }
        .style4
        {
            width: 75px;
        }
        .style5
        {
            width: 133px;
        }
    </style>
           <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>

      <script type="text/javascript" src="../Js/jquery.js"></script>

    <script type="text/javascript" src="../js/vtip/vtip.js"></script>

    <link rel="stylesheet" type="text/css" href="../js/vtip/css/vtip.css" />
</head>
<body>
<div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt;color:Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置： 用户及权限管理 > 用户管理 > 用户账号管理</span>
            </td>
        </tr>
        <tr>
                <td class="r_top_box">
                    <table cellspacing="0" cellpadding="5" class="r_top_title_box"> 
            <tr>
                <td width="58px" align="right">
      <asp:Label ID="lbl1" runat="server" Text="机构："></asp:Label>
                </td>
                <td width="200px">
        <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" 
            OnSelectedIndexChanged="ddlDepartment_SelectedIndexChanged" Width="200px">
        </asp:DropDownList>
                </td>
                <td align="right" width="70px">
      <asp:Label ID="lbl2" runat="server" Text="中文名："></asp:Label>
                </td>
                <td width="100px">
                    <asp:TextBox ID="txtUser" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" 
            Text="查询" />
    &nbsp;<asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="新增用户" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table></td></tr>
        <tr>
                <td class="margintop5">
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td>
   <asp:GridView ID="gvUser" DataKeyNames="id" runat="server" AutoGenerateColumns="False"
            OnRowCommand="gvUser_RowCommand" AllowPaging="True" OnRowDataBound="gvUser_RowDataBound">
            <Columns>
                <%--<asp:TemplateField>
                    <HeaderTemplate>
                        全选<input id="chkSelAll" name="chkSelAll" onclick="javascript:CheckAll();" type="checkbox">
                    </HeaderTemplate>
                    <HeaderStyle Width="50px" />
                    <ItemTemplate>
                        <asp:CheckBox ID="chkSel" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>--%>
                <asp:BoundField DataField="loginname" HeaderText="登录名" />
                <asp:TemplateField HeaderText="中文名">
                   
                    <ItemTemplate>

                         <a class="vtip" title="<%#  "<img height=160 width=120 onerror=this.src='../images/null.jpg'  src="+"../Upload/UserPhoto/"+Eval("id")+".jpg  />" %>">
                                                <asp:Label ID="usercname" runat="server" Style="cursor: hand" Text='<%# Bind("usercname") %>'
                                                    Visible="true"></asp:Label></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="userename" HeaderText="英文名" Visible="False" />
                <asp:BoundField DataField="sex" HeaderText="性别" Visible="False" />
                <asp:CheckBoxField DataField="isactive" HeaderText="是否有效" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%# Eval("id") %>'
                            CommandName="upd" Text="编辑"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnResetPWD" runat="server" CausesValidation="False" CommandArgument='<%# Eval("id") %>'
                            CommandName="repwd" Text="还原密码"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerSettings Visible="False" />
            <EmptyDataTemplate>
                没有您要查询的数据...
            </EmptyDataTemplate>
        </asp:GridView>
         </td>
                        </tr>
                        <tr>
                            <td class="page_bg_left">
         <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager"
                                PageSize="10" FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;"
                                LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页" ShowCustomInfoSection="Left"
                                CustomInfoTextAlign="Left" ShowInputBox="Always">
                            </cc1:AspNetPager>
        </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
       <script type="text/javascript">
       $("#loading").fadeOut()
</script>
</body>
</html>

