<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Template_PictureSize_Manage, V5Shop.Shop.Template" 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 id="Head1" 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>
<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"><img src="images/icon/key_add.gif" /> 添加</asp:LinkButton>
        　    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" ForeColor="#4B6888" OnClientClick="return CheckEdit()" OnClick="btnEdit_Click"><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>
        　    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" ForeColor="#4B6888" OnClick="btnDelAll_Click" ><img src="images/icon/key_clearpic.gif" /> 清理生成图片</asp:LinkButton>
        　    <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="false" ForeColor="#4B6888" OnClick="btnCreateAll_Click" OnClientClick="return CheckCreateClick()" ><img src="images/icon/key_pic.gif" /> 重新生成图片</asp:LinkButton>
        　  </div>
            
            <div class="listborder">
            <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" meta:resourcekey="GridViewShowResource1" 
            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" PageSize="100" 
            HeaderStyle-Height="18px" HeaderStyle-ForeColor="#000" EmptyDataText="没有查询到任何记录" TableName="Picture">
                <Columns>
                    <asp:TemplateField ItemStyle-Width="3%">
                        <ItemTemplate>
                            <input runat="server" class="checkbox" Value='<%# Eval("value") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out">
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="value" HeaderText="图片宽高" />
                </Columns>
            </V5Shop:V5ShopGridView>
            </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%" align="right" style="height: 30px">
							<asp:Label ID="lblName" runat="server" Text="类别名称：">
							</asp:Label>
							</td>
							<td align="left" >
							<asp:TextBox ID="txtName" runat="server" Width="300px">
							</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="center" colspan="2">
							<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 style="padding:20px"><font color="#009900">
            
            图片尺寸用于控制模板切换时，产品图片发生的尺寸变动；<br />
例：A模板产品图片尺寸100*200，而B模板产品图片尺寸500*300，通过图片尺寸功能可以定义100*200和500*300二个图片尺寸，用于在模板切换时自动配套，避免模板切换导致的图片变质。

        
        </font></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>

