<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Channel_Edit.aspx.cs" Inherits="JRAPI.Admin.Channel.Channel_Edit" %>
<%@ Register src="../Controls/SubPageTop.ascx" tagname="SubPageTop" tagprefix="uc1" %>
<uc1:SubPageTop ID="SubPageTop1" runat="server" />
<body>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='Channel_List.aspx?type=<%=type %>' ><em>通道设置</em></a><span>|</span><a href='javascript:;' class="on"><em>编辑通道</em></a>    </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style><script type="text/javascript">
<!--
            $(function () {
                $.formValidator.initConfig({ autotip: true, formid: "myform", onerror: function (msg) { } });
                $("#txtChannelName").formValidator({ onshow: "请输入通道名称", onfocus: "通道名称应该为2-50位之间" }).inputValidator({ min: 2, max: 50, onerror: "通道名称应该为2-50位之间" });
                $("#dpdChannelType").formValidator({ onshow: "请选择通道类别", onfocus: "请选择通道类别" }).inputValidator({ min: 1, onerror: "请选择通道类别" });
                $("#txtChanneCode").formValidator({ onshow: "请输入通道代码", onfocus: "请输入通道代码" }).inputValidator({ min: 1, max: 50, onerror: "请正确输入通道代码" });
                $("#dpdGate").formValidator({ onshow: "请选择所属网关", onfocus: "请选择所属网关" }).inputValidator({ min: 1, onerror: "请选择所属网关" });
                $("#txtChannelRate").formValidator({ onshow: "请输入通道成本比例", onfocus: "请输入通道成本比例" }).inputValidator({ onerror: "通道成本比例输入有误" }).regexValidator({ regexp: "num", datatype: "enum", onerror: "通道成本比例为整数或小数" });
            })
//-->
</script>
<div class="pad_10">
<div class="common-form">
<form runat="server" id="myform">
<table width="100%" class="table_form contentWrap">
<tr>
<td width="80">通道名称</td> 
<td><asp:TextBox ID="txtChannelName" runat="server" CssClass="input-text" Columns="50"></asp:TextBox></td>
</tr>
<tr>
<td width="80">通道类别</td> 
<td>
    <asp:DropDownList ID="dpdChannelType" runat="server">
    </asp:DropDownList>
</td>
</tr>
<tr>
<td width="80">所属网关</td> 
<td>
    <asp:DropDownList ID="dpdGate" runat="server">
    </asp:DropDownList>
</td>
</tr>
<tr>
<td>通道代码</td> 
<td><asp:TextBox ID="txtChanneCode" runat="server" CssClass="input-text"></asp:TextBox></td>
</tr>
<tr>
<td>通道成本比例</td>
<td>
<asp:TextBox ID="txtChannelRate" runat="server" CssClass="input-text"></asp:TextBox>
</td>
</tr>
<tr>
<td>通道状态</td>
<td>
    <asp:CheckBox ID="cboxChannelStatus" runat="server" Text="启用" />
</td>
</tr>

</table>
    <div class="bk15"></div>
<asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="button" 
    onclick="btnSubmit_Click" />
</form>
</div>
</div>
</body>
</html>
