<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/ModalAdminPage.master" CodeBehind="NoticiaEdit.aspx.vb" Inherits="WebFoundations.WFPortal.BaseModules.UI.NoticiaEdit" %>

<%@ Register Src="~/WFControls/WFPagePicker.ascx" TagName="WFPagePicker" TagPrefix="uc1" %>
<%@ Register Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="WebFoundations.WFPortal.Controls" Namespace="WebFoundations.WFPortal.Controls.Content" TagPrefix="WFC" %>
<%@ Register Namespace="WebFoundations.ServerControls" Assembly="WebFoundations.ServerControls" TagPrefix="WFF" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <table border="0" cellpadding="5" width="100%" cellspacing="0">
        <tr>
            <td>
                <telerik:RadTabStrip ID="PainelTabs" MultiPageID="Tabs" SelectedIndex="0" runat="server" AutoPostBack="True" Width="100%" CausesValidation="true">
                    <Tabs>
                        <telerik:RadTab ID="Noticia" Text="Noticia" PageViewID="TabNoticia" runat="server">
                        </telerik:RadTab>
                        <telerik:RadTab ID="Detalhes" Text="Detalhes" PageViewID="TabDetalhes" runat="server"
                            Enabled="true">
                        </telerik:RadTab>
                        <telerik:RadTab ID="Conteudo" Text="Conteudo" PageViewID="TabConteudo" runat="server"
                            Enabled="false">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="Tabs" runat="server" SelectedIndex="0" Width="100%">
                    <telerik:RadPageView ID="TabNoticia" runat="server">
                        <div class="fields">
                            <label>
                                <asp:label id="lblTitulo" cssclass="contPadrao2" runat="server" />
                                <asp:textbox id="txtTitulo" width="250px" maxlength="300" runat="server"></asp:textbox>
                                <asp:requiredfieldvalidator id="obrtitulo" runat="server" controltovalidate="txtTitulo" display="Dynamic" />
                            </label>
                            <label>
                                <asp:label id="lblSubTitulo" cssclass="contPadrao2" runat="server" />
                                <asp:textbox id="txtsubtitulo" runat="server" maxlength="300" width="250px"></asp:textbox>
                            </label>
                            <label>
                                <asp:label id="lblstartdate" cssclass="contPadrao2" runat="server" />
                                <WFF:DatePicker ID="dtpkinicio" runat="server" />
                            </label>
                            <label>
                                <asp:label id="lblenddate" cssclass="contPadrao2" runat="server" />
                                <WFF:DatePicker ID="dtpkfim" runat="server" />
                            </label>
                            <label>
                                <asp:label id="lblEditorias" cssclass="contPadrao2" runat="server" />
                                <asp:checkboxlist id="chkEditorias" repeatcolumns="3" cssclass="checkbox" runat="server" />
                            </label>
                            <label>
                                <asp:label id="lblGruposVisualizam" cssclass="contPadrao2" runat="server" />
                                <WFF:AccessList ID="alGruposVisualizam" runat="server" />
                            </label>
                            <label>
                                <asp:label id="lblConteudo" cssclass="contPadrao2" runat="server" />
                                <asp:radiobuttonlist id="optContentType" runat="server" autopostback="true" causesvalidation="true" cssclass="checkbox" repeatcolumns="2" />
                            </label>
                            <label id="trPagePicker" runat="server">
                                <asp:label id="lblPaginaExterna" cssclass="contPadrao2" runat="server" />
                                <uc1:WFPagePicker ID="wfpPaginaExterna" runat="server" ShowPage="true" ShowArea="true" AddSelect="true" AdminMode="false" />
                            </label>
                        </div>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="TabDetalhes" runat="server">
                        <div class="fields">
                            <label>
                                <asp:label id="lblFonte" cssclass="contPadrao2" runat="server" />
                                <asp:textbox id="txtfonte" runat="server" maxlength="100" width="250px"></asp:textbox>
                            </label>
                            <label>
                                <asp:label id="lblDestaque" cssclass="contPadrao2" runat="server" />
                                <asp:checkbox id="chkdestaque" cssclass="checkbox" runat="server" />
                            </label>
                            <label>
                                <asp:label id="lblOlhoNoticia" cssclass="contPadrao2" runat="server" />
                                <WFF:TextArea ID="txtareaolho" runat="server" MaxLength="1000" Style="margin-bottom: 0px" Width="300px" Height="160px" LengthMessageCss="" TextMode="MultiLine" />
                            </label>
                            <label>
                                <asp:label id="lblImgOlhoNoticia" cssclass="contPadrao2" runat="server" />
                                <asp:fileupload id="fupImagOlhoNoticia" runat="server" />
                                <asp:hyperlink id="lnkimgolho" target="_images" visible="False" runat="server"></asp:hyperlink>
                                <asp:imagebutton id="imgbtndelolho" visible="False" imageurl="~/WFResources/Common/Images/icons/Delete.png" runat="server" />
                            </label>
                            <label>
                                <asp:label id="lblImagemBanner" cssclass="contPadrao2" runat="server" />
                                <asp:fileupload id="fupImagemBanner" runat="server" />
                                <asp:hyperlink id="lnkimagebanner" target="_images" visible="False" runat="server"></asp:hyperlink>
                                <asp:imagebutton id="imgbtndelbanner" visible="False" imageurl="~/WFResources/Common/Images/icons/Delete.png" runat="server" />
                            </label>
                        </div>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="TabConteudo" runat="server">
                        <WFC:RichTextEditor Width="100%" runat="server" Height="390px" ID="edtContent" />
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </td>
        </tr>
    </table>
    <section class="actions">
        <asp:button id="btnConfirmar" runat="server" causesvalidation="true" cssclass="button" />
        &nbsp;&nbsp;
				<asp:button id="btnCancelar" runat="server" causesvalidation="false" cssclass="button" />
    </section>
</asp:Content>
