<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{FormDirSiprp.page1}" id="page1">
            <ui:html binding="#{FormDirSiprp.html1}" id="html1">
                <ui:head binding="#{FormDirSiprp.head1}" id="head1">
                    <ui:link binding="#{FormDirSiprp.link1}" id="link1" url="/resources/stylesheet.css"/>
                    <script>
			function showPdf()
			{
			    sOptions = " width = '" + screen.availWidth + "'";
			    sOptions += " height= '" + screen.availHeight + "'";
			    var wOpen;
				wOpen = window.open('./resources/pdf/Ajuda.pdf','', sOptions );
			   wOpen.focus();
			   wOpen.moveTo(0,0);
			   wOpen.resizeTo( screen.availWidth, screen.availHeight );
			}                        
                    </script>
                </ui:head>
                <ui:body binding="#{FormDirSiprp.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{FormDirSiprp.form1}" id="form1">
                        <h:panelGrid binding="#{FormDirSiprp.gridBase1}" columns="1" id="gridBase1"
                            style="height: 24px; left: 0px; top: 72px; position: absolute; width: 100%" styleClass="centerBlock" width="648">
                            <h:panelGrid binding="#{FormDirSiprp.gridLayout1}" columns="1" id="gridLayout1" style="height: 15px; width: 80%" styleClass="centerBlock">
                                <h:panelGrid binding="#{FormDirSiprp.gridPanel1}" columnClasses="gridColLeft, gridColRightBottom" columns="2" id="gridPanel1"
                                    style="border-bottom: solid #000000 1px; height: 24px; width: 100%" width="312">
                                    <ui:panelGroup binding="#{FormDirSiprp.groupPanel1}" id="groupPanel1" style="height: 24px; width: 216px">
                                        <ui:image binding="#{FormDirSiprp.image1}" id="image1" url="/resources/images/SIPRP_logo_small.jpg"/>
                                        <ui:image binding="#{FormDirSiprp.image2}" id="image2" url="/resources/images/logo_auchan_small1.jpg"/>
                                    </ui:panelGroup>
                                    <ui:panelGroup binding="#{FormDirSiprp.groupPanel2}" id="groupPanel2" style="height: 24px; top: 90%; width: 100%">
                                        <ui:staticText binding="#{FormDirSiprp.lblUser}" escape="false" id="lblUser" styleClass="labelBold "/>
                                        <ui:staticText binding="#{FormDirSiprp.stSep1}" escape="false" id="stSep1" text="   "/>
                                        <ui:hyperlink action="#{FormDirSiprp.lnkAnalisesAcidente_action}" binding="#{FormDirSiprp.lnkAnalisesAcidente}"
                                            disabled="true" id="lnkAnalisesAcidente" text="analisar acidentes"/>
                                        <ui:staticText binding="#{FormDirSiprp.stSep3}" escape="false" id="stSep3" text=" | "/>
                                        <ui:hyperlink action="#{FormDirSiprp.lnkNewUser_action}" binding="#{FormDirSiprp.lnkNewUser}" id="lnkNewUser" style="" text="gerir utilizadores"/>
                                        <ui:staticText binding="#{FormDirSiprp.stSep2}" escape="false" id="stSep2" text=" | "/>
                                        <ui:hyperlink action="#{FormDirSiprp.lnkEditUser_action}" binding="#{FormDirSiprp.lnkEditUser}" id="lnkEditUser" text="alterar dados utilizador"/>
                                        <ui:staticText binding="#{FormDirSiprp.staticText1}" escape="false" id="staticText1" text=" | "/>
                                        <ui:hyperlink action="#{FormDirSiprp.lnkAjuda_action}" binding="#{FormDirSiprp.lnkAjuda1}" id="lnkAjuda1"
                                            onClick="showPdf();" style="" text="ajuda "/>
                                        <ui:staticText binding="#{FormDirSiprp.staticText2}" id="staticText2" style="width: 0px" text="|"/>
                                        <ui:hyperlink action="#{FormDirSiprp.lnkLogout_action}" binding="#{FormDirSiprp.lnkLogout}" id="lnkLogout" text="sair&gt;&gt;"/>
                                    </ui:panelGroup>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormDirSiprp.gridPanel2}" columnClasses="gridColCenter" columns="1" id="gridPanel2"
                                    style="height: 24px; width: 100%" width="504">
                                    <ui:staticText binding="#{FormDirSiprp.txtMsg1}" escape="false" id="txtMsg1" style="color: rgb(204, 0, 0); font-weight: bold; height: 24px"/>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormDirSiprp.gridLayoutTop1}" columnClasses="gridLayoutTopCols, gridLayoutTopCols" columns="2"
                                    id="gridLayoutTop1" style="height: 15px; position: relative; vertical-align: top; width: 100%">
                                    <h:panelGrid binding="#{FormDirSiprp.gridSeguimento1}" columns="1" id="gridSeguimento1"
                                        style="background-color: #f6f4e8; position: relative; width: 100%" width="360">
                                        <h:panelGrid binding="#{FormDirSiprp.gridPanel4}" columnClasses="gridColCenter" columns="1" id="gridPanel4"
                                            style="height: 24px; width: 100%" width="264">
                                            <ui:staticText binding="#{FormDirSiprp.staticText4}" id="staticText4"
                                                style="font-size: 18px; font-weight: bold; height: 24px; width: 168px" text="Em seguimento"/>
                                        </h:panelGrid>
                                        <h:panelGrid binding="#{FormDirSiprp.gridPanel5}" id="gridPanel5"
                                            style="background-color: #f6f4e8; height: 24px; width: 100%" styleClass="centerBlock" width="456">
                                            <ui:table augmentTitle="false" binding="#{FormDirSiprp.table2}" id="table2" style="width: 80%; height: 48px"
                                                styleClass="centerBlock" width="100%">
                                                <ui:tableRowGroup binding="#{FormDirSiprp.tableRowGroup2}" id="tableRowGroup2"
                                                    sourceData="#{SessionBean1.analisesSeguimentoDataProvider}" sourceVar="currentRow">
                                                    <ui:tableColumn binding="#{FormDirSiprp.tableColumn6}" headerText="Data do acidente" id="tableColumn6"
                                                        sort="data_acidente" style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormDirSiprp.lnkDataAcidenteSeg_action}"
                                                            binding="#{FormDirSiprp.lnkDataAcidenteSeg}" id="lnkDataAcidenteSeg" text="#{currentRow.value['data_acidente']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormDirSiprp.tableColumn1}" headerText="Data da abertura" id="tableColumn1"
                                                        sort="data_inicio_processo" width="10%">
                                                        <ui:hyperlink action="#{FormDirSiprp.lnkDataAberturaSeg_action}"
                                                            binding="#{FormDirSiprp.lnkDataAberturaSeg1}" id="lnkDataAberturaSeg1" style="" text="#{currentRow.value['data_inicio_processo']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormDirSiprp.tableColumn7}" headerText="Nº acidente" id="tableColumn7"
                                                        sort="analise_nr" style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormDirSiprp.lnkNrSeg_action}" binding="#{FormDirSiprp.lnkNrSeg}" id="lnkNrSeg" text="#{currentRow.value['analise_nr']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormDirSiprp.tableColumn8}" headerText="POR" id="tableColumn8" width="10%">
                                                        <ui:hyperlink action="#{FormDirSiprp.lnkPorSeg_action}" binding="#{FormDirSiprp.lnkPorSeg}"
                                                            id="lnkPorSeg" style="" text="#{currentRow.value['numero_mecanografico']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormDirSiprp.tableColumn9}" headerText="Nome do acidentado" id="tableColumn9"
                                                        sort="nome_acidentado" style="width: 50%" width="50%">
                                                        <ui:hyperlink action="#{FormDirSiprp.lnkNomeAcidentadoSeg_action}"
                                                            binding="#{FormDirSiprp.lnkNomeAcidentadoSeg}" id="lnkNomeAcidentadoSeg" text="#{currentRow.value['nome_acidentado']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormDirSiprp.tableColumn10}" headerText="Fase" id="tableColumn10" width="20%">
                                                        <ui:hyperlink action="#{FormDirSiprp.lnkFaseSeg_action}" binding="#{FormDirSiprp.lnkFaseSeg}"
                                                            id="lnkFaseSeg" style="height: 24px" text="#{currentRow.value['fase']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormDirSiprp.tableColumn3}" headerText="Estabelecimento" id="tableColumn3" width="15%">
                                                        <ui:hyperlink action="#{FormDirSiprp.lnkEstabelecimentoSeg_action}"
                                                            binding="#{FormDirSiprp.lnkEstabelecimentoSeg1}" id="lnkEstabelecimentoSeg1" style="" text="#{currentRow.value['nome_estabelecimento']}"/>
                                                    </ui:tableColumn>
                                                </ui:tableRowGroup>
                                            </ui:table>
                                        </h:panelGrid>
                                    </h:panelGrid>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormDirSiprp.gridConcluidos1}" columns="1" id="gridConcluidos1"
                                    style="border: 1px solid #000000; height: 24px; background-color: #f6f4e8; width: 100%" width="360">
                                    <h:panelGrid binding="#{FormDirSiprp.gridPanel6}" columnClasses="gridColCenter" columns="1" id="gridPanel6"
                                        style="height: 24px; width: 100%" width="264">
                                        <ui:staticText binding="#{FormDirSiprp.staticText5}" escape="false" id="staticText5"
                                            style="font-size: 18px; font-weight: bold; height: 24px; width: 168px" text="Concluídos"/>
                                    </h:panelGrid>
                                    <h:panelGrid binding="#{FormDirSiprp.gridPanel7}" columns="6" id="gridPanel7" style="height: 24px" width="576">
                                        <ui:panelGroup binding="#{FormDirSiprp.groupPanel3}" id="groupPanel3" style="height: 24px; width: 94px">
                                            <ui:staticText binding="#{FormDirSiprp.staticText6}" id="staticText6" style="height: 24px; width: 22px"
                                                styleClass="labelBold" text="Ano:"/>
                                            <ui:dropDown binding="#{FormDirSiprp.drpAno}" id="drpAno" items="#{SessionBean1.anoOptions}"
                                                onChange="common_timeoutSubmitForm(this.form, 'gridBase1:gridLayout1:gridConcluidos1:gridPanel7:groupPanel3:drpAno');"
                                                selected="#{SessionBean1.anoChoice}" style="width: 70px" valueChangeListener="#{FormDirSiprp.drpAno_processValueChange}"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormDirSiprp.groupPanel4}" id="groupPanel4" style="height: 24px; width: 94px">
                                            <ui:staticText binding="#{FormDirSiprp.lblMes}" escape="false" id="lblMes" style="height: 24px; width: 22px"
                                                text="Mês:" visible="false"/>
                                            <ui:dropDown binding="#{FormDirSiprp.drpMes}" id="drpMes" items="#{SessionBean1.mesOptions}"
                                                onChange="common_timeoutSubmitForm(this.form, 'gridBase1:gridLayout1:gridConcluidos1:gridPanel7:groupPanel4:drpMes');"
                                                selected="#{SessionBean1.mesChoice}" style="width: 69px"
                                                valueChangeListener="#{FormDirSiprp.drpMes_processValueChange}" visible="false"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormDirSiprp.groupPanel5}" id="groupPanel5" style="height: 24px; width: 94px">
                                            <ui:staticText binding="#{FormDirSiprp.lblDia}" id="lblDia" style="height: 24px; width: 22px" text="Dia:" visible="false"/>
                                            <ui:dropDown binding="#{FormDirSiprp.drpDia}" id="drpDia" items="#{SessionBean1.diaOptions}"
                                                selected="#{SessionBean1.diaChoice}" valueChangeListener="#{FormDirSiprp.drpDia_processValueChange}" visible="false"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormDirSiprp.groupPanel6}" id="groupPanel6" style="height: 24px; width: 142px">
                                            <ui:staticText binding="#{FormDirSiprp.staticText7}" escape="false" id="staticText7"
                                                style="height: 24px; width: 96px" styleClass="labelBold" text="POR:&amp;nbsp;"/>
                                            <ui:textField binding="#{FormDirSiprp.txtPor}" id="txtPor" style=""/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormDirSiprp.groupPanel7}" id="groupPanel7" style="height: 24px; width: 262px">
                                            <ui:staticText binding="#{FormDirSiprp.staticText8}" id="staticText8" style="height: 24px; width: 46px"
                                                styleClass="labelBold" text="Nome:"/>
                                            <ui:textField binding="#{FormDirSiprp.txtNome}" id="txtNome"/>
                                        </ui:panelGroup>
                                        <ui:button action="#{FormDirSiprp.butPesquisar_action}" binding="#{FormDirSiprp.butPesquisar}" id="butPesquisar" text="Pesquisar"/>
                                    </h:panelGrid>
                                    <h:panelGrid binding="#{FormDirSiprp.gridPanel8}" columnClasses="gridColCenter" columns="1" id="gridPanel8"
                                        style="height: 24px; width: 80%" styleClass="centerBlock" width="456">
                                        <ui:table augmentTitle="false" binding="#{FormDirSiprp.table3}" id="table3" style="width: 89%; height: 48px"
                                            styleClass="centerBlock" width="707">
                                            <ui:tableRowGroup binding="#{FormDirSiprp.tableRowGroup3}" id="tableRowGroup3"
                                                sourceData="#{SessionBean1.analisesConcluidasDataProvider}" sourceVar="currentRow">
                                                <ui:tableColumn binding="#{FormDirSiprp.tableColumn11}" headerText="Data do acidente" id="tableColumn11"
                                                    sort="data_acidente" style="width: 10%" width="10%">
                                                    <ui:hyperlink action="#{FormDirSiprp.lnkDataConcluida_action}" binding="#{FormDirSiprp.lnkDataConcluida}"
                                                        id="lnkDataConcluida" text="#{currentRow.value['data_acidente']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormDirSiprp.tableColumn2}" headerText="Data da abertura" id="tableColumn2"
                                                    sort="data_inicio_processo" width="10%">
                                                    <ui:hyperlink action="#{FormDirSiprp.lnkDataAberturaConcluida_action}"
                                                        binding="#{FormDirSiprp.lnkDataAberturaConcluida1}" id="lnkDataAberturaConcluida1" style="" text="#{currentRow.value['data_inicio_processo']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormDirSiprp.tableColumn12}" headerText="Nº acidente" id="tableColumn12"
                                                    sort="analise_nr" style="width: 10%" width="7%">
                                                    <ui:hyperlink action="#{FormDirSiprp.lnkNrConcluida_action}" binding="#{FormDirSiprp.lnkNrConcluida}"
                                                        id="lnkNrConcluida" text="#{currentRow.value['analise_nr']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormDirSiprp.tableColumn13}" headerText="POR" id="tableColumn13" width="8%">
                                                    <ui:hyperlink action="#{FormDirSiprp.lnkPorConcluida_action}" binding="#{FormDirSiprp.lnkPorConcluida}"
                                                        id="lnkPorConcluida" style="" text="#{currentRow.value['numero_mecanografico']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormDirSiprp.tableColumn14}" headerText="Nome do acidentado" id="tableColumn14"
                                                    sort="nome_acidentado" style="width: 80%" width="60%">
                                                    <ui:hyperlink action="#{FormDirSiprp.lnkNomeConcluida_action}" binding="#{FormDirSiprp.lnkNomeConcluida}"
                                                        id="lnkNomeConcluida" text="#{currentRow.value['nome_acidentado']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormDirSiprp.tableColumn15}" headerText="Estabelecimento" id="tableColumn15" width="15%">
                                                    <ui:hyperlink action="#{FormDirSiprp.lnkEstabConcluida_action}" binding="#{FormDirSiprp.lnkEstabConcluida}"
                                                        id="lnkEstabConcluida" style="" text="#{currentRow.value['nome_estabelecimento']}"/>
                                                </ui:tableColumn>
                                            </ui:tableRowGroup>
                                        </ui:table>
                                        <ui:staticText binding="#{FormDirSiprp.txtSearchMsg}" escape="false" id="txtSearchMsg" rendered="false" style="color: rgb(204, 0, 0); height: 24px; width: 336px"/>
                                    </h:panelGrid>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormDirSiprp.gridPanel9}" columnClasses="gridColCenter" columns="1" id="gridPanel9" style="height: 24px; width: 100%">
                                    <ui:panelGroup binding="#{FormDirSiprp.groupPanel8}" id="groupPanel8" style="border-bottom: solid rgb(255, 255, 255) 1px; height: 21px">
                                        <ui:staticText binding="#{FormDirSiprp.staticText9}" id="staticText9" text="Software desenvolvido por "/>
                                        <ui:image binding="#{FormDirSiprp.image3}" height="21" id="image3" url="/resources/images/logo_evolute_small.png" width="100"/>
                                        <ui:staticText binding="#{FormDirSiprp.staticText10}" escape="false" id="staticText10" text="&amp;nbsp;&amp;copy; 2008 "/>
                                    </ui:panelGroup>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
