<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="usermanage.aspx.cs" Inherits="Focus.Admin.usermanage" %>

<%@ Register TagPrefix="cc1" Namespace="Focus.Control" Assembly="Focus.Control" %>
<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="styles/datagrid.css" type="text/css" rel="stylesheet" />
    <link href="styles/calendar.css" type="text/css" rel="stylesheet" />
    <link href="styles/fntmanager.css" type="text/css" rel="stylesheet" />
    <link href="styles/modelpopup.css" type="text/css" rel="stylesheet" />

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

    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <form id="form1" runat="server">
    <div class="ManagerForm">
        <fieldset>
            <legend style="background: url(images/icons/GroupEditing.gif) no-repeat 3px 20%;">搜索用户</legend>
            <asp:Panel ID="searchtable" runat="server" Visible="true">
                <table id="Table1" class="table1" cellspacing="0" cellpadding="4" width="100%" border="0">
                    <tr>
                        <td class="td1" width="15%">
                            用户名:
                        </td>
                        <td class="td1" width="35%">
                            <cc1:TextBox ID="Username" runat="server" RequiredFieldType="暂无校验" Width="200"></cc1:TextBox>
                        </td>
                        <td class="td2" width="15%">
                            用 户 组:
                        </td>
                        <td class="td2" width="35%">
                            <cc1:DropDownTreeList ID="UserGroup" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" width="15%">
                            姓 名:
                        </td>
                        <td class="td1" width="35%">
                            <cc1:TextBox ID="Realname" runat="server" RequiredFieldType="暂无校验" Width="200"></cc1:TextBox>
                            <br />
                            模糊查找
                            <input id="islike" type="checkbox" value="1" name="cins" runat="server" />
                        </td>
                        <td class="td2">
                            最后登陆日期:
                        </td>
                        <td class="td2">
                            从<cc1:Calendar ID="joindateStart" runat="server" ReadOnly="False" ScriptPath="js/calendar.js">
                            </cc1:Calendar>
                            到<cc1:Calendar ID="joindateEnd" runat="server" ReadOnly="False" ScriptPath="js/calendar.js">
                            </cc1:Calendar>
                            <br />
                            使用日期查找<input id="ispostdatetime" type="checkbox" value="1" name="cins" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="4">
                            <cc1:Button ID="Search" runat="server" Text="开始搜索" designtimedragdrop="247" OnClick="Search_Click">
                            </cc1:Button>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <p>
                <cc1:Button ID="ResetSearchTable" OnClick="ResetSearchTable_Click" runat="server"
                    Text="重设搜索条件" Visible="False"></cc1:Button></p>
        </fieldset>
    </div>
    <div class="Navbutton" style="width: 98%;">
        <table cellspacing="1" cellpadding="4" align="left" class="table1">
            <tr>
                <td align="left">
                    <input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall"
                        id="chkall" />全选/取消全选 &nbsp;
                    <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="images/del.gif"
                        OnClick="DelRec_Click"></cc1:Button>&nbsp;
                    <button type="button" class="ManagerButton" onclick="window.location='useradd.aspx';">
                        <img src="images/submit.gif" />
                        添 加
                    </button>
                </td>
            </tr>
        </table>
    </div>
    <cc1:DataGrid ID="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged"
        PageSize="20">
        <Columns>
            <asp:TemplateColumn HeaderText="选择">
                <ItemTemplate>
                    <input id="uid" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.uid").ToString() %>"
                        name="uid" />
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="uid" SortExpression="uid" HeaderText="uid" Visible="false">
            </asp:BoundColumn>
            <asp:TemplateColumn HeaderText="用户名">
                <ItemTemplate>
                    <a href="../userinfo.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString() %>"
                        target="_blank">
                        <%# DataBinder.Eval(Container, "DataItem.username").ToString()%></a>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="groupname" HeaderText="所属用户组"></asp:BoundColumn>
            <asp:BoundColumn DataField="realname" HeaderText="姓名"></asp:BoundColumn>
            <asp:BoundColumn DataField="joindatetime" HeaderText="注册时间"></asp:BoundColumn>
            <asp:BoundColumn DataField="lastactivity" HeaderText="最近活动"></asp:BoundColumn>
            <asp:BoundColumn DataField="credits" HeaderText="积分"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="操作">
                <ItemTemplate>
                    <a href="useredit.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString()%>">
                        编辑</a>
                </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
    </cc1:DataGrid>
    </form>
</body>
</html>
