<%@ Page CodeBehind="admin_search.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.admin_search" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <link href="images/Site_Css.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	<script src="../js/calendar.js" type="text/javascript"></script>
    <link href="images/Css.css" type="text/css" rel="stylesheet">
    <meta content="MSHTML 6.00.6000.16544" name="GENERATOR">
    <style type="text/css">
        .style4
        {
            color: #ff0000;
        }
        .style3
        {
            color: #ff0000;
        }
    </style>
    <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../js/Common.js" type="text/javascript"></script>
    <script language="javascript">
        function Result() {
            Webdisk.admin_adduser.GetBmAll(document.all.company.value, get_Result_CallBack);
        }

        function get_Result_CallBack(response) {
            if (response.value != null) {
                document.all("dept").length = 0; document.all("dept2").length = 0; document.all("dept3").length = 0; document.all("dept4").length = 0; document.all("dept5").length = 0;
                document.all("dept").options.add(new Option("不指定", "0")); document.all("dept2").options.add(new Option("不指定", "0")); document.all("dept3").options.add(new Option("不指定", "0")); document.all("dept4").options.add(new Option("不指定", "0")); document.all("dept5").options.add(new Option("不指定", "0"));
                var ds = response.value;
                if (ds != null && typeof (ds) == "object") {
                    for (var i = 0; i < ds.Rows.length; i++) {
                        var name = ds.Rows[i].knamem;
                        var id = ds.Rows[i].id;
                        document.all("dept").options.add(new Option(name, id)); document.all("dept2").options.add(new Option(name, id)); document.all("dept3").options.add(new Option(name, id)); document.all("dept4").options.add(new Option(name, id)); document.all("dept5").options.add(new Option(name, id));
                    }
                    document.all.hiddept.value = document.all.dept.value; document.all.hiddept2.value = document.all.dept2.value; document.all.hiddept3.value = document.all.dept3.value; document.all.hiddept4.value = document.all.dept4.value; document.all.hiddept5.value = document.all.dept5.value;
                }
            }
            return
        }
        function show(id) {
            document.getElementById("adddept" + id).style.display = 'none';
            document.getElementById("tdshow" + id).style.display = '';
        }
    </script>
</head>
<body bgcolor="#ffffff" topmargin="5" marginwidth="0" marginheight="0">
    <form name="Form1" method="post" id="Form1" runat="server">
    <div>
    </div>
    <div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
            <tbody>
                <tr>
                    <td class="menubar_title">
                        <img hspace="3" src="images/default.gif" align="absMiddle" vspace="3" border="0">&nbsp;高级用户查找
                    </td>
                    <td class="menubar_readme_text" valign="bottom">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="menubar_function_text" height="1">
                        &nbsp;
                    </td>
                    <td class="menubar_menu_td" align="right">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="5">
                    </td>
                </tr>
            </tbody>
        </table>
        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
            <tbody>
                <tr>
                    <td background="images/tab_top_bg.gif" height="22">
                        <table cellspacing="0" cellpadding="0" border="0">
                            <tbody>
                                <tr>
                                    <!--按钮　Start-->
                                    <td>
                                        <table height="22" cellspacing="0" cellpadding="0" border="0">
                                            <tbody>
                                                <tr>
                                                    <td width="3">
                                                        <img id="tabImgLeft__0" height="22" src="images/tab_unactive_left.gif" width="3">
                                                    </td>
                                                    <td class="tab" id="tabLabel__0" onclick="javascript:tabClick(0,1)" background="images/tab_active_bg.gif"
                                                        unselectable="on">
                                                        高级用户查找
                                                    </td>
                                                    <td width="3">
                                                        <img id="tabImgRight__0" height="22" src="images/Menu/tab_active_right.gif" width="3">
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#ffffff">
                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                            <tbody>
                                <tr>
                                    <td width="1" background="images/tab_bg.gif">
                                        <img height="1" src="images/tab_bg.gif" width="1">
                                    </td>
                                    <td valign="top" height="100" class="borderstyle">
                                        <div id="tabContent__0">
                                            注：不填某一项代表不限此项条件
                                            <br>
                                            <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
                                                <tbody>
                                                    <tr>
                                                        <td width="27%" class="table_body">
                                                            <span class="a3-green">用户名</span>
                                                        </td>
                                                        <td width="73%" class="table_none">
                                                            <font color="#000000"><font color="#000000"><span class="a3-green">
                                                                <asp:TextBox ID="username" runat="server" CssClass="tableTdtext" Columns="40"></asp:TextBox>
                                                                <asp:CheckBox ID="mo" runat="server" Text="模糊查找"></asp:CheckBox>
                                                            </span></font></font>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            <span class="a3-green">电子邮箱</span>
                                                        </td>
                                                        <td class="table_none">
                                                            <span class="a3-green">
                                                                <asp:TextBox ID="email" runat="server" CssClass="tableTdtext" Columns="40"></asp:TextBox>
                                                                <span class="style3"></span></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            主页
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="url" runat="server" CssClass="tableTdtext" Columns="40"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            QQ
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="QQ" runat="server" CssClass="tableTdtext" Columns="40"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            MSN
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="MSN" runat="server" CssClass="tableTdtext" Columns="40"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            真实姓名
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="realname" runat="server" CssClass="tableTdtext" Columns="40"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            联系电话
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="phone" runat="server" CssClass="tableTdtext" Columns="40"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            联系地址
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="address" runat="server" CssClass="tableTdtext" Columns="40"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            所在部门
                                                        </td>
                                                        <td class="table_none">
                                                            <select id="dept" name="dept" runat="server" onchange="javascript:document.all.hiddept.value=this.value;">
                                                                <option selected>全部</option>
                                                            </select>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            <font face="宋体">所属角色</font>
                                                        </td>
                                                        <td class="table_none">
                                                            <font face="宋体">
                                                                <select id="role" name="role" runat="server">
                                                                    <option value="">全部</option>
                                                                    <option value="1">教师</option>
                                                                    <option value="2">学生</option>
                                                                    <option value="3">管理</option>
                                                                </select>
                                                            </font>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            IP
                                                        </td>
                                                        <td class="table_none">
                                                            <font face="宋体">
                                                                <asp:TextBox ID="ip" runat="server" Columns="40" CssClass="tableTdtext"></asp:TextBox>
                                                            </font>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            有效期
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="enddate" runat="server" Columns="17" class="tableTdtext" onfocus="new Calendar().show(this)"></asp:TextBox>
                                                            —
                                                            <asp:TextBox ID="enddate1" runat="server" Columns="17" class="tableTdtext" onfocus="new Calendar().show(this)"></asp:TextBox>
                                                            <asp:CheckBox ID="nolimit" runat="server" Text="包含不限"></asp:CheckBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            最后登录
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="uplogin" runat="server" Columns="17" class="tableTdtext" onfocus="new Calendar().show(this)"></asp:TextBox>
                                                            —
                                                            <asp:TextBox ID="uplogin1" runat="server" Columns="17" class="tableTdtext" onfocus="new Calendar().show(this)"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            登录次数
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="logincount" runat="server" CssClass="tableTdtext" Columns="17"></asp:TextBox>
                                                            —
                                                            <asp:TextBox ID="logincount1" runat="server" CssClass="tableTdtext" Columns="17"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            注册时间
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="regdate" runat="server" Columns="17" class="tableTdtext" onfocus="new Calendar().show(this)"></asp:TextBox>
                                                            —
                                                            <asp:TextBox ID="regdate1" runat="server" Columns="17" class="tableTdtext" onfocus="new Calendar().show(this)"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            使用空间
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:TextBox ID="spacetotal" runat="server" CssClass="tableTdtext" Columns="15"></asp:TextBox>
                                                            M —
                                                            <asp:TextBox ID="spacetotal1" runat="server" CssClass="tableTdtext" Columns="15"></asp:TextBox>
                                                            M
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            是否审核
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:RadioButtonList ID="umark" runat="server" RepeatDirection="Horizontal" Width="178px"
                                                                RepeatLayout="Flow">
                                                                <asp:ListItem Value="2" Selected="True">全部</asp:ListItem>
                                                                <asp:ListItem Value="1">已审</asp:ListItem>
                                                                <asp:ListItem Value="0">未审</asp:ListItem>
                                                            </asp:RadioButtonList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            是否锁定
                                                        </td>
                                                        <td class="table_none">
                                                            <asp:RadioButtonList ID="ulock" runat="server" RepeatDirection="Horizontal" Width="179px"
                                                                RepeatLayout="Flow">
                                                                <asp:ListItem Value="0" Selected="True">全部</asp:ListItem>
                                                                <asp:ListItem Value="1">锁定</asp:ListItem>
                                                                <asp:ListItem Value="0">未锁</asp:ListItem>
                                                            </asp:RadioButtonList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="table_body">
                                                            <font face="宋体">允许登录的IP</font>
                                                        </td>
                                                        <td class="table_none">
                                                            <font face="宋体">
                                                                <asp:TextBox ID="allowip" runat="server" Columns="40" CssClass="tableTdtext"></asp:TextBox>
                                                            </font>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <!--内容框End-->
                                    </td>
                                    <td width="1" background="images/tab_bg.gif">
                                        <img height="1" src="images/tab_bg.gif" width="1">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td background="images/tab_bg.gif" bgcolor="#ffffff">
                        <img height="1" src="images/tab_bg.gif" width="1">
                    </td>
                </tr>
            </tbody>
        </table>
        <!--选项卡 End-->
    </div>
    <div>
        <div align="center">
            <span class="px14">
                <br>
                <input type="submit" size="100" value="查找用户" id="Submit1" name="Submit1" runat="server"
                    class="formbutton" onserverclick="Submit1_ServerClick">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </FONT>
                <input class="formbutton" id="Submit2" type="submit" size="100" value="导出用户" name="Submit2"
                    runat="server" onserverclick="Submit2_ServerClick">
                <input type="hidden" name="hiddept" id="hiddept" runat="server" value="0">
            </span>
            <br>
        </div>
    </div>
    </form>
    <script language="javascript">
        function tabClick(idx, count) {
            for (i_tr = 0; i_tr < count; i_tr++) {
                var tabImgLeft = eval('document.all.tabImgLeft__' + idx);
                var tabImgRight = eval('document.all.tabImgRight__' + idx);
                var tabLabel = eval('document.all.tabLabel__' + idx);
                var tabContent = eval('document.all.tabContent__' + idx);

                tabImgLeft.src = 'images/tab_active_left.gif';
                tabImgRight.src = 'images/tab_active_right.gif';
                tabLabel.background = 'images/tab_active_bg.gif';
                tabContent.style.visibility = 'visible';
                tabContent.style.display = 'block';
            }
        }
        tabClick(0, 1);
    </script>
    <br>
</body>
</html>
