<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChannelRate.aspx.cs" Inherits="JRAPI.Admin.Channel.ChannelRate" %>
<%@ 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=1' ><em>通道设置</em></a><span>|</span><a href='javascript:;' class="on"><em>通道费率设置</em></a>    </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<div class="pad_10">
<form runat="server" id="myform">
<div  class="div_list">
<ul>
<li  style="width:300px"><span>网银通道</span><input name="Rate0" type="text" id="UserRate0" value="<%=getChannelRate(0) %>" size="10" maxlength="6" Class="input-text NumDecText"/>%</li>
    <asp:Repeater ID="repChannel" runat="server">
    <ItemTemplate>
      <li style="width:300px"><span><%# Eval("ChannelName")%></span><input name="Rate<%# Eval("Channelid") %>" type="text" id="UserRate<%# Eval("Channelid") %>" value="<%# getChannelRate(JRAPI.Common.TypeConverter.ObjectToInt(Eval("Channelid"))) %>" size="10" maxlength="6" Class="input-text NumDecText"/>%</li>
    </ItemTemplate>
    </asp:Repeater>     
</ul>
  </div>
    <div class="bk15"></div>
<asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="button" 
    onclick="btnSubmit_Click" />
</form>
</div>
<script type="text/javascript">
    $(function (){
        $(".NumDecText").keyup(function () {
            $(this).val($(this).val().replace(/[^0-9.]/g, ''));
        }).bind("paste", function () {   
            $(this).val($(this).val().replace(/[^0-9.]/g, ''));
        }).css("ime-mode", "disabled");
    })
</script>
</body>
</html>
