<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_PayTypesList.aspx.cs" Inherits="TW.UI.Admin.Admin_PayTypesList" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/artDialog/artDialog.js?skin=default"></script>
<script type="text/javascript" src="/js/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript" src="/js/public.js"></script>
<script type="text/javascript" src="/js/jquery-1.10.2.min.js"></script>

</head>
<body>
<form id="form1" runat="server">
<div class="nav"><h1>支付方式</h1></div>

<div class="cont">
    <asp:Button ID="btnFresh" runat="server" Text=""  style="display:none;" 
        onclick="btnFresh_Click"/>

<table class="table1">
<tr>
    <td width="5%"><input id="chkall" onclick="CheckAll('chkBox')" type="checkbox" title="全选/全不选"/></td>
    <td>类别</td>
    <td>支付名称</td>
    <td>缩略图</td>
    <td>合作身份ID</td>
    <td>安全密钥</td>
    <td>卖家帐号</td>
    <td>独立url</td>
    <td>启用</td>
    <td>操作</td>
</tr>
    <asp:Repeater ID="Repeater1" runat="server" 
        onitemcommand="Repeater1_ItemCommand" 
        onitemdatabound="Repeater1_ItemDataBound">
    <ItemTemplate>
        <asp:HiddenField ID="hidItemId" Value='<%#Eval("Id") %>' runat="server" />
<tr>
    <td><asp:CheckBox ID="chkBox" runat="server" /></td>
    <td>
        <asp:DropDownList ID="drpCategory" runat="server">
        <asp:ListItem Value="aliGate">支付宝网银支付</asp:ListItem>
        <asp:ListItem Value="alipay">支付宝即时到账</asp:ListItem>
        <asp:ListItem Value="easypay">易生</asp:ListItem>
        <asp:ListItem Value="guofu">国付</asp:ListItem>
        <asp:ListItem Value="xinsheng">新生</asp:ListItem>
        <asp:ListItem Value="huanxun">环迅</asp:ListItem>
        <asp:ListItem Value="chinabank">网银在线</asp:ListItem>
        <asp:ListItem Value="shuangcheng">双诚</asp:ListItem>
        <asp:ListItem Value="mobao">Mo宝</asp:ListItem>
        <asp:ListItem Value="xinlian">信联</asp:ListItem>
        <asp:ListItem Value="ufu">U付</asp:ListItem>
        <asp:ListItem Value="huifu">汇付</asp:ListItem>
        <asp:ListItem Value="huifu2">汇付快捷</asp:ListItem>
        <asp:ListItem Value="huichao">汇潮</asp:ListItem>
        <asp:ListItem Value="baidu">百付宝</asp:ListItem>
        <asp:ListItem Value="baidu2">百付宝2</asp:ListItem>
        <asp:ListItem Value="chinapay">银联支付</asp:ListItem>
        <asp:ListItem Value="chinapay2">银联支付2</asp:ListItem>
        <asp:ListItem Value="YeePay">易宝支付</asp:ListItem>
        <asp:ListItem Value="tonglian">通联</asp:ListItem>
        <asp:ListItem Value="UPOP">网付通</asp:ListItem>
        <asp:ListItem Value="cbapay">有名支付</asp:ListItem>
        <asp:ListItem Value="aliOther">支付宝快速</asp:ListItem>
        <asp:ListItem Value="huanxunNew">环迅新</asp:ListItem>
        <asp:ListItem Value="beifu">贝付</asp:ListItem>
        </asp:DropDownList> 
    </td>
    <td><asp:TextBox ID="txtName" runat="server" Text='<%#Eval("Name")%>'></asp:TextBox></td>
    <td class="nor">
        <a onclick="KyoWin('修改缩略图','/admin/payTypeThumb.aspx?id=<%#Eval("Id") %>');">
            <img alt="<%#Eval("Name")%>" src="<%#Eval("Thumb").ToString() == "" ? "" : "/uploads/?"+Eval("Thumb")+"_120x40.jpg"%>" class="paytypeimg" />
        </a>
    </td>
    <td><asp:TextBox ID="txtMerchantId" runat="server" Text='<%#Eval("MerchantId")%>'></asp:TextBox></td>
    <td><asp:TextBox ID="txtKeyCode" runat="server" Text='<%#Eval("KeyCode")%>'></asp:TextBox></td>
    <td><asp:TextBox ID="txtAccount" runat="server" Text='<%#Eval("Account")%>'></asp:TextBox></td>
    <td><asp:TextBox ID="txtUrl" runat="server" Text='<%#Eval("Url")%>'></asp:TextBox></td>
    <td><asp:CheckBox ID="chkIsShow" Checked='<%#(bool)Eval("IsShow") %>' runat="server" /></td>
    <td>            
        <asp:LinkButton ID="btnSave" runat="server" CommandName="save">保存</asp:LinkButton>
    </td>
</tr>
    </ItemTemplate>
    </asp:Repeater>
</table>
<TW:Pager ID="Pager1" runat="server" CssClass="page" 
        onchangepageclick="Pager1_ChangePageClick" />
</div>

</form>

<script type="text/javascript">
    var oTab = $('.table1')[0];
    var oldBgColor = '';
    var i = 0;
    for (i = 0; i < oTab.tBodies[0].rows.length; i++) {
        oTab.tBodies[0].rows[i].style.background = i % 2 ? '#ffffff' : 'url(images/line2.png) repeat-x';
        oTab.tBodies[0].rows[i].onmouseover = function () {
            oldBgColor = this.style.background;
            this.style.background = '#ffffd4 url(images/line.png) repeat-x';
        };
        oTab.tBodies[0].rows[i].onmouseout = function () {
            this.style.background = oldBgColor;
        };
    }
</script>
</body>
</html>
