Example #1
0
$campo = $dd[4];
$unit = $dd[10];
$number = $dd[11];
$data = $dd[13];
/* Mensagens do sistema */
require "_class/_class_message.php";
$file = 'messages/msg_' . $LANG . '.php';
if (file_exists($file)) {
    require $file;
} else {
    echo 'message not found ' . $file;
}
$LANG = $lg->language_read();
$edit_mode = round($_SESSION['editmode']);
require '_class/_class_register_unit.php';
$register = new register_unit();
/**** Funções ****/
if ($dd[2] == 'add') {
    $register->dados_add($protocol, $unit, $number, $data);
}
if ($dd[2] == 'del') {
    $register->dados_del($protocol, $number);
}
/** Mostra os registros e formulario **/
$ops = $register->lista('P');
$op = '';
for ($r = 0; $r < count($ops); $r++) {
    $op .= '<option value="' . $ops[$r][0] . '" class="form_select_option">';
    $op .= $ops[$r][1];
    $op .= '</option>';
}
Example #2
0
 * @version v0.13.46
 * @package ProEthos-Admin
 * @subpackage Unit Register
 */
require "cab.php";
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
    redirecina('main.php');
}
require $include . 'sisdoc_colunas.php';
require $include . 'sisdoc_debug.php';
//$sql = "delete from _messages where 1=1";
//$rlt = db_query($sql);
require "_class/_class_register_unit.php";
$clx = new register_unit();
$tabela = $clx->tabela;
$label = msg('tit_' . $tabela);
$http_edit = 'admin_register_unit_ed.php';
$editar = True;
$http_redirect = 'admin_register_unit.php?dd98=' . $dd[98] . '&dd97=' . $dd[97];
$clx->row();
$busca = true;
$offset = 20;
//$pre_where = " e_mailing = '".$cl->mail_codigo."' ";
$order = $cdf[1];
echo '<TABLE width="' . $tab_max . '" align="center"><TR><TD>';
require $include . 'sisdoc_row.php';
echo '</table>';
echo '</div>';
?>
 * @package ProEthos-Admin
 * @subpackage Unit Register
 */
require "cab.php";
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
    redirecina('main.php');
}
require "_class/_class_register_unit.php";
global $acao, $dd, $cp, $tabela;
require $include . 'sisdoc_colunas.php';
require $include . '_class_form.php';
$form = new form();
require "form_css.php";
$cl = new register_unit();
$cp = $cl->cp();
$tabela = $cl->tabela;
$http_edit = 'admin_register_unit_ed.php';
$http_redirect = '';
$tit = msg("tit_" . $cl->tabela);
/** Comandos de Edicao */
$tela = $form->editar($cp, $tabela);
/** Caso o registro seja validado */
if ($form->saved > 0) {
    echo 'Salvo';
    $cl->updatex();
    redirecina('admin_register_unit.php');
} else {
    echo $tela;
}