<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Src="Busca.ascx" TagName="Busca" TagPrefix="uc3" %>
<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<%@ Register Src="Conteudo.ascx" TagName="Conteudo" TagPrefix="uc2" %>

<!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>Exemplo com Web Parts</title>
    <style type="text/css">
        .style1
        {
            width: 110px;
        }
    </style>
</head>
    <body>
        <form id="form1" runat="server">
            <div>
                <asp:WebPartManager ID="WebPartManager1" runat="server">
                </asp:WebPartManager>
                <table style="width: 100%">
                    <tr style="width: 100%">
                        <td class="style1">
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/imagens/logo.JPG" /></td>
                        <td colspan="2">
                            <asp:Image ID="Image2" runat="server" ImageUrl="~/imagens/banner.JPG" /></td>
                    </tr>
                    <tr>
                        <td rowspan="3" valign="top" class="style1">
                            <asp:WebPartZone  ID="WebPartZone1" runat="server" Width="206px" BorderColor="#CCCCCC" Font-Names="Verdana" Padding="6" PartChromeType="TitleOnly">
                            <CloseVerb Visible="true" Text="Fechar" Description="Fecha a Web Parts Menu"  />
                            <ZoneTemplate>
                                <uc1:Menu ID="Menu1" runat="server" />                                  
                            </ZoneTemplate>
                                <PartChromeStyle BackColor="#EFF3FB" BorderColor="#D1DDF1" Font-Names="Verdana" ForeColor="#333333" />
                                <MenuLabelHoverStyle ForeColor="#D1DDF1" />
                                <EmptyZoneTextStyle Font-Size="0.8em" />
                                <MenuLabelStyle ForeColor="White" />
                                <MenuVerbHoverStyle BackColor="#EFF3FB" BorderColor="#CCCCCC" BorderStyle="Solid"
                                    BorderWidth="1px" ForeColor="#333333" />
                                <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
                                <MenuVerbStyle BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />
                                <PartStyle Font-Size="0.8em" ForeColor="#333333" />
                                <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
                                <MenuPopupStyle BackColor="#507CD1" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana"
                                    Font-Size="0.6em" />
                                <PartTitleStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />
                            </asp:WebPartZone>
                        </td>
                        <td rowspan="3" style="width: 93%" valign="top">
                            <asp:WebPartZone ID="WebPartZone3" runat="server" Width="100%" 
                                PartChromeType="BorderOnly" HeaderText="Categoria: Bebidas" 
                                TitleBarVerbButtonType="Link" BorderColor="#CCCCCC" Font-Names="Verdana" 
                                Padding="6" Height="196px">
                                <ZoneTemplate>
                                    <uc2:Conteudo ID="Conteudo1" runat="server" />
                                </ZoneTemplate>
                                <PartChromeStyle BackColor="#EFF3FB" BorderColor="#D1DDF1" Font-Names="Verdana" ForeColor="#333333" />
                                <MenuLabelHoverStyle ForeColor="#D1DDF1" />
                                <EmptyZoneTextStyle Font-Size="0.8em" />
                                <MenuLabelStyle ForeColor="White" />
                                <MenuVerbHoverStyle BackColor="#EFF3FB" BorderColor="#CCCCCC" BorderStyle="Solid"
                                    BorderWidth="1px" ForeColor="#333333" />
                                <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
                                <MenuVerbStyle BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />
                                <PartStyle Font-Size="0.8em" ForeColor="#333333" />
                                <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
                                <MenuPopupStyle BackColor="#507CD1" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana"
                                    Font-Size="0.6em" />
                                <PartTitleStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />
                            </asp:WebPartZone>                            
                        </td>
                        <td style="width: 168px" valign="top">
                            <asp:WebPartZone ID="WebPartZone2" runat="server" BorderColor="#CCCCCC" Font-Names="Verdana" Padding="6">
                            <ZoneTemplate>
                                <uc3:Busca ID="Busca1" runat="server" />
                                
                            </ZoneTemplate>
                                <PartChromeStyle BackColor="#EFF3FB" BorderColor="#D1DDF1" Font-Names="Verdana" ForeColor="#333333" />
                                <MenuLabelHoverStyle ForeColor="#D1DDF1" />
                                <EmptyZoneTextStyle Font-Size="0.8em" />
                                <MenuLabelStyle ForeColor="White" />
                                <MenuVerbHoverStyle BackColor="#EFF3FB" BorderColor="#CCCCCC" BorderStyle="Solid"
                                    BorderWidth="1px" ForeColor="#333333" />
                                <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
                                <MenuVerbStyle BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />
                                <PartStyle Font-Size="0.8em" ForeColor="#333333" />
                                <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
                                <MenuPopupStyle BackColor="#507CD1" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana"
                                    Font-Size="0.6em" />
                                <PartTitleStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />
                            </asp:WebPartZone>
                    </tr>
                    <tr>
                        <td style="width: 168px" valign="top">
                        <asp:WebPartZone ID="WebPartZone4" runat="server" BorderColor="#CCCCCC" Font-Names="Verdana" Padding="6" EmptyZoneText="Add a Web Part to this zone by dropping it here.">
                            <ZoneTemplate>
                            </ZoneTemplate> 
                            <PartChromeStyle BackColor="#EFF3FB" BorderColor="#D1DDF1" Font-Names="Verdana" ForeColor="#333333" />
                            <MenuLabelHoverStyle ForeColor="#D1DDF1" />
                            <EmptyZoneTextStyle Font-Size="0.8em" />
                            <MenuLabelStyle ForeColor="White" />
                            <MenuVerbHoverStyle BackColor="#EFF3FB" BorderColor="#CCCCCC" BorderStyle="Solid"
                                BorderWidth="1px" ForeColor="#333333" />
                            <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
                            <MenuVerbStyle BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />
                            <PartStyle Font-Size="0.8em" ForeColor="#333333" />
                            <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
                            <MenuPopupStyle BackColor="#507CD1" BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana"
                                Font-Size="0.6em" />
                            <PartTitleStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />
                            </asp:WebPartZone>                      
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 168px" valign="top">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:LoginView ID="LoginView1" runat="server">
                                <LoggedInTemplate>
                                    <asp:LinkButton ID="LinkButton4" runat="server" OnClick="LinkButton4_Click">Modo Browser</asp:LinkButton>
                                    --
                                    <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Modo Design</asp:LinkButton>
                                    --
                                    <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click">Adicionar/remover Web Parts</asp:LinkButton>
                                    --
                                    <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click1">Permitir edição</asp:LinkButton>
                                </LoggedInTemplate>
                                <AnonymousTemplate>
                                <a href=Login.aspx>Efetuar Login</a>
                                </AnonymousTemplate>
                            </asp:LoginView>
                        </td>
                    </tr>
                </table>        
                 <asp:CatalogZone ID="CatalogZone1" runat="server">
                    <ZoneTemplate>
                        <asp:DeclarativeCatalogPart ID="DeclarativeCatalogPart1" runat="server">
                            <WebPartsTemplate>
                                <asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
                            </WebPartsTemplate>
                            </asp:DeclarativeCatalogPart>
                            <asp:PageCatalogPart ID="PageCatalogPart1" runat="server" />
                    </ZoneTemplate>
                </asp:CatalogZone> 
                
                <asp:EditorZone ID="EditorZone1" runat="server">
                    <ZoneTemplate>
                        <asp:AppearanceEditorPart ID="AppearanceEditorPart1" runat="server" Title="Appearance" />
                        <asp:LayoutEditorPart ID="LayoutEditorPart1" runat="server" />
                    </ZoneTemplate>
                </asp:EditorZone>          
            </div>            
        </form>
    </body>
</html>
