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