<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/AdmMaster.Master" CodeBehind="Noticia.aspx.vb" Inherits="WebFoundations.WFPortal.BaseModules.UI.Noticia" %>

<%@ Register TagPrefix="wff" Namespace="WebFoundations.ServerControls" Assembly="WebFoundations.ServerControls" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ActionContent" runat="server">
    <ul>
        <li>
            <asp:HyperLink ID="lnkadd" runat="server" CssClass="add" />
        </li>
        <li>
            <asp:HyperLink ID="lnkedit" runat="server" CssClass="edit" />
        </li>
        <li>
            <asp:HyperLink ID="lnkdelete" runat="server" CssClass="delete" />
        </li>
        <li>
            <asp:HyperLink ID="lnkrefresh" runat="server" CssClass="refresh" />
        </li>
        <li>
            <asp:LinkButton ID="lnkExport" runat="server" CssClass="export" />
        </li>
    </ul>
</asp:Content>
<asp:Content ID="ContentFilter" ContentPlaceHolderID="FilterContent" runat="server">
    <div class="fields">
        <label>
            <span>Título</span>
            <asp:TextBox runat="server" ID="txtTitleSearch" />
        </label>
        <label>
            <asp:Label ID="lbldatefrom" runat="server" Text="de" />
            <div>
                <wff:DatePicker ID="datefrom" DisableLowerValuesFor="dateto" Width="115px" runat="server" />
                <asp:Label ID="lbldateto" runat="server" Text="até" />
                <wff:DatePicker ID="dateto" runat="server" Width="115px" />
            </div>
        </label>
        <label>
            <span>Editoria</span>
            <asp:DropDownList runat="server" ID="ddlEditoriasSearch" />
        </label>
    </div>
    <asp:Button ID="btnbuscar" runat="server" CssClass="search" Text="Buscar" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <telerik:RadGrid ID="gridNoticia" runat="server" AutoGenerateColumns="false" AllowSorting="True" GridLines="None" AllowPaging="True" PageSize="10">
                <MasterTableView AllowSorting="True">
                    <Columns>
                        <telerik:GridBoundColumn DataField="Titulo" HeaderText="Titulo" UniqueName="Titulo" SortExpression="Titulo">
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle HorizontalAlign="Center" Width="55%" />
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Publicacao" UniqueName="Publicacao" SortExpression="Criacao">
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle HorizontalAlign="Center" Width="15%" />
                            <ItemTemplate>
                                <asp:Label ID="lblpublish" runat="server"></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Editorias" UniqueName="Editorias">
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            <ItemTemplate>
                                <asp:Label ID="lbleditorias" runat="server"></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Criador" UniqueName="Criador" SortExpression="Criador">
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle HorizontalAlign="Center" Width="20%" />
                            <ItemTemplate>
                                <asp:Label ID="lblcriador" runat="server"></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowColumnHide="false" Selecting-AllowRowSelect="true"
                    Scrolling-AllowScroll="false"
                    Scrolling-UseStaticHeaders="true">
                </ClientSettings>
                <ExportSettings ExportOnlyData="True" FileName="Editorias" IgnorePaging="True" OpenInNewWindow="True" />
            </telerik:RadGrid>
            <asp:HiddenField ID="PostBackHidden" runat="server"></asp:HiddenField>
        </ContentTemplate>
    </asp:UpdatePanel>
    <wff:WindowManager ID="EditWindow" runat="server">
        <Windows>
            <telerik:RadWindow ID="EditDialog" runat="server" Height="600px" Width="800px" ReloadOnShow="true" Modal="true" />
        </Windows>
    </wff:WindowManager>
</asp:Content>
