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

<!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" />
    <script src="../scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../scripts/ui/json2.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
    <link href="../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
    <link href="../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
    <script src="../scripts/ui/js/plugins/ligerGrid.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerLayout.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerTree.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerMenu.js" type="text/javascript"></script>
    <script src="../scripts/CustomersData.js" type="text/javascript"></script>
    <link href="../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    <script src="../../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <link href="../images/style.css" rel="stylesheet" type="text/css" />
<script  type="text/javascript">
    //选择内部人员
    function SelectInnerPerson() {
        try {
            $.ligerDialog.open({ url: 'faxcustomer.aspx', title: '导入发送传真的号码', height: 570, width: 650, isResize: true });
        }
        catch (e) {alert(e);}
    }
    function OnInnerCallback(param) {
        if (param != "") {
            document.getElementById("txtTelephone").value = param;

        }
    }
    //验证是否有异常
    function validate() {
        var i = 0;
        if (!validatelogin_name()) {
            i++;
        }
        if (!validatepruc_name()) {
            i++;
        }
        if (i > 0) {
            return false;
        }
        $.ligerDialog.waitting('正在提交中...');
        return true;
    }

    function validatelogin_name() {
        if ($("#txtTelephone").val() == "" || $("#txtTelephone").val() == undefined) {
            document.getElementById("lbtxtTelephone").innerHTML = "* 传真";
            document.getElementById("lbtxtTelephone").style.color = "red";
            return false;
        }
        else {
            document.getElementById("lbtxtTelephone").innerHTML = "*";
            document.getElementById("lbtxtTelephone").style.color = "#414141";
            return true;
        }
    }
    function validatepruc_name() {
        if ($("#txtRemark").val() == "" || $("#txtRemark").val() == undefined) {
            document.getElementById("lbtxtContent").innerHTML = "* 内容";
            document.getElementById("lbtxtContent").style.color = "red";
            return false;
        }
        else {
            document.getElementById("lbtxtContent").innerHTML = "* ";
            document.getElementById("lbtxtContent").style.color = "#414141";
            return true;
        }
    }

    function ChangeType() {
        if (document.getElementById("rbSendType_1").checked) {
            document.getElementById("trDate").style.display = "block";
        }
        else {
            document.getElementById("trDate").style.display = "none";
        }
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <input name="sign" type="hidden" value="" />
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td valign="top" style="padding: 10px;">
                <table width="100%" border="0" cellspacing="3" cellpadding="0">
                    <colgroup>
                        <col width="90px" align="right" />
                        <col width="550px" />
                        <col />
                    </colgroup>
                    <tbody>
                        
                        <tr id="trPhone">
                            <td style="height:30px">
                                <span style="color: #ff0000; font-family: Wingdings;">v</span>传真号码：
                            </td>
                            <td>
                                <textarea id="txtTelephone" runat="server" style="height: 55px; width: 500px;" class="txtInput normal"></textarea><label
                                id="lbtxtTelephone" for="txtTelephone"></label>
                            </td>
                            <td valign="top" style="border: 1px solid #999; padding: 8px; font-size: 12px; color: #990000;">
                                <span style="color: #ff0000; font-family: Wingdings;">v</span>&nbsp;&nbsp;&nbsp;&nbsp;发送号码之间请用英文逗号“,”隔开；</td>
                        </tr>
                        <tr>
                            <td style="height:30px">
                            </td>
                            <td colspan="2">
                                <div style="border: 1px solid #ffffff; width: 505px;" id="qunfa" runat="server">
                                    <input type="button" name="ss" id="rad1" onclick="SelectInnerPerson();" class="btnSubmit"
                                        value="选择客户" />&nbsp;&nbsp;&nbsp;
                                    <input type="radio" name="ss" id="rad2" onclick="SelectCums();" value="2"  style="display:none"/><label
                                        for="rad2" style="display:none">导入客户传真号码</label>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="height:30px">
                                <span style="color: #ff0000; font-family: Wingdings;">v</span>传真文件：
                            </td>
                            <td><input id="txtExt" value="" runat="server" style="display:none;" /><input id="txtSize" value="" runat="server" style="display:none;" />
                                <input id="txtF_FilePath" runat="server" type="file"  unselectable="on" style="color: #24618E;border: 1px solid #aaa; font-size: 12px; padding-top:2px; cursor:pointer; width:50%;" />
                            </td>
                            <td valign="top" style="border: 1px solid #999; padding: 8px; font-size: 12px; color: #990000;">
                                <span style="color: #ff0000; font-family: Wingdings;">v</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="spanExt" runat="server">txt;jpg;gif;png;doc;xls;</span><br />文件大小最大限制：<span id="spanSize" runat="server">1024</span>KB
                            </td>
                        </tr>
                        <tr style="display:none;">
                            <td height="30">
                            </td>
                            <td colspan="2">
                                &nbsp; 文件格式：
                                <input name="tishi1" id="tishi1" type="text" runat="server" value="" class="txt" style="width: 65px; color:Blue;"
                                    readonly />
                                &nbsp;&nbsp;&nbsp;&nbsp;文件大小
                                <input name="tishi1" id="tishi2" type="text" runat="server" value="" class="txt" style="width: 65px; color:Blue;"
                                    readonly />
                                &nbsp;&nbsp;&nbsp;&nbsp;<span id="spanCount" style="color:Red"></span>
                            </td>
                        </tr>
                        <tr>
                            <td style="height:30px">
                                <span style="color: #ff0000; font-family: Wingdings;">v</span>内容备注：
                            </td>
                            <td colspan="2">
                                <textarea id="txtRemark" runat="server" style="height: 75px; width: 500px;" class="txtInput normal" 
                                  ></textarea><label
                                id="lbtxtContent" for="txtRemark"></label>
                            </td>
                        </tr>
                        <tr>
                            <td style="height:30px">
                                发送方式：
                            </td>
                            <td colspan="2">
                                <div style="float:left;"><input id="rbSendType_0" runat="server" type="radio" name="rbSendType" value="0" onclick="ChangeType()" checked /><label onclick="ChangeType()" for="rbSendType_0">立即发送</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp<input id="rbSendType_1" runat="server" type="radio" onclick="ChangeType()" name="rbSendType" value="1" /><label onclick="ChangeType()" for="rbSendType_1">定时发送</label></div>
                                <div id="trDate" style="float:left; display:none;">&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" runat="server" id="txtDate" onfocus="WdatePicker({skin:'whyGreen'})" class="txt" style="width:90px;" />&nbsp;&nbsp;&nbsp;&nbsp;<select id="selectHour" class="selectBox" runat="server" style="width:50px;"></select>&nbsp;时&nbsp;&nbsp;&nbsp;<select id="selectMin" runat="server" class="selectBox" style="width:50px;"></select>&nbsp;分</div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td height="30px" align="center">
                    <asp:Button ID="btnSave" runat="server" Text="发送"  class="btnSubmit" Width="75px"
                  OnClientClick="return validate();"  onclick="Button1_Click"  />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
