<%@ page language="C#" autoeventwireup="true" inherits="Admin_ImageSpec_List, GroupTGWeb_deploy" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<!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>Untitled Page</title>
       <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
         <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
    <div>
      <div class="navigator">【 图片规格 】</div>
    
        <table style="width:100%">
            <tr>
                <td align="left" colspan="2">
    
        <cc1:Num1GridView ID="Num1GridViewShow" runat="server" 
            AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
            AutoGenerateColumns="False" 
            DescendingImageUrl="~/images/SortDesc.gif" Width="100%" 
            DataSourceID="XmlDataSourceData" AddSequenceColumn="False" 
                        AllowMultiColumnSorting="False" BorderColor="#CCDDEF" BorderStyle="Solid" 
                        BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？" 
                        Edit="False" FixHeader="False" GridViewSortDirection="Ascending" 
                        PagingStyle="None" style="margin-left: 2px;" TableName="">
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF" Height="22px"></HeaderStyle>

<PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC" ></PagerStyle>
            <Columns>
                <asp:TemplateField Visible="False">
                    <HeaderTemplate>
                        <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" 
                            type="checkbox"  />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input id="checkboxItem" type="checkbox" Value='<%# Eval("guid") %>'  />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                <asp:BoundField DataField="Width" HeaderText="图片宽度" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Height" HeaderText="图片高度" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="name" HeaderText="模块名">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="description" HeaderText="说明">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
        </cc1:Num1GridView>
                </td>
            </tr>
            <tr style="display:none">
                <td align="left" colspan="2">
                <div class="vote">
                    <asp:Button ID="ButtonAdd" runat="server" CausesValidation="False" 
                         Text="添加" CssClass="bt2"/>
                    &nbsp;<asp:Button ID="ButtonDelete" runat="server" 
                        onclientclick="return DeleteButton()" Text="删除" 
                        onclick="ButtonDelete_Click" CssClass="bt2" />
                    <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" /></div>
                </td>
            </tr>
            <tr style="display:none">
                <td align="right" width="20%">
                    <asp:Label ID="LabelWidth" runat="server" Text="图片宽度："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxWidth" runat="server"  CssClass="input2"></asp:TextBox>
                    <font color="red">
                            <asp:Label ID="Label10" runat="server" Text="*"></asp:Label>
                            </font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorWidth" 
                            runat="server" ControlToValidate="TextBoxWidth" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorWidth" 
                            runat="server" ControlToValidate="TextBoxWidth" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr style="display:none">
                <td align="right" >
                    <asp:Label ID="LabelHeight" runat="server" Text="图片高度："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxHeight" runat="server"  CssClass="input2"></asp:TextBox>
                    <font color="red">
                            <asp:Label ID="Label9" runat="server" Text="*"></asp:Label>
                            </font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorHeight" 
                            runat="server" ControlToValidate="TextBoxHeight" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorHeight" 
                            runat="server" ControlToValidate="TextBoxHeight" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr class="btconfig" style="display:none">
                <td align="right" >
                    &nbsp;</td>
                <td align="left" >
                    <asp:Button ID="ButtonConfirm" runat="server" 
                        Text="确定" ToolTip="Submit" onclick="ButtonConfirm_Click"  CssClass="bt2"/>
                    &nbsp;<input id="inputReset" type="reset" value="重置"  class="bt2"/></td>
            </tr>
        </table>
        <asp:XmlDataSource ID="XmlDataSourceData" runat="server" 
            DataFile="~/Themes/Skin_Default/ImageSpec.xml"></asp:XmlDataSource>
        <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
        <asp:HiddenField ID="hiddenGuid" runat="server" Value="0" />
    
    </div>
    </form>
</body>
</html>
