<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetFree.aspx.cs" Inherits="ETongJin.YM.Web.Home.GetFree" %>

<!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 id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>兑换源码 - Powered by E桶金</title>
    <link rel="stylesheet" href="images/user.css" type="text/css" media="screen,projection" />

    <script type="text/javascript" src="../Utility/jquery.js"></script>

    <%if (false)
      {%>

    <script type="text/javascript" src="../Utility/jquery-dev.js"></script>

    <%}%>    <script type="text/javascript" src="images/home.js"></script>
    <script type="text/javascript">
        parent.menuSelect("getFee");
    </script>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
</head>
<body>
    <div class="wrap">
        <form id="form1" runat="server">
        <div class="panel ym_h_rt ym_line">
            <ul class="ym_head">
                <li class="title">兑换源码</li>
            </ul>
            <div style="display: block">
                <asp:Panel ID="pnlList" runat="server">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <HeaderTemplate>
                            <table cellpadding="2px" cellspacing="2px" class="Usertableborder">
                                <tr>
                                    <td style="width: 200px;" class="Usertablerow1">
                                        <b>商品名称</b>
                                    </td>
                                    <td class="Usertablerow1">
                                        <b>价格</b>
                                    </td>
                                    <td class="Usertablerow1">
                                        <b>所需积分</b>
                                    </td>
                                    <td class="Usertablerow1">
                                        <b>发布者</b>
                                    </td>
                                    <td class="Usertablerow1">
                                        <b>更新时间</b>
                                    </td>
                                    <td class="Usertablerow1">
                                        <b>兑换</b>
                                    </td>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <a href="<%#ETongJin.YM.BLL.Product.GetPath(int.Parse(Eval("ProductID").ToString()),Eval("pathurl").ToString())%>"
                                        target="_blank">
                                        <%#Eval("title")%></a>
                                </td>
                                <td>
                                    <%#Eval("Price")%>元
                                </td>
                                <td>
                                    <%#decimal.Parse(Eval("Price").ToString())*10%>金币
                                </td>
                                <td>
                                    <%#Eval("UserName")%>
                                </td>
                                <td>
                                    <%#Eval("UpdateTime")%>
                                </td>
                                <td>
                                    <a href="/home/GetFree.aspx?<%#Eval("ProductID")%>">兑换此源码</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                            <div id="tnt_pagination" style="float:right;font-weight:bold ;">
                                <%=PageStr %></div>
                        </FooterTemplate>
                    </asp:Repeater>
                    您现在拥有<asp:Label ID="lblBalance" runat="server" Text="" Font-Bold="true"></asp:Label>个金币,
                    您可以用这些金币换取您需要的源码！</asp:Panel>
                <asp:Panel ID="pnlSure" Visible="false" runat="server">
                    <br />
                    <table class="Usertableborder">
                        <tr>
                            <td>
                                要兑换的源码名称：
                            </td>
                            <td>
                                <asp:HyperLink ID="hlTitle" runat="server"></asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                需要花费的金币数量：
                            </td>
                            <td>
                                <asp:Label ID="lblPrice" runat="server" Text=""></asp:Label>个金币
                            </td>
                        </tr>
                        <tr>
                            <td>
                                您现有的金币数量：
                            </td>
                            <td>
                                <asp:Label ID="lblBalance2" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Button ID="btnDown" runat="server" Text="确定兑换" OnClick="btnDown_Click" />
                            </td>
                        </tr>
                    </table>
                    <asp:HyperLink ID="hlDownURL" runat="server" Target="_blank" Font-Size="Large" Font-Bold="true"></asp:HyperLink>
                </asp:Panel>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
