<?php
	require('../../connect/db.php');
	db_connect() or die ("Houve erro ao acessar estes dados!");

	$cod = $_GET['id'];

	$result=mysql_query("select * from curriculo where id='$cod'");
list($cod, $nome, $estcivil, $dtnasc, $endereco, $bairro, $cidade, $estado, $pais,$telefone, $email, $salario, $empregado, $objetivo, $instituicao, $curso, $concluido, $periodoinicial, $periodofinal, $instituicao2, $curso2, $concluido2, $periodoinicial2, $periodofinal2, $instituicao3, $curso3, $concluido3, $periodoinicial3, $periodofinal3, $empresa, $cargo, $inicioempresa, $finalempresa, $atribuicoescargo, $telcontempresa, $pessoacontato, $empresa2, $cargo2, $inicioempresa2, $finalempresa2, $atribuicoescargo2, $telcontempresa2, $pessoacontato2, $empresa3, $cargo3, $inicioempresa3, $finalempresa3, $atribuicoescargo3, $telcontempresa3, $pessoacontato3, $cursosespecializacoes)=$linha=mysql_fetch_array($result);

	?>
	<table border="0" class="tabela-conteudo" cellspacing="10" width="100%">
		<tbody>
		<tr>
    <td height="15" bgcolor="#CCCCCC" width="100%"><span class="style5">Nome: </span></td>
    </tr>
  <tr>
    <td height="12" valign="top"><span class="style3">
      <input name="cod" id="cod" type="hidden" value="<? echo utf8_decode($cod); ?>" />
      <? echo utf8_decode($nome); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Endere&ccedil;o:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($endereco); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" align="left" valign="middle" bgcolor="#CCCCCC"><span class="style5">Bairro:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($bairro); ?><br />
      <br />
      </span></td>
    </tr>
  <tr>
    <td height="15" align="left" bgcolor="#CCCCCC"><span class="style5">Cidade/UF:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode("$cidade - $estado"); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" align="left" bgcolor="#CCCCCC"><span class="style5">Estado civ&iacute;l:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($estcivil); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" align="left" bgcolor="#CCCCCC"><span class="style5">Nascimento:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($dtnasc); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" align="left" bgcolor="#CCCCCC"><span class="style5">Telefone:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($telefone); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" align="left" bgcolor="#CCCCCC"><span class="style5">E-mail:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($email); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" align="left" bgcolor="#CCCCCC"><span class="style5">Salario pretendido:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($salario); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" align="left" bgcolor="#CCCCCC"><span class="style5">Empregado: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($empregado); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Objetivo:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($objetivo); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Institui&ccedil;&atilde;o:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($instituicao); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Curso: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($curso); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Conclu&iacute;do:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($concluido); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Per&iacute;odo Inicial:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($periodoinicial); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Per&iacute;odo Final: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($periodofinal); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Institui&ccedil;&atilde;o:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($instituicao2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Curso: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($curso2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Conclu&iacute;do:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($concluido2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Per&iacute;odo Inicial:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($periodoinicial2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Per&iacute;odo Final: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($periodofinal2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Institui&ccedil;&atilde;o:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($instituicao3); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Curso: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($curso3); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Conclu&iacute;do:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($concluido3); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Per&iacute;odo Inicial:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($periodoinicial3); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Per&iacute;odo Final: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($periodofinal3); ?><br />
      <br />
    </span></td>
    </tr>    
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Empresa:</span></td>
    </tr>
  <tr>
    <td height="15"><span class="style3"><? echo utf8_decode($empresa); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Cargo: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($cargo); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Data de In&iacute;cio na Empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($inicioempresa); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Data de Sa&iacute;da da empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($finalempresa); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Atribui&ccedil;&otilde;es do Cargo: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($atribuicoescargo); ?><br />
      <br />
    </span></td>
    </tr>  

  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Telefone de Contato da Empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($telcontempresa); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Pessoa de Contato: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($pessoacontato); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($empresa2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Cargo: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($cargo2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Data de In&iacute;cio na Empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($inicioempresa2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Data de Sa&iacute;da da empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($finalempresa2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Atribui&ccedil;&otilde;es do Cargo: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($atribuicoescargo2); ?><br />
      <br />
    </span></td>
    </tr>  

  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Telefone de Contato da Empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($telcontempresa2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Pessoa de Contato: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($pessoacontato2); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($empresa3); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Cargo: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($cargo3); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Data de In&iacute;cio na Empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($inicioempresa3); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Data de Sa&iacute;da da empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($finalempresa3); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Atribui&ccedil;&otilde;es do Cargo: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($atribuicoescargo3); ?><br />
      <br />
    </span></td>
    </tr>  

  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Telefone de Contato da Empresa:</span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($telcontempresa3); ?><br />
      <br />
    </span></td>
    </tr>
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Pessoa de Contato: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($pessoacontato3); ?><br />
      <br />
    </span></td>
    </tr>  
  <tr>
    <td height="15" bgcolor="#CCCCCC"><span class="style5">Cursos de Especializa&ccedil;&otilde;es: </span></td>
    </tr>
  <tr>
    <td height="12"><span class="style3"><? echo utf8_decode($cursosespecializacoes); ?><br />
      <br />
    </span></td>
    </tr>
		</tbody>
	</table>
