<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PaymentEdit.aspx.cs" Inherits="PaymentEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
    .tr{clear:both;width:auto;margin:auto}
    .tr div{width:100px;float:left;height:30px;}
    .tr .input{width:160px;}
    .titled
    {
        
    background-image: url(images/admin_bg_1.gif);
    WIDTH: 98%;
    height: 25px;
    line-height:25px;
    border-color: #FFFFFF;
    color: #FFFFFF;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: bold;    
        
        }
    
    </style>

    <link href="Css/StyleSheet.css" rel="stylesheet" type="text/css" />

</head>
<body>
    <form id="form1" runat="server">
            <asp:Button ID="Button3" runat="server" Text="支付信息配置" OnClick="Button3_Click" />
    <div style="width:100%; text-align:center;">

    <div class="tr">
    <div> <asp:Label ID="Label1" runat="server" Text="支付名称"></asp:Label></div>
    <div class="input"> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></div>
    <div> <asp:Label ID="Label2" runat="server" Text="支付编码"></asp:Label></div>   
    <div  class="input"> <asp:TextBox ID="txt_PaymentCode" runat="server"></asp:TextBox></div> 
    </div>

    <div class="tr">
    <div> <asp:Label ID="Label5" runat="server" Text="支付汇率"></asp:Label></div>
    <div  class="input"> <asp:TextBox ID="txt_PayExRate" runat="server"></asp:TextBox></div>
    <div> <asp:Label ID="Label3" runat="server" Text="支付备注"></asp:Label></div>   
    <div  class="input"> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></div> 
    </div> 
 
    <div class="tr">
    <div> </div>
    <div > 
  <asp:Label ID="Label4" runat="server" Text="图标"></asp:Label>
     </div>
    <div> 
   <asp:FileUpload Width="570" ID="FileUpload1" runat="server" /> 
     </div>
    <div style="clear:both;">
        <asp:Label ID="Labelimg" runat="server" Text=""></asp:Label> </div> 
    </div> 
    

    <div class="tr" style="text-align:left;padding:20px"><asp:Button ID="Button1" runat="server" Text="新增支付" OnClick="Button1_Click" /></div>
    </div>

    <div style="clear:both;" class="titled"><a href="PaymentEdit.aspx?ID=<%=pid%>" style="color:#ffffff;text-decoration:underline;">新增支付方式</a></div>
        <table border="0" cellspacing="1" cellpadding="3" class="table" width="98%">
            <tr>
                <td colspan="7" class="title">
                         [支付方式列表]    
                </td>
            </tr>
            <tr>
                <td colspan="7" class="td">
                    <div align="center">
                        <asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                            DataKeyNames="id" Width="100%">
                            <HeaderStyle Font-Bold="True" Wrap="False" ForeColor="White" CssClass="title" BackColor="#799AE1"
                                Height="25px"></HeaderStyle>
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="4%" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBoxID" runat="server" name="CheckBoxID" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="支付名称">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="10%" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <asp:Label ID="Title" runat="server" Text='<%#Eval("PaymentName")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="支付代码">
                                    <ItemStyle CssClass="td" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <%#Eval("PaymentCode")%>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="支付图标">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="10%" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <asp:Label ID="PointValue" runat="server" Text='<%#Eval("PaymentImg")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>


                                <asp:TemplateField HeaderText="支付汇率">
                                    <ItemStyle CssClass="td" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                        <%# Eval("PayExRate")%>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="支付备注">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="10%" />
                                    <HeaderStyle CssClass="td" />
                                    <ItemTemplate>
                                  <%#Eval("Remark")%>
                                     
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="操作">
                                    <ItemStyle HorizontalAlign="Center" CssClass="td" Width="10%" />
                                    <ItemTemplate>
                                        <a href="PaymentEdit.aspx?ID=<%=pid%>&pid=<%#Eval("ID")%>">修改</a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle CssClass="title" />
                        </asp:GridView>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="7" class="td">
                    <div align="right">
                        <webdiyer:AspNetPager ID="myAspNetPager" runat="server" HorizontalAlign="Right" OnPageChanged="myAspNetPager_PageChanged"
                            ShowCustomInfoSection="Left" SubmitButtonText=" G O  " CustomInfoHTML="Page  <font color='red'><b>%CurrentPageIndex%</b></font> of  %PageCount%&nbsp;&nbsp;Order %StartRecordIndex%-%EndRecordIndex%"
                            PageSize="20" AlwaysShow="True">
                        </webdiyer:AspNetPager>
                    </div>
                </td>
            </tr>
      <tr>
        <td align="center" class="td" colspan="7" style="height: 25px">
          <asp:TextBox ID="txtKeywords" runat="server"></asp:TextBox>
          &nbsp;
          <asp:Button ID="Button4" runat="server" Text="  搜　索　" onclick="Button2_Click" />
        </td>
      </tr>



        </table>







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