<?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="#{FormHS.page1}" id="page1">
            <ui:html binding="#{FormHS.html1}" id="html1">
                <ui:head binding="#{FormHS.head1}" id="head1">
                    <ui:link binding="#{FormHS.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="#{FormHS.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{FormHS.form1}" id="form1">
                        <h:panelGrid binding="#{FormHS.gridBase1}" columns="1" id="gridBase1"
                            style="height: 24px; left: 0px; top: 60px; position: absolute; width: 100%" styleClass="centerBlock" width="648">
                            <h:panelGrid binding="#{FormHS.gridLayout1}" columns="1" id="gridLayout1" style="height: 15px; width: 80%" styleClass="centerBlock">
                                <h:panelGrid binding="#{FormHS.gridPanel1}" columnClasses="gridColLeft, gridColRightBottom" columns="2" id="gridPanel1"
                                    style="border-bottom: solid #000000 1px; height: 24px; width: 100%" width="312">
                                    <ui:panelGroup binding="#{FormHS.groupPanel1}" id="groupPanel1" style="height: 24px; width: 216px">
                                        <ui:image binding="#{FormHS.image1}" id="image1" url="/resources/images/SIPRP_logo_small.jpg"/>
                                        <ui:image binding="#{FormHS.image2}" id="image2" url="/resources/images/logo_auchan_small1.jpg"/>
                                    </ui:panelGroup>
                                    <ui:panelGroup binding="#{FormHS.groupPanel2}" id="groupPanel2" style="height: 24px; top: 90%">
                                        <ui:staticText binding="#{FormHS.lblUser}" escape="false" id="lblUser" styleClass="labelBold"/>
                                        <ui:staticText binding="#{FormHS.staticText1}" escape="false" id="staticText1" text="   "/>
                                        <ui:hyperlink action="#{FormHS.lnkAnalisesAcidente_action}" binding="#{FormHS.lnkAnalisesAcidente}" disabled="true"
                                            id="lnkAnalisesAcidente" text="analisar acidentes"/>
                                        <ui:staticText binding="#{FormHS.staticText13}" escape="false" id="staticText13" text=" | "/>
                                        <ui:hyperlink action="#{FormHS.lnkNewUser_action}" binding="#{FormHS.lnkNewUser1}" disabled="true" id="lnkNewUser1"
                                            style="" text="gerir utilizadores"/>
                                        <ui:staticText binding="#{FormHS.staticText12}" escape="false" id="staticText12" text=" | "/>
                                        <ui:hyperlink action="#{FormHS.lnkEditUser_action}" binding="#{FormHS.lnkEditUser}" id="lnkEditUser" text="alterar dados utilizador"/>
                                        <ui:staticText binding="#{FormHS.staticText2}" escape="false" id="staticText2" text=" | "/>
                                        <ui:hyperlink action="#{FormHS.lnkAjuda_action}" binding="#{FormHS.lnkAjuda1}" id="lnkAjuda1" onClick="showPdf();"
                                            style="" text="ajuda "/>
                                        <ui:staticText binding="#{FormHS.staticText14}" id="staticText14" style="width: 0px" text="|"/>
                                        <ui:hyperlink action="#{FormHS.lnkLogout_action}" binding="#{FormHS.lnkLogout}" id="lnkLogout" text="sair&gt;&gt;"/>
                                    </ui:panelGroup>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormHS.gridPanel10}" columnClasses="gridColCenter" columns="1" id="gridPanel10"
                                    style="height: 24px; width: 100%" width="504">
                                    <ui:staticText binding="#{FormHS.txtMsg}" escape="false" id="txtMsg" style="color: rgb(204, 0, 0); font-weight: bold; height: 24px"/>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormHS.gridLayoutTop1}" columnClasses="gridLayoutTopCols, gridLayoutTopCols" columns="1"
                                    id="gridLayoutTop1" style="height: 15px; position: relative; vertical-align: top; width: 100%">
                                    <h:panelGrid binding="#{FormHS.gridActual1}" columnClasses="gridColCenter" columns="1" id="gridActual1"
                                        style="background-color: #f6f4e8; height: 24px; position: relative; width: 100%" width="360">
                                        <h:panelGrid binding="#{FormHS.gridPanel2}" columnClasses="gridColCenter" columns="1" id="gridPanel2"
                                            style="height: 24px; width: 100%" width="264">
                                            <ui:staticText binding="#{FormHS.staticText4}" id="staticText4"
                                                style="font-size: 18px; font-weight: bold; height: 24px; width: 168px" text="Actual"/>
                                        </h:panelGrid>
                                        <ui:staticText binding="#{FormHS.staticText5}" id="staticText5" styleClass="labelBold" text="Processos com dados pendentes"/>
                                        <h:panelGrid binding="#{FormHS.gridPanel3}" id="gridPanel3" style="height: 24px; width: 100%" styleClass="centerBlock" width="456">
                                            <ui:table augmentTitle="false" binding="#{FormHS.table1}" id="table1" style="width: 80%; height: 48px"
                                                styleClass="centerBlock" width="933">
                                                <ui:tableRowGroup binding="#{FormHS.tableRowGroup1}" id="tableRowGroup1"
                                                    sourceData="#{SessionBean1.analisesActualDataProvider}" sourceVar="currentRow">
                                                    <ui:tableColumn binding="#{FormHS.tableColumn1}" headerText="Data do acidente" id="tableColumn1"
                                                        sort="data_acidente" style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormHS.lnkDataAcidente_action}" binding="#{FormHS.lnkDataAcidente}"
                                                            id="lnkDataAcidente" text="#{currentRow.value['data_acidente']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn16}" headerText="Data da abertura" id="tableColumn16"
                                                        sort="data_inicio_processo" width="10%">
                                                        <ui:hyperlink action="#{FormHS.lnkDataAbertura_action}" binding="#{FormHS.lnkDataAbertura}"
                                                            id="lnkDataAbertura" style="" text="#{currentRow.value['data_inicio_processo']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn2}" headerText="Nº acidente" id="tableColumn2"
                                                        sort="analise_nr" style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormHS.lnkNr_action}" binding="#{FormHS.lnkNr}" id="lnkNr" text="#{currentRow.value['analise_nr']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn12}" headerText="POR" id="tableColumn12" width="10%">
                                                        <ui:hyperlink action="#{FormHS.lnkPor_action}" binding="#{FormHS.lnkPor}" id="lnkPor" style="" text="#{currentRow.value['numero_mecanografico']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn3}" headerText="Nome do acidentado" id="tableColumn3"
                                                        sort="nome_acidentado" style="width: 25%" width="25%">
                                                        <ui:hyperlink action="#{FormHS.lnkNomeAcidentado_action}" binding="#{FormHS.lnkNomeAcidentado}"
                                                            id="lnkNomeAcidentado" text="#{currentRow.value['nome_acidentado']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn10}" headerText="Fase" id="tableColumn10" width="20%">
                                                        <ui:hyperlink action="#{FormHS.lnkFase_action}" binding="#{FormHS.lnkFase}" id="lnkFase"
                                                            style="height: 24px" text="#{currentRow.value['fase']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn19}" headerText="Estabelecimento" id="tableColumn19" width="15%">
                                                        <ui:hyperlink action="#{FormHS.lnkEstabelecimento_action}" binding="#{FormHS.lnkEstabelecimento}"
                                                            id="lnkEstabelecimento" style="" text="#{currentRow.value['nome_estabelecimento']}"/>
                                                    </ui:tableColumn>
                                                </ui:tableRowGroup>
                                            </ui:table>
                                        </h:panelGrid>
                                    </h:panelGrid>
                                    <h:panelGrid binding="#{FormHS.gridSeguimento1}" columns="1" id="gridSeguimento1"
                                        style="background-color: #f6f4e8; position: relative; width: 100%" width="360">
                                        <h:panelGrid binding="#{FormHS.gridPanel4}" columnClasses="gridColCenter" columns="1" id="gridPanel4"
                                            style="height: 24px; width: 100%" width="264">
                                            <ui:staticText binding="#{FormHS.staticText6}" id="staticText6"
                                                style="font-size: 18px; font-weight: bold; height: 24px; width: 168px" text="Em seguimento"/>
                                        </h:panelGrid>
                                        <h:panelGrid binding="#{FormHS.gridPanel5}" id="gridPanel5" style="background-color: #f6f4e8; height: 24px; width: 100%"
                                            styleClass="centerBlock" width="456">
                                            <ui:table augmentTitle="false" binding="#{FormHS.table2}" id="table2" style="width: 80%; height: 48px"
                                                styleClass="centerBlock" width="100%">
                                                <ui:tableRowGroup binding="#{FormHS.tableRowGroup2}" id="tableRowGroup2"
                                                    sourceData="#{SessionBean1.analisesSeguimentoDataProvider}" sourceVar="currentRow">
                                                    <ui:tableColumn binding="#{FormHS.tableColumn4}" headerText="Data do acidente" id="tableColumn4"
                                                        sort="data_acidente" style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormHS.lnkDataAcidenteSeg_action}" binding="#{FormHS.lnkDataAcidenteSeg}"
                                                            id="lnkDataAcidenteSeg" text="#{currentRow.value['data_acidente']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn17}" headerText="Data da abertura" id="tableColumn17"
                                                        sort="data_inicio_processo" width="10%">
                                                        <ui:hyperlink action="#{FormHS.lnkDataAberturaSeg_action}" binding="#{FormHS.lnkDataAberturaSeg}"
                                                            id="lnkDataAberturaSeg" style="" text="#{currentRow.value['data_inicio_processo']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn5}" headerText="Nº acidente" id="tableColumn5"
                                                        sort="analise_nr" style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormHS.lnkNrSeg_action}" binding="#{FormHS.lnkNrSeg}" id="lnkNrSeg" text="#{currentRow.value['analise_nr']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn13}" headerText="POR" id="tableColumn13" width="10%">
                                                        <ui:hyperlink action="#{FormHS.lnkPorSeg_action}" binding="#{FormHS.lnkPorSeg}" id="lnkPorSeg" style="" text="#{currentRow.value['numero_mecanografico']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn6}" headerText="Nome do acidentado" id="tableColumn6"
                                                        sort="nome_acidentado" style="width: 50%" width="50%">
                                                        <ui:hyperlink action="#{FormHS.lnkNomeAcidentadoSeg_action}" binding="#{FormHS.lnkNomeAcidentadoSeg}"
                                                            id="lnkNomeAcidentadoSeg" text="#{currentRow.value['nome_acidentado']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn11}" headerText="Fase" id="tableColumn11" width="20%">
                                                        <ui:hyperlink action="#{FormHS.lnkFaseSeg_action}" binding="#{FormHS.lnkFaseSeg}" id="lnkFaseSeg"
                                                            style="height: 24px" text="#{currentRow.value['fase']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormHS.tableColumn20}" headerText="Estabelecimento" id="tableColumn20" width="15%">
                                                        <ui:hyperlink action="#{FormHS.lnkEstabelecimentoSeg_action}" binding="#{FormHS.lnkEstabelecimentoSeg}"
                                                            id="lnkEstabelecimentoSeg" style="" text="#{currentRow.value['nome_estabelecimento']}"/>
                                                    </ui:tableColumn>
                                                </ui:tableRowGroup>
                                            </ui:table>
                                        </h:panelGrid>
                                    </h:panelGrid>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormHS.gridConcluidos1}" columns="1" id="gridConcluidos1"
                                    style="border: 1px solid #000000; height: 24px; background-color: #f6f4e8; width: 100%" width="360">
                                    <h:panelGrid binding="#{FormHS.gridPanel6}" columnClasses="gridColCenter" columns="1" id="gridPanel6"
                                        style="height: 24px; width: 100%" width="264">
                                        <ui:staticText binding="#{FormHS.staticText7}" escape="false" id="staticText7"
                                            style="font-size: 18px; font-weight: bold; height: 24px; width: 168px" text="Concluídos"/>
                                    </h:panelGrid>
                                    <h:panelGrid binding="#{FormHS.gridPanel7}" columns="6" id="gridPanel7" style="height: 24px" width="576">
                                        <ui:panelGroup binding="#{FormHS.groupPanel3}" id="groupPanel3" style="height: 24px; width: 94px">
                                            <ui:staticText binding="#{FormHS.staticText8}" id="staticText8" style="height: 24px; width: 22px" text="Ano:"/>
                                            <ui:dropDown binding="#{FormHS.drpAno}" id="drpAno" items="#{SessionBean1.anoOptions}"
                                                onChange="common_timeoutSubmitForm(this.form, 'gridBase1:gridLayout1:gridConcluidos1:gridPanel7:groupPanel3:drpAno');"
                                                selected="#{SessionBean1.anoChoice}" style="width: 70px" valueChangeListener="#{FormHS.drpAno_processValueChange}"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormHS.groupPanel4}" id="groupPanel4" style="height: 24px; width: 94px">
                                            <ui:staticText binding="#{FormHS.lblMes}" escape="false" id="lblMes" style="height: 24px; width: 22px" text="Mês:" visible="false"/>
                                            <ui:dropDown binding="#{FormHS.drpMes}" id="drpMes" items="#{SessionBean1.mesOptions}"
                                                onChange="common_timeoutSubmitForm(this.form, 'gridBase1:gridLayout1:gridConcluidos1:gridPanel7:groupPanel4:drpMes');"
                                                selected="#{SessionBean1.mesChoice}" style="width: 69px"
                                                valueChangeListener="#{FormHS.drpMes_processValueChange}" visible="false"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormHS.groupPanel5}" id="groupPanel5" style="height: 24px; width: 94px">
                                            <ui:staticText binding="#{FormHS.lblDia}" id="lblDia" style="height: 24px; width: 22px" text="Dia:" visible="false"/>
                                            <ui:dropDown binding="#{FormHS.drpDia}" id="drpDia" items="#{SessionBean1.diaOptions}"
                                                selected="#{SessionBean1.diaChoice}" valueChangeListener="#{FormHS.drpDia_processValueChange}" visible="false"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormHS.groupPanel7}" id="groupPanel7" style="height: 24px; width: 142px">
                                            <ui:staticText binding="#{FormHS.staticText3}" escape="false" id="staticText3" style="height: 24px; width: 96px" text="POR:&amp;nbsp;"/>
                                            <ui:textField binding="#{FormHS.txtPor}" id="txtPor" style="width: 96px"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormHS.groupPanel6}" id="groupPanel6" style="height: 24px; width: 262px">
                                            <ui:staticText binding="#{FormHS.staticText9}" id="staticText9" style="height: 24px; width: 46px" text="Nome:"/>
                                            <ui:textField binding="#{FormHS.txtNome}" id="txtNome"/>
                                        </ui:panelGroup>
                                        <ui:button action="#{FormHS.butPesquisar_action}" binding="#{FormHS.butPesquisar}" id="butPesquisar" text="Pesquisar"/>
                                    </h:panelGrid>
                                    <h:panelGrid binding="#{FormHS.gridPanel8}" columnClasses="gridColCenter" columns="1" id="gridPanel8"
                                        style="height: 24px; width: 80%" styleClass="centerBlock" width="456">
                                        <ui:table augmentTitle="false" binding="#{FormHS.table3}" id="table3" style="width: 89%; height: 48px"
                                            styleClass="centerBlock" width="100%">
                                            <ui:tableRowGroup binding="#{FormHS.tableRowGroup3}" id="tableRowGroup3"
                                                sourceData="#{SessionBean1.analisesConcluidasDataProvider}" sourceVar="currentRow">
                                                <ui:tableColumn binding="#{FormHS.tableColumn7}" headerText="Data do acidente" id="tableColumn7"
                                                    sort="data_acidente" style="width: 10%">
                                                    <ui:hyperlink action="#{FormHS.lnkDataConcluida_action}" binding="#{FormHS.lnkDataConcluida}"
                                                        id="lnkDataConcluida" text="#{currentRow.value['data_acidente']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormHS.tableColumn18}" headerText="Data da abertura" id="tableColumn18"
                                                    sort="data_inicio_processo" width="10%">
                                                    <ui:hyperlink action="#{FormHS.lnkDataAberturaConcluida_action}"
                                                        binding="#{FormHS.lnkDataAberturaConcluida}" id="lnkDataAberturaConcluida" style="" text="#{currentRow.value['data_inicio_processo']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormHS.tableColumn8}" headerText="Nº acidente" id="tableColumn8" sort="analise_nr" style="width: 10%">
                                                    <ui:hyperlink action="#{FormHS.lnkNrConcluida_action}" binding="#{FormHS.lnkNrConcluida}"
                                                        id="lnkNrConcluida" text="#{currentRow.value['analise_nr']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormHS.tableColumn14}" headerText="POR" id="tableColumn14" width="200">
                                                    <ui:hyperlink action="#{FormHS.lnkPorConcluida_action}" binding="#{FormHS.lnkPorConcluida}"
                                                        id="lnkPorConcluida" style="" text="#{currentRow.value['numero_mecanografico']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormHS.tableColumn9}" headerText="Nome do acidentado" id="tableColumn9"
                                                    sort="nome_acidentado" style="width: 80%">
                                                    <ui:hyperlink action="#{FormHS.lnkNomeConcluida_action}" binding="#{FormHS.lnkNomeConcluida}"
                                                        id="lnkNomeConcluida" text="#{currentRow.value['nome_acidentado']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormHS.tableColumn15}" headerText="Estabelecimento" id="tableColumn15" width="200">
                                                    <ui:hyperlink action="#{FormHS.lnkEstabConcluida_action}" binding="#{FormHS.lnkEstabConcluida}"
                                                        id="lnkEstabConcluida" style="" text="#{currentRow.value['nome_estabelecimento']}"/>
                                                </ui:tableColumn>
                                            </ui:tableRowGroup>
                                        </ui:table>
                                        <ui:staticText binding="#{FormHS.txtSearchMsg}" escape="false" id="txtSearchMsg" rendered="false" style="color: rgb(204, 0, 0); height: 24px; width: 336px"/>
                                    </h:panelGrid>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormHS.gridPanel9}" columnClasses="gridColCenter" columns="1" id="gridPanel9" style="height: 24px; width: 100%">
                                    <ui:panelGroup binding="#{FormHS.groupPanel8}" id="groupPanel8" style="border-bottom: solid rgb(255, 255, 255) 1px; height: 21px">
                                        <ui:staticText binding="#{FormHS.staticText10}" id="staticText10" text="Software desenvolvido por "/>
                                        <ui:image binding="#{FormHS.image3}" height="21" id="image3" url="/resources/images/logo_evolute_small.png" width="100"/>
                                        <ui:staticText binding="#{FormHS.staticText11}" escape="false" id="staticText11" 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>
