<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_AddMyFav, mallz" title="添加收藏" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<script type="text/javascript">
function setButtonActive(flags)
{
    if(flags=="")
        flags = 1;
    var _flag=parseInt(flags);
    var ulObj=document.getElementById("M1");
    if(_flag==1)
    {
        ulObj.childNodes[0].className="active";
        ulObj.childNodes[1].className="";
    }
    else if(_flag==2){
        ulObj.childNodes[0].className="";
        ulObj.childNodes[1].className="active";
    }
    else{
        ulObj.childNodes[0].className="";
        ulObj.childNodes[1].className="";
    }
}
</script>

<div  class="pageTitle">添加到收藏夹</div>

<div id="MainMenu">	
    <div class="TabMenu">
       <ul id="M1" >
          <li class="active"><a href="Shop_MyFavourite.aspx?type=1">商品</a></li>
          <li><a href="Shop_MyFavourite.aspx?type=2">店铺</a></li>
       </ul>      
    </div>
    
    <div class="TabText"><br />
    <asp:PlaceHolder ID="ProductPanel" runat="server" > 
            <table class="SearchTableStyle">
                <tr>
                    <td width="160" rowspan="3" style="text-align:center;">
                        <asp:Image ID="ProductImage" runat="server" />                
                    </td>
                    <td>名 称：</td>
                    <td><asp:HyperLink ID="LabProductName"  runat="server" Target="_blank"/></td>
                </tr>
                <tr style="display:none;">
                    <td>分 类：</td>
                    <td>
                       <asp:DropDownList ID="DropF_ProductClassID" runat="server" AppendDataBoundItems="true" >
                          <asp:ListItem Text="未分类" Value="0" />
                       </asp:DropDownList>                          
                       <asp:Button ID="Button3" runat="server" Text="类别管理"  />
                    </td>
                </tr>
               <tr> 
                    <td>备 注：</td>
                    <td><div align="left">
                            <asp:TextBox id="TxtF_Remark" runat="server"  TextMode="MultiLine" Height="80px"  Width="400px"/>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td><td>&nbsp;</td>
                    <td><asp:Button ID="ProductButton" OnClick="AddSubMit" runat="server" Text=" 确 定 " /> 
                    <asp:Button ID="buttoncl" Text=" 取 消 " runat="server" OnClientClick="javascript:history.go(-1);return false;" /></td>
                </tr>
          </table>
         
    </asp:PlaceHolder>
  
    <asp:PlaceHolder ID="ShopPanel" runat="server" Visible="false">
             <table class="SearchTableStyle">
                <tr>
                    <td width="160" rowspan="3" style="text-align:center;">
                        <asp:Image ID="ShopImage" runat="server"  />
                    </td>
                    <td>店 名：</td>
                    <td><asp:HyperLink ID="LabShopName"  runat="server" Target="_blank"/></td>
                </tr>
                <tr style="display:none;">
                    <td>分 类：</td>
                    <td><asp:DropDownList ID="DropF_ShopClassID" runat="server" AppendDataBoundItems="true" >
                          <asp:ListItem Text="未分类" Value="0" />
                       </asp:DropDownList>                          
                       <asp:Button ID="Button4" runat="server" Text="类别管理" />
                    </td>
                </tr>
                <tr>
                    <td>备 注：</td>
                    <td><asp:TextBox id="TxtF_Remark1" runat="server"  TextMode="MultiLine" Height="80px"  Width="400px"/>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td><td>&nbsp;</td>
                    <td><asp:Button ID="Button1" runat="server" OnClick="AddSubMit"  Text=" 确 定 " /> 
                    <asp:Button ID="buttoncl2" Text=" 取 消 " runat="server" OnClientClick="javascript:history.go(-1);return false;" /></td>
                </tr>
            </table>
           
    </asp:PlaceHolder>
    <br />
    </div>
</div>
 <script type="text/javascript">setButtonActive('<%=m_type %>');</script>  
</asp:Content>