Exemplo n.º 1
0
} 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>';
}
$reg_id = $ref_ . '_op';
$reg_data = $ref_ . '_od';
$linka = 'register_unit_ajax.php?dd1=' . $protocol . '&dd2=add&dd9=' . $reg_data . '&dd3=' . $autor . '&dd4=' . $campo . '&dd6=' . $ref . '&dd90=' . checkpost($protocol . $campo);
$linkr = 'register_unit_ajax.php?dd1=' . $protocol . '&dd2=del&dd9=' . $reg_data . '&dd3=' . $autor . '&dd4=' . $campo . '&dd6=' . $ref . '&dd90=' . checkpost($protocol . $campo);
?>
<table width="100%" class="tabela01 lt1" cellspacing="0" cellpadding="3" border=0>
	<TR><TD><?php 
echo msg('reg_unit');
?>
} 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);
}
if ($dd[2] == 'del') {
    $register->dados_del($protocol, $number);
}
/** Mostra os registros e formulario **/
$ops = $register->lista('S');
if (count($ops) > 0) {
    echo '<fieldset><legend>' . msg('register_secundary') . '</legend>';
    $op = '';
    for ($r = 0; $r < count($ops); $r++) {
        $op .= '<option value="' . $ops[$r][0] . '">';
        $op .= $ops[$r][1];
        $op .= '</option>';
    }
    $reg_id = $ref_ . '_op';
    $linka = 'register_unit_ajax.php?dd1=' . $protocol . '&dd2=add&dd3=' . $autor . '&dd4=' . $campo . '&dd6=' . $ref . '&dd90=' . checkpost($protocol . $campo);
    $linkr = 'register_unit_ajax.php?dd1=' . $protocol . '&dd2=del&dd3=' . $autor . '&dd4=' . $campo . '&dd6=' . $ref . '&dd90=' . checkpost($protocol . $campo);
    ?>
<table width="100%" class="lt1" cellspacing="0" cellpadding="3" border=0>
	<TR><TD><?php 
    echo msg('reg_unit');