<%@ page language="C#" enableeventvalidation="false" autoeventwireup="true" inherits="userlist, putonggan_deploy" %>

<!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 runat="server">
    <title></title>
    <style type="text/css">


.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
        
        a:link                       {font-size: 9pt;color: #2F6589; text-decoration: none;}
            .style7
         {
             color: #03515d;
             font-size: 12px;
             width: 373px;
         }
    .STYLE4 {
	color: #03515d;
	font-size: 12px;
}
        
        .style8
        {
            color: #03515d;
            font-size: 12px;
            width: 49px;
        }
        
        .style9
        {
            width: 166px;
        }
        .style10
        {
            width: 136px;
        }
        .style11
        {
            width: 101px;
        }
        
        </style>
    <link href="../css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" 
          background="../images/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30">
            <img src="../images/tab_03.gif" 
                width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="232" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="../images/tb.gif" width="16" 
                        height="16" /></div></td>
                <td width="95%" class="STYLE1"><span class="STYLE3">你当前的位置</span>：<asp:SiteMapPath 
                        ID="SiteMapPath1" runat="server">
                    </asp:SiteMapPath>
                  </td>
              </tr>
            </table></td>
            <td width="21" align="middle" class="style8"><span class="center_title_1">&nbsp;<asp:CheckBox ID="CheckBox2" runat="server" Text="全选" 
                            oncheckedchanged="CheckBox2_CheckedChanged"  AutoPostBack="True" />
            </span></td>
            <td width="25" align="middle" class="STYLE4">
                <img height="14" src="../images/001.gif" 
      width="14" /></td>
            <td class="STYLE4" width="29">
                <asp:LinkButton ID="lbadd" runat="server" Text="新增" onclick="lbadd_Click">新增</asp:LinkButton>
              </td>
            <td width="28" align="middle" class="STYLE4">
                <img height="14" src="../images/083.gif" 
      width="14" /></td>
            <td class="STYLE4" width="27">
                        <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click" OnClientClick="return confirm('确定删除吗？无法恢复！')">删除</asp:LinkButton>
                        </td>
            <td width="21" align="middle" class="STYLE4">
                <img height="14" src="../images/accept.gif" 
      width="14" /></td>
            <td class="STYLE4" width="34">
                <asp:LinkButton ID="LBsh" runat="server" onclick="LBsh_Click" OnClientClick="return confirm('确定通过审核吗？')">审核</asp:LinkButton>
              </td>
            <td width="21" align="middle" class="STYLE4">
                <img height="14" src="../images/warning.gif" 
      width="14" /></td>
            <td class="STYLE4" width="31">
                <asp:LinkButton ID="LBws" runat="server" onclick="LBws_Click" OnClientClick="return confirm('确定不通过审核吗？')">未审</asp:LinkButton>
              </td>
            <td width="20" align="middle" class="STYLE4">
                <img height="14" src="../images/lock.gif" 
      width="14" /></td>
            <td class="STYLE4" width="35">
                <asp:LinkButton ID="LBsuo" runat="server" onclick="LBsuo_Click" OnClientClick="return confirm('确定锁定用户吗？')">锁定</asp:LinkButton>
              </td>
            <td width="15" align="middle" class="STYLE4">
                <img height="14" src="../images/unlock.gif" 
      width="14" /></td>
            <td class="STYLE4" width="25">
                <asp:LinkButton ID="LBjie" runat="server" onclick="LBjie_Click" OnClientClick="return confirm('确定解锁吗？')">解锁</asp:LinkButton>
              </td>
          </tr>
        </table></td>
        <td width="16">
            <img src="../images/tab_07.gif" 
                width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" 
              background="../images/tab_12.gif">&nbsp;</td>
        <td>
    <div>
         <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate> <table width="100%"  border="0" bgcolor="#B8E4FF" class="STYLE1">
            <tr bgcolor="#FFFFFF">
              <td class="style11">姓名</td>
              <td class="style9">
                  <asp:TextBox ID="userxm" runat="server" Width="109px"></asp:TextBox>
                </td>
              <td>性别</td>
              <td class="style10"><asp:DropDownList ID="xb" runat="server">
                      <asp:ListItem Value="">不限</asp:ListItem>
                      <asp:ListItem>男</asp:ListItem>
                      <asp:ListItem>女</asp:ListItem>
                  </asp:DropDownList>
                </td>
              <td>部门</td>
              <td><asp:DropDownList ID="bumen" runat="server" AppendDataBoundItems="True">
                  <asp:ListItem Value="">不限</asp:ListItem>
                  </asp:DropDownList>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
              <td class="style11">职务</td>
              <td class="style9"><asp:DropDownList ID="zhiwu" runat="server" AppendDataBoundItems="True">
              <asp:ListItem Value="">不限</asp:ListItem>
                  </asp:DropDownList>
                  </td>
              <td>岗位</td>
              <td class="style10"><asp:DropDownList ID="gangwei" runat="server" 
                      AppendDataBoundItems="True">
              <asp:ListItem Value="">不限</asp:ListItem>
                  </asp:DropDownList>
                  </td>
              <td colspan="2">
                  <asp:Button ID="ButtonSel" runat="server" Text="搜索" onclick="ButtonSel_Click"/>
                  <span class="center_title_1"><span class="STYLE1">
                &nbsp;<input type="reset" name="Submit" value="重 置" />

              </span></span></td>
              </tr>
          </table>
                <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
                    AssociatedUpdatePanelID="UpdatePanel1">
                    <ProgressTemplate>
                        <div align="center">
                            <asp:Image ID="images1" runat="server" ImageUrl="~/images/loading.gif" />
                        </div>
                    </ProgressTemplate>
                </asp:UpdateProgress>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" EmptyDataText="没有或没有符合条件的用户信息！" 
            Font-Size="Small"  
            OnRowDeleting="GridView1_RowDeleting" Width="100%" CssClass="GridViewStyle" 
            >
            <Columns>
                <asp:TemplateField HeaderText="全选">
                   <ItemTemplate>
                   <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                 </asp:TemplateField>
                <asp:BoundField DataField="id" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" />
                <asp:BoundField DataField="xm" HeaderText="用户名" />
                <asp:BoundField DataField="userxm" HeaderText="姓名" />
                <asp:BoundField DataField="xb" HeaderText="性别" />
                <asp:BoundField DataField="bumen" HeaderText="部门" />
                <asp:BoundField DataField="zhiwu" HeaderText="职务" />
                <asp:BoundField DataField="gangwei" HeaderText="岗位" />
                <asp:TemplateField HeaderText="审核">
                    <ItemTemplate>
                    <%# Eval("shenhe").ToString()=="Y"?"<font color=green>已审</font>":"<font color=red>未审</fong>" %>
                    </ItemTemplate>
                 </asp:TemplateField>   
                   <asp:TemplateField HeaderText="锁定"> 
                     <ItemTemplate> 
                    <%# Eval("locked").ToString()=="N"?"<font color=green>正常</font>":"<font color=red>锁定</fong>" %>
                    </ItemTemplate>  
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编辑">
                   <ItemTemplate>
                   <a href="useredit.aspx?id=<%# Eval("id") %>">编辑</a>
                    </ItemTemplate>
                 </asp:TemplateField>
                <asp:CommandField HeaderText="操作" ShowDeleteButton="True" 
                    ShowHeader="True"  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除用户吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; "/>
            </Columns>
            <HeaderStyle CssClass="HeaderStyle" />
            <PagerStyle CssClass="PagerStyle" /> 
            <RowStyle CssClass="RowStyle" />
            <PagerSettings Visible=false />
        </asp:GridView>
    </div>        </ContentTemplate>
            </asp:UpdatePanel>
            
          </td>
        <td width="8" 
              background="../images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" 
          background="../images/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35">
            <img src="../images/tab_18.gif" 
                width="12" height="35" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="style7">&nbsp;&nbsp;<asp:Label ID="LblRecordCount" runat="server"></asp:Label>
                                            <span lang="zh-cn">每页<asp:DropDownList ID="pgsize" runat="server" 
                                                AutoPostBack="True" onselectedindexchanged="pgsize_SelectedIndexChanged">
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem Selected="True">20</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                                <asp:ListItem>40</asp:ListItem>
                                                <asp:ListItem>50</asp:ListItem>
                                                <asp:ListItem>100</asp:ListItem>
                                                <asp:ListItem>150</asp:ListItem>
                                                <asp:ListItem>200</asp:ListItem>
                                                <asp:ListItem>300</asp:ListItem>
                                                <asp:ListItem>400</asp:ListItem>
                                                <asp:ListItem>500</asp:ListItem>
                                            </asp:DropDownList>
                                            条，</span><asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
                        <asp:Label ID="LblPageCount" runat="server"></asp:Label>
                        </td>
            <td class="STYLE4"><asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick"
                            runat="server">首 页</asp:LinkButton>&nbsp;<asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton>
                        <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton>
                        <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton>
                        
跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> 
</asp:DropDownList>页</td>
          </tr>
        </table></td>
        <td width="16">
            <img src="../images/tab_20.gif" 
                width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
</table>

        

    </div>
    </form>
</body>
</html>
