<?php 
if($_SESSION['nivel'] == 1){

if(count($_GET)>0){
  while (list($variavelNOME,$variavelGET) = each($_GET)) {
    $$variavelNOME= $variavelGET;
  }
}
if(count($_POST)>0){
  while (list($variavelNOME,$variavelPOST) = each($_POST)) {
    $$variavelNOME= $variavelPOST;
  }
}
	 $result=mysql_query("select * from crm_tipoCertidao where id='$cod'");
	  $linha=mysql_fetch_array($result);
		list($id, $tipo)=$linha;

?>
<form action="miolo.php?miolo=certidoes&acao=updatetipocertidao" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
      <td height="25" align="left" valign="middle"><strong class="style11">Cadastro de Tipo de Certid&atilde;o </strong></td>
      <td width="333" height="25" align="left" valign="middle">&nbsp;</td>
      <td width="166" height="25" align="left" valign="middle"><a href="javascript:history.go(-1);" class="style11">Voltar</a></td>
    </tr>
    <tr>
      <td width="201" height="25" align="right" valign="middle"><span class="style11">Tipo de Certid&atilde;o: </span></td>
      <td height="25" colspan="2" align="left" valign="middle"><input name="cod" type="hidden" id="cod" value="<? echo $id ?>"/><input name="tipo" type="text" id="tipo" value="<? echo $tipo; ?>" size="50" /></td>
    </tr>
    <tr>
      <td height="24" colspan="3" align="center" valign="middle">&nbsp;</td>
    </tr>
    <tr>
      <td height="24" colspan="3" align="center" valign="middle">
        <input name="gravar" type="submit" id="gravar" value="Gravar" />
        <input name="limpar" type="reset" id="limpar" value="Limpar" /></td>
    </tr>
  </table>
</form>
<?
}
?>