<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Channel_List.aspx.cs" Inherits="JRAPI.Admin.Channel.Channel_List" %>
<%@ Register src="../Controls/SubPageTop.ascx" tagname="SubPageTop" tagprefix="uc1" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<uc1:SubPageTop ID="SubPageTop1" runat="server" />
<body>
    <form id="Form1" runat="server">
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
            <a href='javascript:;'  class="on"><em>通道设置</em></a><span>|</span><a href='Channel_Add.aspx?type=<%=channelType %>'><em>添加通道</em></a>    </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<div class="pad-lr-10">
<table width="100%" cellspacing="0" class="search-form">
    <tbody>
		<tr>
		<td>
		<div class="explain-col">
<%--				成本价格:<input name="Channel_rate" type="text" id="Channel_rate" value="0" size="8" />
--%>                所属网关:<select name="GateID" id="GateID">
                <option value="0">请选择网关</option>
                    <%=gateItem%>
                </select>
				是否启用
<input name="Cstate" type="checkbox" id="Cstate" value="1" checked="checked"/>
				<input type="button" name="allset" id="allset" class="button" value="批量设置" onclick="AllSet()" /> <asp:Button ID="btnSave" runat="server" Text="保存设置"  CssClass="button" 
            onclick="btnSave_Click"  /><font color="red">价格保持为0,则为不设置</font>
	    </div>
		</td>
		</tr>
    </tbody>
</table>
<div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
            <th width="1%" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('Channelid');"></th>
			<th width='10%' align="center">通道名称</th>
			<th width="10%" align="center">通道代码</th>
<%--			<th width='10%' align="center">成本价格</th>
--%>			<th width="10%" align="center">所属网关</th>
			<th width="12%" align="center">通道状态</th>
            <th width="8%" align="center">操作</th>
            </tr>
        </thead>
    <tbody>
        <asp:Repeater ID="repList" runat="server">
            <ItemTemplate>
	            <tr>
	            <td align="center"><input class="inputcheckbox " name="Channelid" value="<%# Eval("Channelid")%>" type="checkbox"></td>
	            <td align="center"><%# Eval("ChannelName")%></td>
	            <td align="center"><%# Eval("ChanneCode")%></td>
<%--	            <td align="center"><input name="ChannelRate_<%# Eval("Channelid")%>" type="text" id="ChannelRate_<%# Eval("Channelid")%>" value="<%# Eval("ChannelRate")%>" size="8"  /></td>
--%>	            <td align="center">
                <select name="GateID_<%# Eval("Channelid")%>" id="GateID_<%# Eval("Channelid")%>">
                <option value="0">请选择网关</option>
                    <%=gateItem%>
                </select>
                <script>$("#GateID_<%# Eval("Channelid")%>").val('<%# Eval("GateID") %>')</script>
                </td>
	            <td align="center"><input name="Cstate_<%# Eval("Channelid")%>" type="checkbox" id="Cstate_<%# Eval("Channelid")%>" value="1" <%# Eval("ChannelStatus").ToString()=="1"?"checked=\"checked\"":""%> />
            启用</td>
            <td align="center"><a href="Channel_Edit.aspx?channelid=<%# Eval("Channelid")%>">编辑</a></td>
	            </tr>
            </ItemTemplate>
        </asp:Repeater>

</tbody>
    </table>
    <div class="btn">
<label for="check_box">全选/取消</label> 
<asp:Button ID="btnDel" runat="server" Text="删除" 
            OnClientClick="return confirm('您确定要删除吗？')" CssClass="button" 
            onclick="btnDel_Click" />
        

</div>
    </div>


</div>
</form>
</body>
</html>