<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="recordhighsearch.aspx.cs"
    Inherits="HySoft.BaseCallCenter.Web.telmanage.recordhighsearch" %>

<!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="../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../images/style.css" rel="stylesheet" type="text/css" />
    <script src="../scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
    <script src="../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        function getParams() {
            var phone = document.getElementById("txtPhone").value;
            var callstate = document.getElementById("drpCallState").value;
            var usercode = document.getElementById("drpUserName").value;
            var calltype = document.getElementById("drpCallType").value;
            var starttime = document.getElementById("txtStartTime").value;
            var endtime = document.getElementById("txtEndTime").value;
            if (callstate == "-1") callstate = "";
            if (calltype == "-1") calltype = "";
            var params = "&phone=" + phone + "&callstate=" + callstate + "&usercode="
            + usercode + "&calltype=" + calltype + "&starttime=" + starttime + "&endtime=" + endtime;
            parent.getparams(params);
            var dialog = frameElement.dialog;
            dialog.close();
        }
        document.onkeydown = function (event) {
            var e = event || window.event || arguments.callee.caller.arguments[0];
            if (e && e.keyCode == 13) {
                getParams();
            }
        };
    </script>
</head>
<body class="mainbody" scroll="no" style="margin-top: 0px;">
    <form id="form1" runat="server">
    <div id="contentTab">
        <ul class="tab_nav">
            <li class="selected"><a>搜索信息</a></li>
        </ul>
        <div class="tab_con" style="display: block;">
            <table class="form_table">
                <col width="100px" />
                <col />
                <col width="100px" />
                <col />
                <tbody>
                    <tr>
                        <th>
                            电话号码：
                        </th>
                        <td>
                            <asp:TextBox ID="txtPhone" runat="server" CssClass="txtInput normal" Width="120px"></asp:TextBox>
                        </td>
                        <th>
                            呼叫状态：
                        </th>
                        <td>
                            <asp:DropDownList ID="drpCallState" runat="server" CssClass="selectBox" 
                                Width="120px">
                                <asp:ListItem Value="-1">--全部--</asp:ListItem>
                                <asp:ListItem Value="0">未接通</asp:ListItem>
                                <asp:ListItem Value="1">已接通</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            坐席：
                        </th>
                        <td>
                            <asp:DropDownList ID="drpUserName" runat="server" CssClass="selectBox" Width="120px"> </asp:DropDownList>
                        </td>
                        <th>
                            呼叫方向：
                        </th>
                        <td>
                            <asp:DropDownList ID="drpCallType" runat="server" CssClass="selectBox" Width="120px">
                                <asp:ListItem Value="-1">--全部--</asp:ListItem>
                                <asp:ListItem Value="0">呼入</asp:ListItem>
                                <asp:ListItem Value="1">呼出</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            开始时间：
                        </th>
                        <td>
                            <asp:TextBox ID="txtStartTime" runat="server" CssClass="txtInput" Width="120px" onfocus="WdatePicker({skin:'whyGreen'})"></asp:TextBox>
                        </td>
                        <th>
                            结束时间：
                        </th>
                        <td>
                            <asp:TextBox ID="txtEndTime" runat="server" CssClass="txtInput" Width="120px" onfocus="WdatePicker({skin:'whyGreen'})"></asp:TextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="foot_btn_box">
            <input id="btnSearch" type="button" value="搜 索" class="btnSearch" onclick="getParams();" />
        </div>
    </div>
    </form>
</body>
</html>
