<%@ page language="C#" autoeventwireup="true" inherits="admin_sj, aoshuosoft" %>

<!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 runat="server">
    <title>升级</title>
        <link href="admin.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function sjjg()
{
var jj;
ff=document.getElementById("DropDownList1").value;
jj= parseInt(ff) * parseInt(document.getElementById("mnfy").innerText);
hj.innerText=jj.toString()+"元";
}
function kjjg()
{
var jj;
ff=document.getElementById("DropDownList2").value;
jj= parseInt(ff) * parseInt(document.getElementById("mnfy").innerText);
kjhj.innerText="每年"+jj.toString()+"元";
}
</script>
<body>
    <form id="form1" runat="server" >
    <div>
        <asp:Panel ID="sj" runat="server" Height="50px" Width="100%" Visible="false">
            <table border="0" cellpadding="3" cellspacing="1" align="center"  class="adminmaintable">
                <tr>
                    <td colspan="6" style="height: 30px;" align="center">
                        服务时间升级</td>
                </tr>
                <tr>
                    <td style="width: 88px" >
                        选择使用年数：</td>
                    <td style="width: 42px" >
                        <asp:DropDownList ID="DropDownList1" runat="server" onChange="sjjg()" >
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                        </asp:DropDownList>                       
                            </td>
                            <td style="width: 73px"><div id="hj">360元</div></td>
                            <td style="width: 78px">每年使用费：</td><td style="width: 1px"><div id="mnfy"><asp:Literal ID="syf" runat="server"></asp:Literal></div></td><td>元</td>
                </tr>
                <tr>
                    <td colspan="6">
                         <asp:RadioButton ID="wyzx" Text="网银在线" Checked="true" runat="server" GroupName="0" />
                    </td>
                </tr>
                <tr>
                    <td colspan="6" align="center">
                        <asp:Button ID="sjsj" runat="server" Text="购买支付" OnClick="sjsj_Click" /></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="kj" runat="server" Height="50px" Width="100%" Visible="false"><table border="0" cellpadding="3" cellspacing="1" align="center"  class="adminmaintable">
            <tr>
                <td colspan="6" style="height: 30px;" align="center">
                    空间升级</td>
            </tr>
            <tr>
                <td style="width: 88px" >
                    选择空间：</td>
                <td style="width: 42px" >
                    <asp:DropDownList ID="DropDownList2" runat="server" onChange="kjjg()" >
                    </asp:DropDownList>
                </td>
                <td colspan="4" style="width: 841px">
                    <div id="kjhj">
                        </div>
                </td>
            </tr>
            <tr>
                <td colspan="6" style="text-align:left;" >
                    <asp:RadioButton ID="kjwy" Text="网银在线" Checked="true" runat="server" GroupName="0" />
                </td>
            </tr>
            <tr>
                <td colspan="6" align="center">
                    <asp:Button ID="kjgoumai" runat="server" Text="购买支付" OnClick="kjgoumai_Click"  /></td>
            </tr>
        </table>
        </asp:Panel>
<asp:Panel ID="jl" runat="server"  Width="100%" Visible="false">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
            CellPadding="4" PageSize="15">
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <Columns>
                <asp:BoundField DataField="bh" HeaderText="订单编号" />
                <asp:BoundField DataField="lx" HeaderText="购买产品" />
                <asp:BoundField DataField="je" HeaderText="支付金额" />
                <asp:BoundField DataField="sj" HeaderText="支付时间" />
            </Columns>
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
        </asp:GridView>
        </asp:Panel>
        <asp:Literal ID="tj" runat="server"></asp:Literal></div>
    </form>
</body>
</html>
