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

<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<!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 rel="stylesheet" type="text/css" href="style/index.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" language="javascript" src="../../js/CommonJS.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="LabelTitle" runat="server" Text="友情链接"></asp:Label>
            </div>
            <div class="query">
                <table width="100%">
                    <tr>
                        <td align="right">
                            <asp:Localize ID="Localize1" runat="server" Text="链接标题："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxName" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxName" runat="server"
                                ControlToValidate="TextBoxName" Display="Dynamic" ErrorMessage="最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeIsShow" runat="server" Text="是否显示："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListIsShow" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Button ID="ButtonSearch" runat="server" Text="查询" CssClass="bnt1" />
                        </td>
                    </tr>
                </table>
            </div>
            <cc1:GroupFlyGridView ID="GroupFlyGridViewShow" runat="server" AddSequenceColumn="False"
                AllowMultiColumnSorting="False" AutoGenerateColumns="False" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
                TableName="" Width="100%" RowStyle-HorizontalAlign="Center" AllowSorting="True"
                DataSourceID="ObjectDataSourceData" AllowPaging="True" CellPadding="0" Style="margin-left: 0px;"
                CellSpacing="1" GridLines="None">
                <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                </HeaderStyle>
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <input id="checkboxItem" value='<%# Eval("Guid") %>' type="checkbox" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="链接标题" DataField="Name" SortExpression="Name" />
                    <asp:TemplateField HeaderText="链接类型" SortExpression="LinkType">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# ChangeLinkType(DataBinder.Eval(Container, "DataItem(LinkType)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Href" HeaderText="链接地址" SortExpression="Href" />
                    <asp:BoundField HeaderText="简单介绍" DataField="Description" SortExpression="Description">
                        <HeaderStyle CssClass="hidden" />
                        <ItemStyle HorizontalAlign="Center" CssClass="hidden" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="备注" DataField="Memo" SortExpression="Memo">
                        <HeaderStyle CssClass="hidden" />
                        <ItemStyle HorizontalAlign="Center" CssClass="hidden" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="图片类型" SortExpression="ImgType" Visible="false">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# ChangeImgType(DataBinder.Eval(Container, "DataItem(ImgType)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="是否前台显示">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# ChangeIsShow(DataBinder.Eval(Container, "DataItem(IsShow)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="排序号" DataField="OrderID" SortExpression="OrderID" />
                </Columns>
                <RowStyle HorizontalAlign="Center"></RowStyle>
            </cc1:GroupFlyGridView>
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonAdd" runat="server" Text="添加" OnClientClick="GetCheckedBoxValues()"
            CssClass="bnt1 cancel" OnClick="ButtonAdd_Click" />
        <asp:Button ID="ButtonEdit" runat="server" OnClientClick="return EditButton()" Text="编辑"
            CssClass="bnt1 cancel" OnClick="ButtonEdit_Click" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
            CssClass="bnt1 cancel" OnClick="ButtonDelete_Click" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
        TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_Link_Action" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxName" Name="name" PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="DropDownListIsShow" Name="isShow" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:ControlParameter ControlID="ProduceMemLoginID" Name="ProduceMemLoginID" PropertyName="Value"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="ProduceMemLoginID" runat="server" Value="0" />
    </form>
</body>
</html>
