<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Picture_Category_Manage, V5Shop.Shop.Picture" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>
<!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 runat="server">
    <title>图片类别管理</title>
    <link href="css/css.css" rel="stylesheet" type="text/css">
    <link href="css/css_list.css" rel="stylesheet" type="text/css">
    <link href="css/control.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<style>
.zhuxiao { color:#087300}
.zhuxiao a:hover { color:#ff6600; text-decoration:none}
.zhuxiao a:active { color:#087300; text-decoration:underline}
.zhuxiao a:link { color:#087300; text-decoration:underline}
.zhuxiao a:visited { color:#000000; text-decoration:underline}
</style>
<body>
    <form id="form1" runat="server">
    <div>
    <div>
        <uc3:ManageHeader ID="ManageHeader1" runat="server" />
        
        <div id="content">
            <div id="tool">
              <input type="checkbox" class="checkbox" id="CheckAllBox" onclick="CheckAll()" /> 全选
        　    <asp:LinkButton ID="btnAdd" runat="server" CausesValidation="false" ForeColor="#4B6888" OnClick="btnAdd_Click" meta:resourcekey="btnAddResource2"><img src="images/icon/key_add.gif" /> 添加</asp:LinkButton>
        　    <asp:LinkButton ID="btnEdit" runat="server" CausesValidation="false" ForeColor="#4B6888" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" meta:resourcekey="btnEditResource2"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
        　    <asp:LinkButton ID="btnDel" runat="server" CausesValidation="false" ForeColor="#4B6888" OnClick="btnDel_Click" OnClientClick="return CheckDel()" meta:resourcekey="btnDelResource2"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>
        　  </div>
            
            <div class="listborder">
            <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" meta:resourcekey="GridViewShowResource1" 
            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" 
            HeaderStyle-ForeColor="#000" EmptyDataText="没有查询到任何记录" TableName="Picture">
                <Columns>
                    <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                    <itemstyle width="5%" />
                        <ItemTemplate>
                            <input runat="server" class="checkbox" Value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out">
                        </ItemTemplate>
                    <itemstyle horizontalalign="Center"  /></asp:TemplateField>
                    <asp:BoundField DataField="id" SortExpression="ID" HeaderText="ID" meta:resourcekey="BoundFieldResource1">
                                <itemstyle width="10%" />
                </asp:BoundField>
                    <asp:BoundField DataField="Name" SortExpression="Name" HeaderText="类别名称" meta:resourcekey="BoundFieldResource2" >
                                <itemstyle width="25%" />
                </asp:BoundField>
                    <asp:BoundField DataField="Description" SortExpression="Description" HeaderText="简单描述" meta:resourcekey="BoundFieldResource3" >
                                <itemstyle width="60%" />
                </asp:BoundField>
                </Columns>
            </V5Shop:V5ShopGridView>
            </div>
		  <div style="padding:20px"><font color="#009900">系统默认的情况下会提供如下分类“友情链接图片|品牌图片|导购图片|活动图片|文章图片|商品图片”，可以删除这些分类。可根据自己的需要创建分类。<br>
注意：</font><br>
1、可根据自行需要创建分类，例如：手机图片|化妆品图片|服装图片 等<br>
2、广告图片、模板自带图片不需要在此创建分类。可到“模板/标签系统”----<img src="images/arrow1b.gif"><span class="zhuxiao"><a href="Template_Picture_Manage.aspx">模板图片分类</a></span> 中创建</div>
            
            <asp:Panel ID="AddField" runat="server" Visible="false">
                <div align="center" style="background:#f1f1f1">
					<table cellpadding="0" cellspacing="0" width="500">
						<tr>
							<td width="20%" height="30" align="right" >
							<asp:Label ID="lblName" runat="server" Text="类别名称：">
							</asp:Label>
							</td>
							<td align="left">
							<asp:TextBox ID="txtName" runat="server" Width="300px" MaxLength="20"></asp:TextBox>
							<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName" ErrorMessage="不能为空" Display="Dynamic">
							</asp:RequiredFieldValidator>
							<span class="NeedMsg">*</span> </td>
						</tr>
						<tr>
							<td width="20%" height="30" align="right" >
							<asp:Label ID="lblDescritpion" runat="server" Text="简单描述：">
							</asp:Label>
							</td>
							<td  align="left">
							<asp:TextBox ID="txtDescription" TextMode="MultiLine" Width="300px" Height="40px" runat="server">
							</asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtDescription"
                                    ErrorMessage="长度必须在100字以内" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator></td>
						</tr>
						<tr>
							<td colspan="2" align="center" height="30">
							<asp:Button ID="btnAddSubmit" CssClass="button" runat="server" Text="确定" OnClick="btnAddSubmit_Click" meta:resourcekey="btnAddResource1" />
							<asp:Button ID="btnEditSubmit" CssClass="button" runat="server" Text="更新" OnClick="btnEditSubmit_Click" Visible="False" meta:resourcekey="btnEditResource1" />
							<input id="iptReset" runat="server" type="reset" value="重置" class="button" />
							</td>
						</tr>
					</table>
				</div>
            </asp:Panel>
        </div>
        
        <div id="hiddenfield">
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="PageIndex" runat="server" Value="0"/>
            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0"/>
            <uc1:HiddenField ID="Alert" runat="server" />
        </div>
        
        <uc2:PageBottom ID="PageBottom1" runat="server" />
    </div>
    </div>
    </form>
</body>
</html>
