<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_ManageFShopClass, HoWaveVGO" title="收藏分类管理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="MainMenu">
	<div class="TabMenu">
		<!--一级导航-->				
       <ul id="M1" >
          <li ><a href="../../Shop/Member/Shop_MyFavourite.aspx?tag=0">商品</a></li>
          <li class="active"><a href="#">店铺</a></li>
       </ul>      
    </div>
    <div style="border:#6493C8 2px solid">
    <br />
    <div class="tips_onclick"><div style="padding:5px 5px 5px 25px">
        您可以设置 5 个分类，分类标题不可以超过 6 个汉字哦。 分类可以帮您更好的管理收藏的店铺哟!</div></div>
    <br />
    <table class="ShopOrderStyle">
       <caption>添加类别</caption>
       <tr><td class="OrderTitle">类别名称：</td><td><asp:TextBox ID="TxtF_ShopClassName" runat="server" Height="16px"/></td></tr>
       <tr><td class="OrderTitle">备注：</td><td><asp:TextBox ID="TxtF_ShopClassRemark" runat="server"  TextMode="MultiLine" Width="200px" Height="50px"/></td></tr>
       <tr><td colspan="2" style=" text-align:center;"><asp:Button ID="ButUpdate" runat="server" OnClick="ButUpdate_Click" Text="更新" /><asp:Button ID="ButADD" runat="server" OnClick="ButADD_Click" Text="增加" /></td></tr>
    </table>    
    <asp:RequiredFieldValidator ID="Ref1" runat="server" ControlToValidate="TxtF_ShopClassName" ErrorMessage="名称不能空" />
    
    <br />
    <asp:Label ID="LabErro" runat="server"/>
    <asp:TextBox ID="TXTPROCLASSID" runat="server" Visible="False" /><br />
    <asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" AutoGenerateColumns="False" OnDataBound="GridView1_DataBound" 
    OnSelectedIndexChanged="GridView1_SelectedIndexChanged"  CssClass="tableHead">
        <Columns>
            <asp:BoundField DataField="F_ShopClassID" HeaderText="编号" />
            <asp:BoundField DataField="F_ShopClassName" HeaderText="类别名" />
            <asp:BoundField HeaderText="收藏的数量" ReadOnly="True" />
            <asp:HyperLinkField DataNavigateUrlFields="F_ShopClassID" DataNavigateUrlFormatString="?F_ShopClassID={0}"
                HeaderText="修改" Text="修改" />
            <asp:CommandField HeaderText="删除" SelectText="删除" ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
</div>
</div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetFShopClassByUserID"
        TypeName="Shop_FShopClass" UpdateMethod="GetFShopClassByUserID">
        <UpdateParameters>
            <asp:Parameter Name="UserID" Type="Int32" />
        </UpdateParameters>
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="UserID" SessionField="Howave_UserID"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

