echo $row[nome]; ?> " type="text" class="forms" id="nom" size="50" maxlength="80" /> </label> <br /> <label></label></td> <td width="130"><?php echo $r[3]; ?> CPF<br /> <input name="cpf" value="<?php echo ajusta_cpf($row['cpf'], 2); ?> " type="text" class="forms" id="cpf" maxlength="14" onKeypress="return Ajusta_CPF(this, event);" /> <input name="cpf_ant" value="<?php echo ajusta_cpf($row['cpf_ant'], 2); ?> " type="hidden" class="forms" id="cpf_ant" /></td> </tr> <tr> <td>RG<br /> <input name="rg" value="<?php echo $row[rg]; ?> " type="text" class="forms" id="rg" /></td> <td>Estado Civil<br /><select name="estadocivil" class="forms" id="estadocivil"> <?php $estados = array('Solteiro(a)', 'Casado(a)', 'Separado(a)', 'Divorciado(a)', 'Amasiado(a)', 'Viúvo(a)'); foreach ($estados as $uf) { if ($row[estadocivil] == $uf) { echo '<option value="' . $uf . '" selected>' . $uf . '</option>';
$strScrp = "Ajax('fornecedores/gerenciar', 'conteudo', '');"; } } if ($_GET[acao] == "editar") { $strLoCase = $LANG['suppliers']['editing']; $frmActEdt = "?acao=editar&codigo=" . $_GET[codigo]; $fornecedor->LoadFornecedores($_GET[codigo]); $row = $fornecedor->RetornaTodosDados(); $row[nascimento] = converte_data($row[nascimento], 2); $row[nascimentomae] = converte_data($row[nascimentomae], 2); $row[nascimentopai] = converte_data($row[nascimentopai], 2); $row[admissao] = converte_data($row[admissao], 2); $row[demissao] = converte_data($row[demissao], 2); if (strlen($row['cpf']) == 11 || $row['cpf'] == '') { $cpf_cnpj = 'cpf'; $row['cpf'] = ajusta_cpf($row['cpf'], 2); $chk['cpfcnpj']['cpf'] = 'checked'; } elseif (strlen($row['cpf']) == 14) { $cpf_cnpj = 'cnpj'; $row['cpf'] = ajusta_cnpj($row['cpf'], 2); $chk['cpfcnpj']['cnpj'] = 'checked'; } } else { /*if(checknivel('Dentista') || checknivel('Funcionario')) { die('<script>alert(\''.substr($frase_adm, 12).'\'); Ajax(\'fornecedores/gerenciar\', \'conteudo\', \'\')</script>'); }*/ if ($j == 0) { $row = ""; } else { $row = $_POST; }