<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="Admin_User_UserList"
    EnableViewState="true" %>

<%@ Register Assembly="SnSee.Control" Namespace="SnSee.Control" 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 runat="server">
    <title></title>
    <link href="../Stylesheet/Main.css" rel="stylesheet" type="text/css" />

    <script src="../Javascript/Common.js" type="text/javascript" language="JavaScript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <ul class="tool">
        <li>
            <div class="tool_back">
                <a href="javaScript:history.back(-1)">返回上一步</a></div>
        </li>
    </ul>
    <div class="main_body">
        <h1>
            <asp:Literal ID="litTitle" runat="server"></asp:Literal>用户管理</h1>
        <div class="ht2">
        </div>
        <div class="item">
            <ul class="item_list">
                <li class="item_list_cell_ac margin_left_2px" runat="server" id="item0">
                    <div>
                        用户列表
                    </div>
                </li>
            </ul>
        </div>
        <div class="ht2">
        </div>
        <div class="divbox">
            <div class="padding8px">
                <asp:Panel ID="pnlSearch" runat="server" DefaultButton="lbtnSearch">
                    <b>搜索：</b>用户等级：<asp:DropDownList ID="dropLevelSearch" runat="server" DataTextField="LevelName"
                        DataValueField="ID">
                    </asp:DropDownList>
                    &nbsp;用户名称：<asp:TextBox ID="txtUserName" runat="server" Width="100px"></asp:TextBox>
                    &nbsp;用户姓名：<asp:TextBox ID="txtFullName" runat="server" Width="160px"></asp:TextBox>
                    <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn_bg" OnClick="lbtnSearch_Click">搜索用户</asp:LinkButton></asp:Panel>
            </div>
        </div>
        <div class="ht2">
        </div>
        <div class="divbox2">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbbox">
                <tr>
                    <th width="3%" class="input_no">
                        <input id="Checkbox1" type="checkbox" onclick="UnSelectCheckBox(this,'chkSelect')" />
                    </th>
                    <th width="8%">
                        用户名称
                    </th>
                    <th width="8%">
                        用户等级
                    </th>
                    <th width="8%">
                        姓名
                    </th>
                    <th width="4%">
                        性别
                    </th>
                    <th width="10%">
                        电话
                    </th>
                    <th width="10%">
                        传真
                    </th>
                    <th width="12%">
                        邮箱
                    </th>
                    <th>
                        地址
                    </th>
                    <th width="18%">
                        操作
                    </th>
                </tr>
                <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td align="center" class="input_no">
                                <asp:Literal ID="litID" runat="server" Text='<%#Eval("ID")%>' Visible="false"></asp:Literal>
                                <asp:CheckBox ID="chkSelect" runat="server" />
                            </td>
                            <td align="center">
                                <a href="UserDetail.aspx?ID=<%#Eval("ID")%>">
                                    <%#Eval("UserName")%></a>
                            </td>
                            <td align="center">
                                <asp:Literal ID="litLevel" runat="server"></asp:Literal>
                            </td>
                            <td align="center">
                                <%#Eval("FullName")%>
                            </td>
                            <td align="left">
                                <%#Eval("Gender")!=null && Eval("Gender")!=DBNull.Value && Eval("Gender").ToString()=="1" ? "女":"男"%>
                            </td>
                            <td align="left">
                                <%#Eval("Tel")%>
                            </td>
                            <td align="left">
                                <%#Eval("Fax")%>
                            </td>
                            <td align="left">
                                <%#Eval("Email")%>
                            </td>
                            <td align="left">
                                <%#Eval("Address")%>
                            </td>
                            <td align="center">
                                <asp:DropDownList ID="dropLevel" runat="server" DataTextField="LevelName" DataValueField="ID">
                                </asp:DropDownList>
                                <asp:LinkButton ID="lbtnState1" runat="server" CssClass="btn_bg" ToolTip="确定已选择操作"
                                    CommandArgument='<%#Eval("ID")%>' CommandName="Level_Command" OnClientClick="return confirm('确认将当前用户置为当前等级？')">确定</asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <div class="ht2">
        </div>
        <div class="padding4px">
            <input type="button" id="Button7" value="全选" onclick="SelectCheckBox(this, 'chkSelect',1)"
                class="btn_bg2" />
            <input type="button" id="Button8" value="反选" onclick="UnSelectCheckBox(this,'chkSelect')"
                class="btn_bg2" />
            <input type="button" id="Button9" value="取消选择" onclick="SelectCheckBox(this, 'chkSelect',2)"
                class="btn_bg2" />
            |
            <asp:DropDownList ID="dropLevel" runat="server" DataTextField="LevelName" DataValueField="ID">
            </asp:DropDownList>
            <asp:Button ID="btnAllLevel" runat="server" Text="确定已选择操作" CssClass="btn_bg2" OnClientClick="return confirm('确认将当前选中用户置为当前等级？')"
                ToolTip="将当前选中用户置为当前等级" Width="112px" OnClick="btnAllLevel_Click" />
        </div>
        <div class="webpage">
            <cc1:WebPage ID="WebPage1" runat="server" PageSize="20">
            </cc1:WebPage>
        </div>
        <div class="ht">
        </div>
        <div class="ht">
        </div>
        <ul class="ac_intro" runat="server" id="boxPageExplain">
            <li class="ac_intro_title">说明：</li>
            <li class="ac_intro_item">1. 用户管理。</li>
        </ul>
    </div>
    </form>
</body>
</html>
