<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_AddMyFav, WebApp_deploy" title="添加收藏" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript" src="../JS/f_function.js"></script>
    <script type="text/javascript">
        function setButtonActive()
        {
           var _flag=parseInt("<%=m_flag %>");
           var productli=document.getElementById("productLi");
           var shopli=document.getElementById("shopLi");
           if(_flag==0){
                productli.className="active";    
                shopli.className=""; 
           }else{
                productli.className=""; 
                shopli.className="active"; 
           }
        }
    </script>
    <div id="MainMenu">
        <div class="TabMenu">
            <!--一级导航-->
            <ul id="M1">
                <li class="active" id="productLi"><a href="Shop_MyFavourite.aspx?tag=0">商品</a></li>
                <li id="shopLi"><a href="Shop_MyFavourite.aspx?tag=1">店铺</a></li>
            </ul>
        </div>
        <div class="TabText">
            <asp:Panel ID="Panel" runat="server" Width="100%">
                <div class="tips_onclick" style="width: 95%; margin: 5px;">
                    点确定你就可以收藏此商品
                </div>
                <table class="SearchTableStyle">
                    <tr>
                        <td width="110" rowspan="6" valign="top" style="text-align: center;">
                            <asp:HyperLink ID="HL_ProductID" runat="server" Target="_blank">
                                <asp:Image ID="ProductImage1" onerror="this.src='/Images/nopicture.gif'" runat="server"
                                    Height="100px" Width="100px" /></asp:HyperLink>
                        </td>
                        <td width="80">
                            名 称：
                        </td>
                        <td>
                            <asp:HyperLink ID="Hl_ProductName" runat="server" Target="_blank" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            当前价格：
                        </td>
                        <td>
                            <asp:Label ID="LabProductPrice" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            结束时间：
                        </td>
                        <td>
                            <asp:Label ID="LabLeftTime" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            店 主：
                        </td>
                        <td>
                            <asp:HyperLink ID="HL_UserName1" runat="server" Target="_blank" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            分 类：
                        </td>
                        <td>
                            <asp:DropDownList ID="DropF_ProductClassID" runat="server" AppendDataBoundItems="true">
                                <asp:ListItem Text="未分类" Value="-1" />
                            </asp:DropDownList>
                            <asp:Button ID="Button3" runat="server" Text="类别管理" OnClick="Button3_Click2" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            备 注：
                        </td>
                        <td>
                            <div align="left">
                                <asp:TextBox ID="TxtF_Remark" runat="server" TextMode="MultiLine" Height="50px" Width="200px" />
                            </div>
                        </td>
                    </tr>
                </table>
                <div style="margin-top: 2px; background: #f6f6f6; padding-top: 2px; width: 100%;
                    text-align: center;">
                    <asp:Button ID="ProductButton" runat="server" Text=" 确 定 " OnClick="ProductButton_ServerClick" />
                    <input type="button" value=" 返 回 " onclick="javascript:history.go(-1)" />
                </div>
            </asp:Panel>
            <asp:Panel ID="Pane2" runat="server" Height="50px" Width="100%">
                <div class="tips_onclick" style="width: 95%; margin: 5px;">
                    点确定你就可以收藏此店铺
                </div>
                <table class="SearchTableStyle">
                    <tr>
                        <td width="160" rowspan="6" valign="middle" style="text-align: center; vertical-align: middle">
                            <asp:Image ID="ShopImage1" runat="server" />
                        </td>
                        <td>
                            店 名：
                        </td>
                        <td>
                            <asp:HyperLink ID="HL_ShopName" runat="server" Target="_blank" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            店铺类别：
                        </td>
                        <td>
                            <asp:HyperLink ID="HL_ShopClassName" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            店 长：
                        </td>
                        <td>
                            <asp:HyperLink ID="HL_UserName2" runat="server" Target="_blank" />
                            <asp:HyperLink ID="HL_ShopLel" runat="server" Target="_blank" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            分 类：
                        </td>
                        <td>
                            <asp:DropDownList ID="DropF_ShopClassID" runat="server" AppendDataBoundItems="true">
                                <asp:ListItem Text="未分类" Value="-1" />
                            </asp:DropDownList>
                            <asp:Button ID="Button4" runat="server" OnClick="Button3_Click" Text="类别管理" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            备 注：
                        </td>
                        <td>
                            <asp:TextBox ID="TxtF_Remark1" runat="server" TextMode="MultiLine" Height="50px"
                                Width="200px" />
                        </td>
                    </tr>
                </table>
                <div style="border-top: #1e88c1 2px solid; margin-top: 2px; background: #f6f6f6;
                    padding-top: 2px; width: 100%; text-align: center;">
                    <asp:Button ID="ShopButtonClick" runat="server" Text=" 确 定 " OnClick="ShopButtonClick_ServerClick" />
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text=" 关 闭 " Width="59px" />
                </div>
            </asp:Panel>
            <asp:HiddenField ID="H_FavID" runat="server" />
            <asp:HiddenField ID="H_ProductID" runat="server" />
            <asp:HiddenField ID="H_ShopID" runat="server" />
        </div>
    </div>
    <script type="text/javascript">        setButtonActive();</script>
</asp:Content>
