<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="Ajuda, App_Web_qyhujrib" title="Cronos - Módulo web" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;"> <%--style="width: 100%; height: 50%;--%>
        <tr>
            <td align="left" colspan="34" style="height: 20px; background-color: #5d7b9d; text-align: center">
            <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" Text="Ajuda"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="20" style="height: 20px; background-color: #5d7b9d; text-align: left" >
                <%--<asp:Label ID="Label1" runat="server" Text="Filtro:" ForeColor="White"></asp:Label>
                <asp:DropDownList ID="txtFiltro" runat="server" BackColor="#D6E0EE" Font-Size="X-Small" AutoPostBack="True">
                <asp:ListItem></asp:ListItem></asp:DropDownList>&nbsp;&nbsp;
                <asp:Label ID="LabelValor1" runat="server" Text="Valor: "  ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor1" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:Label ID="LabelValor2" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor2" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:Label ID="LabelValor3" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor3" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:Label ID="LabelValor4" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor4" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:Label ID="LabelValor5" runat="server" Text="Valor: " ForeColor="White"  Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor5" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:Label ID="LabelValor6" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor6" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>&nbsp;
                <asp:ImageButton ID="Pesquisar" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px"/>--%>
                <asp:Label ID="RotuloFiltro" runat="server" Text="Filtro:" ForeColor= "White" ></asp:Label>
                <asp:DropDownList ID="txtFiltro" runat="server" BackColor="#D6E0EE" Font-Size="X-Small"  AutoPostBack="True">
                <asp:ListItem></asp:ListItem></asp:DropDownList>&nbsp;
                <asp:Label ID="LabelValor1" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor1" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:DropDownList ID="cboCampo1" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False" Height="18"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo1" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo1" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData1" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:Label ID="LabelValor2" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor2" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo2" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"> </asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo2" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo2" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData2" runat="server" Font-Size="X-Small"  Width="55px" Visible="False"></asp:TextBox>
                <asp:Label ID="LabelValor3" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor3" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo3" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo3" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo3" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData3" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar3" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
                <asp:Label ID="LabelValor4" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor4" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo4" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo4" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo4" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData4" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar4" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
                <asp:Label ID="LabelValor5" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor5" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo5" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo5" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo5" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData5" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar5" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
                <asp:Label ID="LabelValor6" runat="server" Text="Valor: " ForeColor="White"  Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor6" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo6" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo6" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo6" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData6" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar6" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
            </td>
            <td colspan="14" style="height: 20px; background-color: #5d7b9d; text-align: Right" >
                <asp:ImageButton ID="lnkInserir" runat="server" ImageUrl="~/Imagens/Add.png" ToolTip="Inserir novo assunto / dúvida" Width="30px"/>
<%--                <asp:ImageButton ID="lnkAlterardePara" runat="server" ImageUrl="~/Imagens/Edit.png" ToolTip="Alteração em bloco" Width="30px" Visible="False"/>
                <asp:ImageButton ID="lnkEliminar" runat="server" ImageUrl="~/Imagens/Delete.png" ToolTip="Demitir/eliminar empregado seleccionado" Width="30px" Visible="False"/>
                <asp:ImageButton ID="btnEquipas" runat="server" ImageUrl="~/Imagens/Pessoal.png" PostBackUrl="~/Obras/EquipasPessoal.aspx" ToolTip="Equipas" Width="30px"/>
                <asp:ImageButton ID="btnTabelasAuxiliares" runat="server" ImageUrl="~/Imagens/Tabelas.png" ToolTip="Configurar tabelas auxiliares" Width="30px" Visible="True"/>
                <asp:ImageButton ID="btnExcel" runat="server" ImageUrl="~/Imagens/Excel.png" ToolTip="Exportar para Excel" Width="30px"/>
                <asp:ImageButton ID="btnWord" runat="server" ImageUrl="~/Imagens/Word.png" ToolTip="Exportar para Word" Width="30px"/>
                <asp:ImageButton ID="btnImprimir" runat="server" ImageUrl="~/Imagens/print.gif" PostBackUrl="~/relatorios/rptPessoal.aspx" Width="30px"/>
--%>            </td>
        </tr>
            <tr>
                <td colspan="34" style="height: 20px; background-color: White; text-align: center"> 
                    <asp:Label ID="lblMsg" runat="server" Visible="False" BackColor="White"></asp:Label> 
                    <asp:Label ID="lblFiltroContador" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                </td>
            </tr>
        <tr>
            <td colspan="34" style="text-align: center">
            <asp:Panel ID="pnlEdit" runat="server" Visible="False" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                    <tr>
                        <td style="height: 12px; text-align: center"><asp:Label ID="lblAccao" runat="server" Visible="False"></asp:Label></td>                 
                    </tr>
                    <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloAssunto" runat="server" Text="Assunto / dúvida:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtAssunto" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="300px" style="margin-left: 0px"></asp:TextBox>&nbsp;&nbsp; 
                            <asp:LinkButton ID="lnkGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkCancelar" runat="server">Cancelar</asp:LinkButton>
                        <br /> <br />
                    </td>
                    </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>

        <tr>
            <td>
                <asp:Panel ID="pnlEditAjuda" runat="server" Width="100%" Visible="False">
                    <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                        <tr>
                            <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                                <br />
                            <asp:Label ID="RotuloOpcao" runat="server" Text="Opção:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboOpcao" runat="server" Font-Size="X-Small" 
                                Width="130px">
                            </asp:DropDownList>&nbsp;&nbsp;
                                <asp:Label ID="RotuloAssuntoEditAjuda" runat="server" Text="Assunto / dúvida:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtAssuntoEditAjuda" runat="server" BorderColor="Black" BorderWidth="1px" 
                                    Font-Size="X-Small" Width="200px" style="margin-left: 0px"></asp:TextBox>&nbsp;&nbsp; 
                                <asp:Label ID="RotuloAjuda" runat="server" Text="Ajuda:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtAjuda" runat="server" BorderColor="Black" BorderWidth="1px" 
                                    Font-Size="X-Small" Width="200px" ></asp:TextBox>&nbsp;&nbsp;
                                <asp:ImageButton ID="btnEliminarPdf" runat="server" 
                                    ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar documento 'pdf'." Visible="True" />&nbsp;&nbsp;
                                <%--<asp:LinkButton ID="lnkGravarAjuda_" runat="server">Gravar / Sair</asp:LinkButton>--%>
                                <asp:LinkButton ID="lnkGravarAjuda" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                                <asp:LinkButton ID="lnkCancelarAjuda" runat="server">Cancelar</asp:LinkButton>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                                <br />
                                <asp:Label ID="RotuloFileUploadAjuda" runat="server" Text="Anexar documento 'pdf':"></asp:Label>&nbsp;
                                <asp:FileUpload ID="FileUploadAjuda" runat="server" ToolTip="Ajuda" 
                                    BackColor="#F7F6F3" CssClass="icon" Font-Size="Small" Width="600px" />
                                <br /> <br />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>

        <tr>
        <td colspan="34">
        <asp:GridView ID="grdDados" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="Vertical" Width="100%" AllowPaging="True" >
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" 
                DeleteImageUrl="~/Imagens/Delete2.png" SelectImageUrl="~/Imagens/Edit2.png" 
                ShowDeleteButton="True" />
            <asp:BoundField DataField="DescOpcao" HeaderText="Opção" />
            <asp:BoundField DataField="Assunto" HeaderText="Assunto / dúvida" />
            <asp:BoundField DataField="Memo" HeaderText="Ajuda" />
            <asp:TemplateField HeaderText="doc.">
                <ItemTemplate>
                    <table cellpadding="0" cellspacing="0" class="style3">
                        <tr>
                        <td>
                            <asp:imagebutton ID="btnPdf" runat="server" Font-Bold="True" Font-Size="Small" 
                                Height="12px" OnClick="btnVerPdf_Click" ImageUrl="~/Imagens/pdf.png" ToolTip="Baixar documento 'Pdf'." Width="12px" />
                        </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ID" HeaderText="" />
            <asp:BoundField DataField="TemImagem" HeaderText="" />
        </Columns>
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
        <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
            </td>
        </tr>

        <tr>
            <td colspan="34" style="height: 12px" align="right" bgcolor="#5d7b9d">
                <asp:Label ID="RotuloGrelha" runat="server" Text="Grelha: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:Label ID="RotuloLinhasPagina" runat="server" Text="Paginação Linhas:" 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:TextBox ID="txtLinhasPagina" runat="server" BorderColor="White" 
                    BorderWidth="0px" Font-Size="X-Small" Height="18px" Width="30px" 
                    BackColor="#5D7B9D" ForeColor="White" ></asp:TextBox>
                <asp:Label ID="Label4" runat="server" Text="Posição: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboPaginacaoPosicao" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="0">Em baixo</asp:ListItem>
                    <asp:ListItem Value="1">Em cima</asp:ListItem>
                    <asp:ListItem Value="2">Em ambos</asp:ListItem>
                </asp:DropDownList>&nbsp;
                <asp:Label ID="Label6" runat="server" Text="Tipo: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboPaginacaoTipo" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="2">Botões</asp:ListItem>
                    <asp:ListItem Value="3">Nº pág.</asp:ListItem>
                </asp:DropDownList>&nbsp;
                <asp:ImageButton ID="btnGravarOpoes" runat="server"  ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar opções"/>&nbsp;
            </td>                 
        </tr>
    </table>
</asp:Content>

