/* Admin Common */ $ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO')); if ($ok == 0) { redirecina('main.php'); } $ln = new message(); global $acao, $dd, $cp, $tabela; require $include . 'sisdoc_colunas.php'; require $include . '_class_form.php'; $form = new form(); require $include . 'sisdoc_data.php'; require $include . 'sisdoc_debug.php'; require "_ged_documents.php"; $tabela = $ged->tabela . '_tipo'; $cp = $ged->cp(); $http_edit = 'admin_docs_type_ed.php'; $http_ver = 'admin_docs_type_ver.php'; $http_redirect = ''; $tit = msg("titulo"); /** Comandos de Edicao */ echo '<CENTER><font class=lt5>' . msg('titulo') . '</font></CENTER>'; $tela = $form->editar($cp, $tabela); echo '</div>'; /** Caso o registro seja validado */ if ($form->saved > 0) { $ged->updatex(); redirecina('admin_docs_type.php'); } else { echo $tela; } echo $hd->foot();
// Software. If not, see // https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt /** * Admin Menu * @author Rene Faustino Gabriel Junior (Analista-Desenvolvedor) * @copyright © Pan American Health Organization, 2013. All rights reserved. * @access public * @version v0.13.46 * @package ProEthos-Admin * @subpackage Country */ 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'; require "_class/_class_ajax_pais.php"; $clx = new country(); $tabela = $clx->tabela; $label = msg('tit_' . $tabela); $http_edit = 'admin_country_ed.php'; $editar = True; $http_ver = ''; $http_redirect = page() . '?dd98=' . $dd[98] . '&dd97=' . $dd[97]; $clx->row(); $busca = true; $offset = 20; //$pre_where = " e_mailing = '".$cl->mail_codigo."' ";
// You should have received a copy of the ProEthos License along with the ProEthos // Software. If not, see // https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt /** * Sumissão de protocolo de pesquisa * @author Rene Faustino Gabriel Junior (Analista-Desenvolvedor) * @copyright © Pan American Health Organization, 2013. All rights reserved. * @access public * @version v0.12.22 * @package Class * @subpackage UC0001 - Sumissão de protocolo de pesquisa */ require 'submit_00_field.php'; if (strlen($acao) > 0) { require 'submit_save.php'; } echo '<TR><TD colspan=2>'; require 'submit_pages.php'; echo $s; echo '</table>'; if ($ok > 0 and strlen($acao) > 0) { $_SESSION['proj_page'] = $pag + 1; redirecina('submit.php?time' . date("dmYhis")); } ?> <script> <?php echo $scripts; ?> </script>
} /* Admin Common */ $ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO')); if ($ok == 0) { redirecina('main.php'); } require "_class/_class_submit_manuscrito_field.php"; global $acao, $dd, $cp, $tabela; require $include . 'sisdoc_colunas.php'; require $include . '_class_form.php'; $form = new form(); require "form_css.php"; echo '<h1>' . msg('amendment_' . $adm) . '</h1>'; $dd[12] = strzero($adm, 5); $cl = new fields(); $cp = $cl->cp(); $tabela = $cl->tabela; $http_edit = 'admin_submit_ed.php'; $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_submit_000.php'); } else { echo $tela; } echo '</div>'; echo $hd->foot();
* Admin Menu * @author Rene Faustino Gabriel Junior (Analista-Desenvolvedor) * @copyright © Pan American Health Organization, 2013. All rights reserved. * @access public * @version v0.13.46 * @package ProEthos-Admin * @subpackage calender */ require "cab.php"; require "_class/_class_calender.php"; global $acao, $dd, $cp, $tabela; require $include . '_class_form.php'; require $include . 'sisdoc_data.php'; $form = new form(); require "form_css.php"; $cl = new calendar(); $cp = $cl->cp(); $tabela = $cl->tabela; $http_edit = page(); $http_redirect = ''; $label = msg('tit_' . $tabela); /** Edit */ echo '<h2>' . $label . '</h2>'; $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { redirecina('admin_calender.php'); } else { echo $tela; } echo $hd->foot();
redirecina('main.php'); } /* Valid Submit */ $chk = checkpost($dd[0]); $ch2 = $dd[90]; if ($chk == $ch2) { /* Active Mode Ghost */ if (strlen($dd[1]) == 0) { /* Save original user */ $ss->set_user_original(); $ss->le($dd[0]); /* Active mode ghost */ $ss->set_ghost(); $ss->ghost_user(); redirecina("main.php"); } /* DesActive Mode Ghost */ if (strlen($dd[1]) > 0) { $ss->reset_user_original(); $ss->reset_ghost(); $ss->le($dd[0]); $ss->normal_user(); redirecina("main.php"); } } else { echo '<h1>' . msg('ghost_mode') . '</h1>'; echo '<div class="error">' . msg('access_error'); '</div>'; } echo '</div>'; echo $hd->foot();
$varf = 'dd' . $k; $varf = $vars[$varf]; //if (isset($varf) and ($k > 1)) { //$varf = str_replace($varf,"A","�"); } $dd[$k] = xss_security_post($varf); } $acao = $vars['acao']; $nocab = $vars['nocab']; //-------------------------------------- Determina o Idioma de Navega��o $idv = $vars['idioma']; //-------------------------------------------- Biblioteca $tab_max = '100%'; $db_config = '_db/db_proethos.php'; if ($install != 1) { /* Aquivo de configuração do banco de dados */ if (!file_exists($db_config)) { redirecina('_install/'); } require $db_config; } $edit_mode = round($_SESSION['editmode']); function show_logo() { global $http; $sx .= '<img src="img/logo_proethos.png" height=18> '; $sx .= msg('about_print'); return $sx; } function xss_security_post($s) { $s = troca($s, '<', '<'); $s = troca($s, '>', '>');
redirecina('main.php'); } require '_class/_class_dictamen.php'; $ln = new message(); global $acao, $dd, $cp, $tabela; require $include . 'sisdoc_colunas.php'; require $include . '_class_form.php'; require $include . 'sisdoc_data.php'; require $include . 'sisdoc_debug.php'; $form = new form(); require "form_css.php"; $cl = new dictamen(); $cp = $cl->cp_modelo(); $http_edit = 'admin_parecer_modelo_ed.php'; $http_redirect = ''; $tit = msg("titulo"); /** Comandos de Edicao */ echo '<CENTER><font class=lt5>' . msg('titulo') . '</font></CENTER>'; echo '<table width="100%"><TR><TD>'; $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { echo "SALVO"; $cl->updatex(); redirecina('admin_parecer_modelo.php'); } else { echo $tela; } echo '</table>'; echo '</div>'; echo $hd->foot();
$style_add = array('proethos_form.css'); require "cab.php"; /* Admin Common */ $ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO')); if ($ok == 0) { redirecina('main.php'); } /* Form Library */ require $include . '_class_form.php'; $form = new form(); require "form_css.php"; /* Committee Library */ require_once "_class/_class_committee.php"; $cm = new committee(); $cp = $cm->cp(); /* Recover ID */ if ($cm->config_exist()) { $dd[0] = $cm->id; } $tabela = "_committee"; echo '<h2>' . msg("configuration_committe") . '</h2>'; $tela = $form->editar($cp, $tabela); if ($form->saved > 0) { $cm->save_arq(); echo '<h3>' . msg('saved') . '</h3>'; redirecina('contact.php'); } else { echo $tela; } echo '</div>'; echo $hd->foot();
/** * Recupera dados do Usu�rio * @return Booblean */ function Security() { global $secu, $user_login, $user_nivel, $user_nome, $user_id; $md5 = trim($_SESSION["user_chk"]); $nm1 = trim($_SESSION['user_login']); $nm2 = trim($_SESSION['user_nome']); $nm3 = trim($_SESSION['user_nivel']); $nm6 = trim($_SESSION['user_id']); $nm7 = trim($_SESSION['user_perfil']); $nm8 = trim($_SESSION['user_codigo']); $mt1 = 10; if (strlen($md5) == 0) { /* Recupera por Cookie */ $md5 = trim($_COOKIE["user_chk"]); $nm1 = $_COOKIE["user_login"]; $nm2 = $_COOKIE["user_nome"]; $nm3 = $_COOKIE["user_nivel"]; $nm6 = $_COOKIE['user_id']; $nm7 = $_COOKIE['user_perfil']; $nm8 = $_COOKIE['user_codigo']; $mt1 = 20; } $mm4 = md5($nm1 . $nm2 . $nm3 . $secu); if (strlen($nm1) > 0 and strlen($nm2) > 0) { if (trim($mm4) == trim($md5)) { $this->user_login = $nm1; $this->user_nome = $nm2; $this->user_nivel = $nm3; $this->user_id = $nm6; $this->user_erro = $mt1; $this->user_perfil = $nm7; $this->user_codigo = $nm8; $_SESSION["user_chk"] = $md5; $_SESSION['user_login'] = $nm1; $_SESSION['user_nome'] = $nm2; $_SESSION['user_nivel'] = $nm3; $_SESSION['user_id'] = $nm6; $_SESSION['user_perfil'] = $nm7; $_SESSION['user_codigo'] = $nm8; $user_id = $nm6; $user_login = $nm1; $user_nivel = $nm3; $user_nome = $nm2; return True; } else { $this->user_erro = -4; $this->user_msg = 'End section'; redirecina('login.php'); return False; } } else { $this->user_erro = -5; $this->user_msg = 'End section'; redirecina('login.php'); return False; } }
*/ 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; } echo '</div>'; echo $hd->foot();
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; } echo $hd->foot();
* @package ProEthos-Admin * @subpackage calender */ 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_action.php"; global $acao, $dd, $cp, $tabela; require $include . '_class_form.php'; require $include . 'sisdoc_data.php'; $form = new form(); $cl = new action(); $cp = $cl->cp(); $tabela = $cl->tabela; $http_edit = page(); $http_redirect = ''; $label = msg('tit_' . $tabela); /** Edit */ echo '<h2>' . $label . '</h2>'; $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { redirecina('admin_action.php'); } else { echo $tela; } echo '</div>'; echo $hd->foot();
* @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();
* @package ProEthos-Admin * @subpackage user */ 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'; require $include . '_class_form.php'; $form = new form(); require 'form_css.php'; $cl = new users(); $cp = $cl->cp_admin(); $tabela = $cl->tabela; $http_edit = 'admin_user_ed.php'; $http_redirect = ''; /** Comandos de Edicao */ echo '<CENTER><h2>' . msg('users') . '</h2></CENTER>'; $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { $cl->updatex(); redirecina('admin_user.php'); } else { echo $tela; } echo '</div>'; echo $hd->foot();
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_ajax_pais.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 country(); $cp = $cl->cp(); $tabela = $cl->tabela; $http_edit = 'admin_country_ed.php'; $http_redirect = ''; $tit = msg("titulo"); /** Comandos de Edi��o */ echo '<CENTER><font class=lt5>' . msg('titulo') . '</font></CENTER>'; $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { echo 'Salvo'; $cl->updatex(); redirecina('admin_country.php'); } else { echo $tela; } echo '</div>'; echo $hd->foot();
echo '<BR>'; $sx = '<span id="create_pdf" class="form_submit">' . msg('create_PDF') . '</span>'; $sx .= ' <script> $("#create_pdf").click(function() { window.open(\'submit_amendment_pdf.php?dd0=' . $protocolo . '&dd90=' . checkpost($protocolo . $secu) . '\', \'pdf\', \'create pdf\'); }); </script> '; echo $sx; echo '<BR><BR>'; /* Compromisso */ //if (strlen($dd[81]) == 0) { $xok = 0; } if ($xok == 1) { if (strlen($dd[81]) > 0) { redirecina('submit_end_monitoreo.php'); } /* Termo */ require 'submit_pages.php'; echo '<form action="submit.php">'; echo '<BR>'; echo mst(msg('submit_term_' . $doc_tipo)); echo '<input type="hidden" name="dd81" value="1">'; echo '<BR>'; echo '<input type="submit" value="' . msg('submit_monitoreo') . '" class="form_submit">'; echo '</form>'; } else { echo msg('exist_pending_submit'); } ?> <script></script>
function redireciona($pg) { redirecina($pg); }
require 'cab.php'; require $include . 'sisdoc_debug.php'; global $acao, $dd, $cp, $tabela; require $include . '_class_form.php'; $form = new form(); $cl = new message(); $cp = $cl->cp(); $tabela = $cl->tabela; $http_edit = 'message_ed.php'; $http_redirect = ''; $tit = msg("titulo"); /** Comandos de Edicao */ echo '<CENTER><font class=lt5>' . msg($tabela) . '</font></CENTER>'; $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { echo 'Salvo'; $cl->updatex(); redirecina('message.php'); } else { echo '<table width="100%" class="lt1">'; echo '<tr valign="top">'; echo '<td>'; echo $tela; echo '<td width="300">'; echo '<B>' . msg('message_page') . '</b><HR>'; echo $cl->mostra_page($dd[0]); echo '</table>'; } echo '</div>'; echo $hd->foot();
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_calender.php"; global $acao, $dd, $cp, $tabela; require $include . 'sisdoc_colunas.php'; require $include . 'sisdoc_data.php'; require $include . '_class_form.php'; $form = new form(); require "form_css.php"; $cl = new calendar(); $cp = $cl->cp_type(); $tabela = $cl->tabela_type; $http_edit = page(); $http_redirect = ''; $tit = msg("titulo"); /** Comandos de Edicao */ echo '<CENTER><font class=lt5>' . msg('titulo') . '</font></CENTER>'; $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { $cl->updatex(); redirecina('admin_calender_type.php'); } else { echo $tela; } echo '</div>'; echo $hd->foot();
require $include . 'sisdoc_data.php'; /* Resume */ require "_class/_class_resume.php"; require $include . 'sisdoc_data.php'; $rs = new resume(); /* load config committee */ require "_class/_class_committee.php"; $cmt = new committee(); if ($cmt->config_exist_file() != 0) { require_once $cmt->file; } /* Valida paramentros do Committee */ require_once "_class/_class_committee.php"; $cmt = new committee(); if ($cmt->config_exist_file() == 0) { redirecina('admin_committe.php'); } /* Carrega dados do calendário */ require "_class/_class_calender.php"; $cal = new calendar(); /* Mostra resumo */ echo $rs->resume(); echo '<BR>'; /* Se form membro do CEP, mostra resumo */ if ($perfil->valid('#MEM')) { echo $rs->resume_cep(); } else { if ($perfil->valid('#ADC')) { echo $rs->resume_adhoc(); } }
$nomet = $_FILES['arquivo']['name']; $temp = $_FILES['arquivo']['tmp_name']; $size = $_FILES['arquivo']['size']; $nome = $dd[1]; $check = $dd[3]; if (move_uploaded_file($temp, $dir . $nome) == 1) { echo '<font color="green">'; echo $nome . ' ' . msg('file_saved'); echo '</font>'; } else { echo '<font color="red">'; echo $nome . ' ' . msg('file_not_saved'); echo '</font>'; exit; } redirecina(page()); } else { echo '<BR>Erro de check'; echo '<BR>' . $dd[2]; echo '<BR>' . $chkp; } } echo '<HR>'; $sx = '<Table class="tabela00" width="100%">'; if (is_dir($dir)) { if ($handle = opendir($dir)) { $sigla = array('', 'k', 'M', 'G', 'T', 'P'); /* Esta na forma correta de varrer o diretorio */ $id = 0; $js = ''; while (false !== ($file = readdir($handle))) {
$submit = new submit(); require '_class/_class_cep_email.php'; $comm = new comunication(); /* recupara ID do projeto */ $ID = strzero($dd[0], 7); $submit->le($ID); $doc_tipo = $submit->doc_tipo; /* Action */ $acao = $dd[5]; if ($acao == 'TO_SUBMIT') { $submit->protocolo_to_submit(); redirecina('submit.php?dd0=' . $dd[0] . '&dd90=' . checkpost($dd[0])); } if ($acao == 'TO_AMED') { $submit->protocolo_to_submit(); redirecina('submit_amendment.php?dd0=' . $dd[0] . '&dd90=' . checkpost($dd[0])); } echo '<h1>Protocolo: ' . $submit->status_show($submit->doc_status) . '</h1>'; echo $submit->protocolo_mostrar(); $status = trim($submit->doc_status); echo '<BR>'; require "_ged_config.php"; $ged->protocol = $ID; echo $ged->filelist(); /* * Hidden Other information */ if ($acao == 'TO_CANCEL_ASK') { $status = '@@'; } if ($acao == 'TO_CANCEL') {
function action($ac) { /* Indique avaliation */ if ($ac == '099') { $this->action_099(); } /* Indique avaliation */ if ($ac == '090') { $this->action_090(); } /* Indique avaliation */ if ($ac == '002') { $this->action_002(); } /* Accept to Meet */ if ($ac == '019') { $this->cep_historic_append($ac, msg('accept_to_meet')); $this->cep_status_alter('C'); redirecina('protocol_detalhe.php'); } /* Accept Submission */ if ($ac == '001') { $this->action_001(); } /* Accept Submission */ if ($ac == '004') { $this->action_004(); } /* Cancelar protocolo */ if ($ac == '999') { $this->cep_historic_append($ac, msg('protocol_cancel')); $this->cep_status_alter('X'); redirecina('protocol_detalhe.php'); } return 1; }
function comment_form() { global $dd, $ss; $us = strzero(round($ss->user_id), 7); $sx = ''; $sxf = ''; if (strlen($dd[1]) > 0) { if (strlen($dd[2]) == 0) { $sxf = '<script>' . chr(13); $sxf .= " alert('" . msg('need_comment_type') . "');"; $sxf .= '</script>' . chr(13); } else { $this->comment = $dd[1]; $this->avaliation = $dd[2]; $this->user = $us; $this->comment_save(); $dd[1] = ''; $dd[2] = ''; redirecina(page()); } } $disp1 = 'display: none;'; $disp2 = 'display: block;'; if (strlen($dd[1]) > 0) { $disp2 = 'display: none;'; $disp1 = 'display: block;'; } $sx .= '<div id="posted" style="' . $disp1 . '">'; $sx .= '<form method="post" action="' . page() . '">'; // $sx .= '<input type="hidden" name="dd0" value="'.$dd[0].'">'.chr(13); // $sx .= '<input type="hidden" name="dd90" value="'.$dd[90].'">'.chr(13); $sx .= '<table width="98%">'; $sx .= '<TR><TD>'; $sx .= msg('comment_post') . '<BR>'; $sx .= '<TR><TD><textarea name="dd1" cols="80" rows="5">'; $sx .= $dd[1]; $sx .= '</textarea>'; $sx .= '<TR><TD>'; /** Avaliation **/ /* $sx .= msg('comment_type').':'; $chk1 = ''; $chk2 = ''; if ($dd[2]=='1') { $chk1 = 'checked'; } if ($dd[2]=='0') { $chk2 = 'checked'; } /** Radio **/ /** com avalia��o $sx .= '<input type="radio" value="1" name="dd2" '.$chk1.'>'; $sx .= '<img src="img/icone_coment_ok.png">'; $sx .= '<input type="radio" value="0" name="dd2" '.$chk2.'>'; $sx .= '<img src="img/icone_coment_nook.png">'; **/ /** sem avalia��o **/ $sx .= '<input type="hidden" value="1" name="dd2" >'; /** **/ $sx .= '<BR><input type="submit" value="' . msg('comment_submit') . '">'; $sx .= '</table>'; $sx .= '</form>'; $sx .= '</div>'; /** **/ $sx .= '<input id="mst" type="button" value="' . msg('comment_add', 1) . '" onclick="mostrar();" style="' . $disp2 . '">'; $sx .= chr(13) . '<script> $("#mst").click(function () { $("#posted").fadeIn("slow"); $("#mst").fadeOut("slow"); }); '; $sx .= chr(13) . '</script>'; return $sx . $sxf; }
function language_set($lg) { global $LANG; $lg = troca($lg, '/', ''); if (strlen($lg) > 0) { $_SESSION['language'] = $lg; redirecina('../' . page()); exit; } return 1; }
/* Admin Common */ $ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO')); if ($ok == 0) { redirecina('main.php'); } require '_class/_class_ic.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 ic(); $cp = $cl->cp(); $tabela = $cl->tabela; $http_edit = 'admin_ic_ed.php'; $http_redirect = ''; $tit = msg("tit" . $tabela); /** Comandos de Edicao */ $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { echo 'Salvo'; //$cl->updatex(); redirecina('admin_ic.php'); } else { echo $tela; } echo $hd->foot();
echo '<BR>'; $sx = '<span id="create_pdf" class="form_submit">' . msg('create_PDF') . '</span>'; $sx .= ' <script> $("#create_pdf").click(function() { window.open(\'submit_pdf.php?dd0=' . $protocolo . '&dd90=' . checkpost($protocolo . $secu) . '\', \'pdf\', \'create pdf\'); }); </script> '; echo $sx; echo '<BR><BR>'; /* Compromisso */ //if (strlen($dd[81]) == 0) { $xok = 0; } if ($xok == 1) { if (strlen($dd[81]) > 0) { redirecina('submit_end.php'); } /* Termo */ echo '<form action="submit.php">'; echo '<BR>'; echo '<table width="!00%"><TR><TD>'; echo mst(msg('submit_term')); echo '</table>'; echo '<BR><B>'; echo '<input type="checkbox" name="dd81" value="1">'; echo msg('submit_term_accepted'); echo '</B>'; echo '<BR>'; echo '<input type="submit" value="' . msg('#save_next', 1) . '" class="form_submit">'; echo '</form>'; } else {
// https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt 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_submit_manuscrito_field.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 fields(); $cp = $cl->cp(); $tabela = $cl->tabela; $http_edit = 'admin_submit_ed.php'; $http_redirect = ''; $tit = msg("titulo"); /** Comandos de Edi��o */ $tela = $form->editar($cp, $tabela); /** Caso o registro seja validado */ if ($form->saved > 0) { echo 'Salvo'; $cl->updatex(); redirecina('admin_submit_1.php'); } else { echo $tela; } echo '</div>'; echo $hd->foot();
$_SESSION['admin_amendment'] = $dd[90]; $adm = $dd[90]; } else { $adm = $_SESSION['admin_amendment']; } if (strlen($adm) == 0) { return 'admin.php'; } /* Admin Common */ $ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO')); if ($ok == 0) { redirecina('main.php'); } /* Redireciona se 008 */ if ($adm == '008') { redirecina('admin_submit_blocked.php'); exit; } require "_class/_class_submit_manuscrito_field.php"; /* Dados da Classe */ $clx = new fields(); $tabela = $clx->tabela; echo '<h1>' . msg('amendment_' . $adm) . '</h1>'; /* Nao alterar - dados comuns */ $label = msg($tabela); $http_edit = 'admin_submit_000_ed.php'; //$http_ver = 'pibic_bolsa_tipo_detalhe.php'; $editar = True; $http_redirect = page(); $clx->row(); $busca = true;