<?

        include ("../include/functions.php");
        $rg = limpa($rg);

        include ("../include/conectabd.php");
        $no =  "no";
	  $data_ficha = date("d") . '/' . date("m") . '/' . date("Y");
	  $data_ficha = $data_ficha;
	  $sql = "insert into candidato (entregue, data_ficha, codigo_vest) values ('$no', '$data_ficha','3')";

       $result = mysql_query($sql)
               or die("Não foi possível executar a query!!!");


        include ("../include/conectabd.php");
        $sql = "select * from candidato order by codigo DESC";
        $result = mysql_query($sql)
                or die("Não foi possível executar a query 195c!!!");

        $info = mysql_fetch_array($result);

$codigo = $info[0];

if (($codigo > 0) && ($codigo <= 10))
        {
        $codigo = "00000$codigo";
        }

if (($codigo > 10) && ($codigo <= 100))
        {
        $codigo = "0000$codigo";
        }

if (($codigo > 100) && ($codigo <= 1000))
        {
        $codigo = "000$codigo";
        }

if (($codigo > 1000) && ($codigo <= 10000))
        {
        $codigo = "00$codigo";
        }


include ("../conf/configuracao.php");


?>

<html>
<head>
</head>
<body bgcolor="#FFFFFF" leftmargin=0 topmargin=0>

<table width="620" CELLSPACING=0 CELLPADDING=0 CELLSPACING=0 CELLPADDING=0 border=0>
<tr>
<td width="20%" align="left">
<img src="../../../../../WINDOWS/Desktop/vestibular/inscricao/<? echo $url_page; ?>images/estrela.gif" alt="FUNEC" border="0">
<center><font face="arial" size="2">Número de <br>Inscrição: <?echo $codigo; ?></font></center></td>

<td width="60%" align="center">
<center><font face="verdana" size="1" color="blue"><strong>AUTENTICAR NO VERSO - VIA DO CANDIDATO</strong></font></center>
<font face="arial" size="+2">
<b>3º Processo Seletivo de 2002</b></font><br>
<font face="arial" size="3">
<strong>UNIDADES DE ENSINO DA<br>FUNDAÇÃO EDUCACIONAL DE CARATINGA</strong></font><br>
<font size="1" face="arial">
</font>
</td>

<td width="19%" align="right"><!---<img src="<? echo $url_page; ?>images/foto.gif" alt="" border="0">--> &nbsp;</td>
<td width="1%"><font face="Verdana" size="1">&nbsp;</font></td>
</tr>
<tr>
<td colspan=4><img src="../../../../../WINDOWS/Desktop/vestibular/inscricao/<? echo $url_page; ?>images/imagem2.jpg" alt="" border="0"></td>
<tr>
</table>

<img src="../../../../../WINDOWS/Desktop/vestibular/inscricao/<? echo $url_page; ?>images/corta.gif" alt="" border="0">


<?

include("../include/conectabd.php");

$sql = "SELECT * FROM perguntas_pesquisa order by codigo ASC";
$result = mysql_query($sql)
    or die ( 'Não foi possível executar a query 0.' );

$i = 0;

while($info = mysql_fetch_array($result))
{
$i++;
}
?>


<table width="639" CELLSPACING=0 CELLPADDING=0 border=1>
<tr>
<td colspan="<?echo $i;?>"><center><b><font face="arial" size="3">Pesquisa Sócio-Econômica</font></b></center></td>
</tr>
<tr>

<?
if (!$socio_economico)
{

include("../include/conectabd.php");

$sql = "SELECT * FROM perguntas_pesquisa order by codigo ASC";
$result = mysql_query($sql)
    or die ( 'Não foi possível executar a query 0.' );

$i = 0;
$j = 1;
while($info = mysql_fetch_array($result))
  {
echo "<td align=\"center\"><font face=\"arial\" size=\"2\">";

if ($j <= 9) {
	echo "<b>0$j</b>:<br>&nbsp;</font></td>";
}
else {
	echo "<b>$j</b>:<br>&nbsp;</font></td>";
}
  $i++;
  $j++;
  }


}


$i = 0;
$j = 1;
while ($resp[$i])
{
echo "
<td><font face=\"arial\" size=\"2\">
<b>$j</b>: $resp[$i]
</font></td>
";
$i++;
$j++;
}
?>
</tr>
</table>

<table width="620" CELLSPACING=0 CELLPADDING=0 border=0>
<tr>
<td width="20%" align="left" valign="top"><img src="../../../../../WINDOWS/Desktop/vestibular/inscricao/<? echo $url_page; ?>images/estrela.gif" alt="FUNEC" border="0"><center><font face="arial" size="2">Número de <br>Inscrição: <?echo $codigo; ?></font></center></td>
<td width="60%" align="center">
<center><font face="verdana" size="1" color="blue"><strong>VIA DO BANCO</strong></font></center>
<font face="arial" size="+2">
<b>3º Processo Seletivo de 2002</b></font><br>
<font face="arial" size="3">
<strong>UNIDADES DE ENSINO DA <br>FUNDAÇÃO EDUCACIONAL DE CARATINGA</strong></font><br>
<font size="1" face="arial">
</font>
</td>

<td width="19%" align="right">
<!---<img src="<? echo $url_page; ?>images/foto.gif" alt="" border="0">-->
&nbsp;
</td>
<td width="1%"><font face="Verdana" size="1">&nbsp;</font></td>
</tr>

<tr>
<td colspan=3>


<table width="620" CELLSPACING=0 CELLPADDING=0 border=0>
<tr>
<td width="100%"><img src="../../../../../WINDOWS/Desktop/vestibular/inscricao/<? echo $url_page; ?>images/img3_new_1.jpg" alt="" border="0"><br>
	<table width="100%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#000000">
		<tr>
			<td>
				<font face="arial" size="1">
O candidato declara concordar com as normas gerais que regem o Concurso do 3º Processo Seletivo de 2002, de acordo com o Edital em vigor.<br><br>
_______________________, _________ de _________________________ de 2002<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Assinatura: ________________________________________________</font>
			</td>
		</tr>
	</table>
<!---<img src="<? echo $url_page; ?>images/img4_new.jpg" alt="" border="0">--->
</td>
</tr>
</table>
<br>

</td>
<tr>
</table>



<!--- <table width="620" CELLSPACING=0 CELLPADDING=0>
<tr>
<td><center><font face="verdana" size="1" color="blue"><strong>VIA DO BANCO</strong></font><br></center></td>
</tr>
</table>
 --->
<table width="620" CELLSPACING=0 CELLPADDING=0>
<tr>
<td width="220"><b><font face="arial" size="2" color="#000000">NÃO RECEBER APÓS 06/07/2002</b><br>Autenticação Mecânica:</font></td>
<td width="400">

<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="20%"><font face="verdana" size="1"><strong>Em Dinheiro</strong></font></td>
<td width="14%"><font face="verdana" size="1">&nbsp;</font></td>
<td width="20%"><font face="verdana" size="1"><strong>Em Cheque</strong></font></td>
<td width="14%"><font face="verdana" size="1">&nbsp;</font></td>
<td width="17%"><font face="verdana" size="1"><strong>Total</strong></font></td>
<td width="17%" align="center"><font face="verdana" size="1"><strong>R$ <? echo $valor_boleto;?></strong></font></td>
</tr>

</table>

</td>

</tr>
<tr>
<td colspan="4"><center><? include("boleto.php"); ?></center></td>

</tr>
</table>
<table width="620" CELLSPACING=0 CELLPADDING=0 border=0>
<tr>
</tr>
</table>
<img src="../../../../../WINDOWS/Desktop/vestibular/inscricao/<? echo $url_page; ?>images/corta.gif" alt="FUNEC" border="0">
</body>
</html>

