<?
include("config.php");
include("conexao_sinsweb.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Administra&ccedil;&atilde;o</title>

<style>
body {
    font-size:10px;
    font-family:arial;
}
input, select {
    font-size:12px;
}
.formulario {
    padding:5px;
    border:1px solid #EBEBEB;
    background-color: #F9F9F9;
    width:458px;
}
.formulario .label { 
    font: bold 12px arial;
}
.formulario .label2 { 
    font: 12px arial;
}
.titulo {
    font: bold 17px tahoma;
}

</style>
<script type="text/javascript" src="../js/MascaraValidacao.js"> </script>
<script type="text/javascript" src="../js/initAjax.js"></script>
<script type="text/javascript" src="../js/trabalhador.js"></script>
<script type="text/javascript" language="JavaScript1.2">

function fRetornar()
  {window.parent.open("index.php", "_top");}

function sAgenda()
{
  if (sConsiste(document.cep))

{window.open("lista_agenda_cpf.php?cpf="+document.cep.cpf.value,"Aviso","width=1200,height=495,top=30,left=190,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no");}

}

function sConsiste(df)
{
if (df.cpf.value == "")
	{
	alert("ATENÇÃO!! Digite o CPF do Trabalhador!");
	df.cpf.focus();
	return false;
	}
return true;
}
</script>

</head>
<body>
<form name="cep">
  <h1 class="titulo">Trabalhador</h1>
<table width="100%" class="formulario">
        <tr>
          <td width="70" class="label">CPF:</td>
          <td width="207" colspan="2" class="campo"><input name="cpf" type="text" id="cpf" onblur="atualizaCEP(this.value);" onkeypress="if (event.keycode &lt; 48 || event.keycode &gt; 57) event.returnvalue = false"  
            onkeyup="if (this.value.length==14) { cep.btnAgendamentos.focus();return false; }" value="" size="30" maxlength="14" /></td>
          <td width="48" class="campo">&nbsp;</td>
          <td width="83" colspan="2" class="campo">&nbsp;</td>
        </tr>
        <tr>
          <td class="label">Nome:</td>
          <td colspan="5" class="campo"><input type="text" name="trabalhador_nome" id="trabalhador_nome" style="width:100%" value="" readonly="readonly" onblur="javascript:document.forms[0].trabalhador_nome.value=document.forms[0].trabalhador_nome.value.toUpperCase()"/></td>
        </tr>

        <tr>
          <td colspan="6" class="label"><table width="100%" border="0" cellpadding="0" cellspacing="0" height="1">
        <tr >
          <td colspan="6" class="label" style='background:#A8B7BF'>&nbsp;</td>
        </tr>
                  </table></td>
        </tr>
        <tr>
          <td colspan="7" class="label"><div align="center">
            <input type="submit" name="btnAgendamentos" id="btnAgendamentos" value="Agendamentos" onclick="sAgenda(document.cep)"/>
          </div></td>
        </tr>
    </table></form>
<table class="MsoNormalTable" border="0" cellpadding="0" width="98%"
 style='width:98.0%;mso-cellspacing:1.5pt;mso-padding-alt:0cm 0cm 0cm 0cm'>
  <tr style='mso-yfti-irow:5'>
    <td style='padding:0cm 0cm 0cm 0cm'><p class="MsoNormal"><span style='font-size:7.5pt;font-family:Verdana;
  color:#333333'> <img width="1" height="5"
  src="../img/image002.gif" v:shapes="_x0000_i1033" />
      <o:p></o:p>
    </span></p></td>
  </tr>
  <tr style='mso-yfti-irow:6'>
    <td style='background:#A8B7BF;padding:0cm 0cm 0cm 0cm'><p class="MsoNormal"><span style='font-size:7.5pt;font-family:Verdana;
  color:#333333'> <img width="1" height="1"
  src="../img/image003.gif" v:shapes="_x0000_i1034" />
      <o:p></o:p>
    </span></p></td>
  </tr>
  <tr style='mso-yfti-irow:7'>
    <td style='padding:0cm 0cm 0cm 0cm'><p class="MsoNormal" align="right" style='text-align:right'><span
  style='font-size:8.5pt;font-family:Verdana;color:black'> <img width="1" height="5"
  src="../img/image002.gif" v:shapes="_x0000_i1035" />
      <o:p></o:p>
    </span></p></td>
  </tr>
  <tr style='mso-yfti-irow:8;mso-yfti-lastrow:yes'>
    <td><div align="center"><img border="0" src="../img/btnVoltar.gif" onclick="fRetornar();"/></div></td>
  </tr>
</table>
</body>
</html>