Пример #1
0
 * @version v0.13.46
 * @package ProEthos-Admin
 * @subpackage faq
 */
require "cab.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 . 'sisdoc_colunas.php';
/* Dados da Classe */
require '_class/_class_faq.php';
$clx = new faq();
$cp = $clx->cp();
$tabela = $clx->tabela;
/* N�o alterar - dados comuns */
echo '<h1>' . msg('menu_faq') . '</h1>';
$http_edit = $tabela . '_ed.php';
//$http_ver = 'pibic_bolsa_tipo_detalhe.php';
$editar = True;
$http_redirect = $tabela . '.php';
$clx->row();
$busca = true;
$offset = 20;
//$pre_where = " e_mailing = '".$cl->mail_codigo."' ";
if ($order == 0) {
    $order = $cdf[3] . ' ,' . $cdf[2];
}
$pre_where = " faq_idioma = '" . $LANG . "' ";
Пример #2
0
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
    redirecina('main.php');
}
require '_class/_class_faq.php';
$ln = new message();
global $acao, $dd, $cp, $tabela;
require $include . 'sisdoc_colunas.php';
require $include . '_class_form.php';
$form = new form();
require "form_css.php";
require $include . 'sisdoc_data.php';
require $include . 'sisdoc_debug.php';
$cl = new faq();
$cp = $cl->cp();
$tabela = $cl->tabela;
$http_edit = $tabela . '_ed.php';
$http_redirect = '';
$tit = msg("tit" . $tabela);
/** Comandos de Edicao */
echo '<CENTER><h2>' . $tit . '</h2></CENTER>';
$tela = $form->editar($cp, $form);
echo '</div>';
/** Caso o registro seja validado */
if ($saved > 0) {
    echo 'Salvo';
    $cl->updatex();
    redirecina($tabela . '.php');
} else {
    echo $tela;