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

<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="uc1" %>
<!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 href="../css/Num1GridView.css" rel="stylesheet" type="text/css">
    <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 class="navigator">
        【 图片类型 】</div>
    <table style="width: 100%" cellpadding="0" cellspacing="0">
        <tr style="display: none">
            <td align="left">
                <div class="query" style="padding-left: 20%">
                    <asp:Label ID="Label3" runat="server" Text="类别名称:"></asp:Label>
                    <asp:TextBox ID="textBoxTypeName" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:Button ID="ButtonSearch" runat="server" Text="查询" OnClick="ButtonSearch_Click"
                        CausesValidation="False" CssClass="bt2" /></div>
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2">
                <cc1:Num1GridView ID="Num1GridViewShow" runat="server" AllowPaging="True" AllowSorting="True"
                    AscendingImageUrl="~/images/SortAsc.gif" AutoGenerateColumns="False" DescendingImageUrl="~/images/SortDesc.gif"
                    Width="100%" DataSourceID="ObjectDataSourceData" 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>
                            <HeaderStyle HorizontalAlign="Center" Width="30px" />
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Name" HeaderText="类型名称" SortExpression="Name">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Description" HeaderText="类型描述" SortExpression="Description">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                </cc1:Num1GridView>
            </td>
        </tr>
        <tr >
            <td align="left" colspan="2">
                <div class="vote">
                    <%--<asp:Button ID="ButtonAdd" runat="server" OnClick="ButtonAdd_Click1" Text="添加" CausesValidation="False"
                        CssClass="bt2" />--%>
                    <%--<asp:Button ID="ButtonEdit" runat="server" OnClick="ButtonEdit_Click" OnClientClick="return EditButton()"
                        Text="编辑" CssClass="bt2" />--%>
                    <%--<asp:Button ID="ButtonDelete" runat="server" OnClick="ButtonDelete_Click" OnClientClick="return DeleteButton()"
                        Text="删除" CssClass="bt2" />--%>
                    <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                </div>
            </td>
        </tr>
    </table>
    <br />
 <%--   <div style="border: solid 1px #CCDDEF;">
        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
            <tr>
                <td align="left" colspan="2" style="background-color: #6699CC; line-height: 30px;
                    height: 30px; color: #ffffff; font-weight: bold;">
                    &nbsp;<asp:Label ID="LabelPageTitle" runat="server" Text="新增图片类型"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    <asp:Label ID="Label1" runat="server" Text="类别名称："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="textBoxName" runat="server" CssClass="input2"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="textBoxName"
                        Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="textBoxName"
                        Display="Dynamic" OnServerValidate="CustomValidator1_ServerValidate">已存在</asp:CustomValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorName" runat="server"
                        ControlToValidate="textBoxName" Display="Dynamic" ErrorMessage="类别名称最多50个字符"
                        ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="Label2" runat="server" Text="描述："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="textBoxDescription" runat="server" Height="60px" TextMode="MultiLine"
                        Width="440px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr style="background-color: #EEEEEE;">
                <td align="right">
                    &nbsp;
                </td>
                <td align="left">
                    <div style="margin: 4px;">
                        <asp:Button ID="ButtonConfirm" runat="server" Text="确定" OnClick="ButtonConfirm_Click"
                            ToolTip="Submit" CssClass="bt2" />
                        &nbsp;<input id="inputReset" type="reset" value="重置" class="bt2" />
                    </div>
                </td>
            </tr>
        </table>
    </div>--%>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_Image_Type_Action" 
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="textBoxTypeName" Name="name" PropertyName="Text"
                Type="String" />
            <asp:Parameter Name="isDeleted" Type="Int32" DefaultValue="0" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="hiddenGuid" runat="server" Value="0" />
    </form>
</body>
</html>
