<%@ page title="" language="C#" masterpagefile="~/Member/MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_MytryItem, WebApp_deploy" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script src="Js/TryMember.js" type="text/javascript"></script>
         <div class="pageTitle">申请中的试用</div>
        <asp:Repeater ID="Repeater1" runat="server">
             <ItemTemplate>
                 <table border="0" class="SearchTableStyle">
                     <tr>
                         <td style=" width:130px">
                            <div style=" width:130px; height:130px">
                              <a target="_blank" href="../Try/ShowMytestProduct.aspx?ProductID=<%#Eval("TryID") %>"><img alt="" src="<%#Eval("ProductImagePath") %>" height="130px" width="130px" /></a>
                            </div>
                         </td>
                         <td style="width:600px">
                             <a target="_blank" href="../Try/ShowMytestProduct.aspx?ProductID=<%#Eval("TryID") %>"> <span style="color:#6A3E71;font:700 14px tahoma;"> <%#Eval("ProductName") %></span></a>
                             <table style="width:500px; height:100px">
                                 <tr>
                                    <td>申请时间：<%#Eval("InputTime")%></td>
                                 </tr>
                                 <tr>
                                    <td >试用份数：<%#Eval("ProductNum") %></td>
                                 </tr>
                                 <tr>
                                    <td>店铺价：<%#Eval("marketPrice") %></td>
                                 </tr>
                                 <tr>
                                    <td>
                                       <asp:Panel ID="DiscountPrice" runat="server" Visible='<%#JustDiscountPrice(Eval("TryID").ToString()) %>'>
                                           折扣价：<%#Eval("DiscountPrice") %>
                                       </asp:Panel>
                                    </td>
                                 </tr>
                             </table>
                         </td>
                         <td>
                            <table width="100%">
                                <tr>
                                   <td style=" width:40%;text-align:center;"><%#GetStatus(Eval("Through").ToString())%></td>
                                   <td style=" width:60%; text-align:center; background:none repeat scroll 0 0 #F2E8EF; color:#794B80; border:1px solid #CF9CD7; display:inline-block; font-size:14">
                                      <a target="_blank" href="../Try/ShowMytestProduct.aspx?ProductID=<%#Eval("TryID") %>"> 查看详情</a>
                                   </td>
                                </tr>
                                <tr>
                                   <td style=" width:40%;text-align:center;"><a href="#" onclick="showWindow(600,300,<%#Container.ItemIndex %>)"><%#ShowCommentWriting(Eval("TryID").ToString())%></a></td>
                                   <td><input id="GetTryID<%#Container.ItemIndex %>" type="hidden" value="<%#Eval("TryID") %>" /></td>
                                </tr>
                            </table>
                         </td>
                     </tr>
                 </table>
             </ItemTemplate>
         </asp:Repeater>
        <div style=" text-align:center; width:98%;"> <asp:Label ID="lbPage" runat="server" Text=""></asp:Label></div>
        
        <div style="position:absolute;display:none; left:0px; top:0px;" id="tranDiv">
              <div style="position:absolute;left:0px; top:0px; width:100%; height:100%;background-color:#000000;filter:alpha(Opacity=30)" id="tranDivBack"> </div> 
              <div align='center'style='position:absolute;left:0px; top:0px; width:100%; height:100%; background-color:#e5edf5;background-image:url(images/bestnetqywimg/tccbg.gif);'  id='infoDiv'></div> 
        </div> 
        
        <div id="popLayer" style="display:none">

            <table width="90%">
               <tr>
                  <td style=" text-align:right; width:30%">评价等级：</td>
                  <td style=" text-align:left; width:70%">
                      <asp:RadioButtonList ID="CommentLevel" runat="server" RepeatDirection="Horizontal"
        RepeatLayout="Flow">
        <asp:ListItem Value="1"><img alt="差评" src="../Images/star.jpg" width="12" height="12" /> </asp:ListItem>
        <asp:ListItem Selected="True" Value="3"><img alt="中评" src="../Images/star.jpg" width="12" height="12" /><img alt="中评" src="../Images/star.jpg" width="12" height="12" /><img alt="中评" src="../Images/star.jpg" width="12" height="12" /> </asp:ListItem>
        <asp:ListItem Value="5"><img alt="好评" src="../Images/star.jpg" width="12" height="12" /><img alt="好评" src="../Images/star.jpg" width="12" height="12" /><img alt="好评" src="../Images/star.jpg" width="12" height="12" /><img alt="好评" src="../Images/star.jpg" width="12" height="12" /><img alt="好评" src="../Images/star.jpg" width="12" height="12" />  </asp:ListItem>
    </asp:RadioButtonList>
                  </td>
               </tr>
               <tr>
                  <td style=" text-align:right; width:30%">内容：</td>
                  <td style=" text-align:left; width:70%">
                      <asp:TextBox ID="ContentBox" runat="server" TextMode="MultiLine" Width="400px" Height="150px"></asp:TextBox><br />
                      <table>
                         <tr>
                            <td style=" width:130px">(最多只能输入200字)</td>
                            <td style=" width:200px"> <div id="ShowError"></div></td>
                         </tr>
                      </table>
                     
                      <input id="GetTryID" name="GetTryID" type="hidden" runat="server" value="" />
                  </td>
               </tr>
               <tr>
                  <td style=" text-align:center" colspan="2">
                      <asp:Button ID="ButComment" runat="server" onclick="ButComment_Click" Text="评论" />
                      <input type="button" id="Cannel" onclick="closeWindow()" value="取消" />
                  </td>
               </tr>
            </table>
         </div>

</asp:Content>
