* @package ProEthos-Admin * @subpackage protocols */ require "cab.php"; require "_class/_class_cep.php"; /* Admin Common */ $ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO')); if ($ok == 0) { redirecina('main.php'); } global $acao, $dd, $cp, $tabela; require $include . '_class_form.php'; $form = new form(); require $include . 'sisdoc_data.php'; $cl = new cep(); $cp = $cl->cep_manual(); $tabela = $cl->tabela; $http_edit = page(); $http_redirect = ''; /** Comandos de Edicao */ $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { echo 'Salvo'; $cl->updatex(); redirecina('admin_protocols.php'); } else { echo $tela; } echo '</div>'; echo $hd->foot();