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

<!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>
    <script src="../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
     <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 type="text/javascript" src="../../scripts/jquery/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/messages_cn.js"></script>
    <script type="text/javascript" src="../../scripts/ui/js/ligerBuild.min.js"></script>
    <script type="text/javascript" src="../../scripts/function.js"></script>
    <script src="../scripts/calendar.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CloseThis() {
            var dialog = frameElement.dialog;
            parent.LoadList();
            dialog.close();
        }
        function validate()
         {
            var i = 0;
            if (!validatelogin_name())
             {
                i++;
            }
            if (!validatepruc_name()) 
            {
                i++;
            }
            if (i > 0)
             {
                return false;
            }
            return true;
        }
        function validatelogin_name()
         {
             if ($("#F_ParamCode").val() == "" || $("#F_ParamCode").val() == undefined) 
            {
                document.getElementById("lbF_ParamCode").innerHTML = "* 参数名称不为空！";
                document.getElementById("lbF_ParamCode").style.color = "red";
                return false;
            }
            else 
            {
                document.getElementById("lbF_ParamCode").innerHTML = "*";
                document.getElementById("lbF_ParamCode").style.color = "#414141";
                return true;
            }
        }
        function validatepruc_name()
         {
             if ($("#F_ParamValue").val() == "" || $("#F_ParamValue").val() == undefined)
             {
                document.getElementById("lbF_ParamValue").innerHTML = "* 参数内容不为空！";
                document.getElementById("lbF_ParamValue").style.color = "red";
                return false;
            }
            else 
            {
                document.getElementById("lbF_ParamValue").innerHTML = "*";
                document.getElementById("lbF_ParamValue").style.color = "#414141";
                return true;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="contentTab">
         
        <ul class="tab_nav">
            <li class="selected"><a onclick="tabs('#contentTab',0);" href="javascript:;">参数信息</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>
                           <span style="color:red"> 电话号码：</span>
                        </th>
                        <td>
                        <asp:TextBox ID="F_ParamCode" runat="server" Width="120px" CssClass="txtInput normal" ></asp:TextBox><label
                                id="lbF_ParamCode" for="F_ParamCode"></label></td>
                    </tr>                   
                    <tr>
                        <th>
                        <span style="color:red"> 开始时间：</span>
                        </th>
                        <td colspan="3">
                            <asp:TextBox ID="F_ParamValue" runat="server" CssClass="txtInput normal" onfocus="WdatePicker({skin:'whyGreen'})"
                                Width="180px" ></asp:TextBox><label
                                id="lbF_ParamValue" for="F_ParamValue"></label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                        <span style="color:red"> 结束时间：</span>
                        </th>
                        <td colspan="3">
                            <asp:TextBox ID="TextBox1" runat="server" CssClass="txtInput normal" Width="180px" onfocus="WdatePicker({skin:'whyGreen'})"
                                ></asp:TextBox><label
                                id="Label1" for="F_ParamValue"></label>
                        </td>
                    </tr>
                    <tr>
                    <th>屏蔽说明：</th>
                    <td colspan="3">
                            <asp:TextBox ID="F_ParamDes" runat="server" CssClass="txtInput normal" TextMode="MultiLine"
                                Style="width: 455px; height: 60px;"></asp:TextBox>
                            <asp:HiddenField ID="HiddenField1" runat="server" />
                        </td>
                    </tr>               
                </tbody>
            </table>
        </div>
        <div class="foot_btn_box">
            <asp:Button ID="btnSubmit" runat="server" Text="保&nbsp;&nbsp;存" CssClass="btnSubmit"
                OnClientClick="return validate();"  OnClick="btnSubmit_Click" />
        </div>
    </div>
    </form>
</body>
</html>
