Пример #1
0
 function Gerar()
 {
     $this->titulo = "Super Usuários";
     $this->addCabecalhos(array("Nome"));
     // Paginador
     $limite = 20;
     $iniciolimit = $_GET["pagina_{$this->nome}"] ? $_GET["pagina_{$this->nome}"] * $limite - $limite : 0;
     $obj = new clsFuncionarioSu();
     $lista = $obj->lista();
     $novo = true;
     if ($lista) {
         foreach ($lista as $cod) {
             $cod = $cod['ref_ref_cod_pessoa_fj'];
             $novo = false;
             $obj = new clsPessoaFisica($cod);
             $detalhe = $obj->detalhe();
             $this->addLinhas(array($detalhe['nome']));
         }
     }
     if ($novo) {
         $this->acao = "go(\"otopic_su_cad.php\")";
         $this->nome_acao = "Novo";
     } else {
         $this->acao = "go(\"otopic_su_det.php\")";
         $this->nome_acao = "Editar";
     }
     $this->largura = "100%";
     $this->addPaginador2("otopic_grupos_lst.php", $total, $_GET, $this->nome, $limite);
 }
Пример #2
0
 function Gerar()
 {
     $this->titulo = "Detalhe";
     $this->addBanner("imagens/nvp_top_intranet.jpg", "imagens/nvp_vert_intranet.jpg", "Intranet", false);
     $obj = new clsFuncionarioSu();
     $lista = $obj->lista();
     $novo = true;
     if ($lista) {
         foreach ($lista as $cod) {
             $novo = false;
             $cod = $cod['ref_ref_cod_pessoa_fj'];
             $obj = new clsPessoaFisica($cod);
             $detalhe = $obj->detalhe();
             $this->addDetalhe(array("Super Usuário", $detalhe['nome']));
         }
     }
     if ($novo) {
         header("Location: otopic_su_lst.php");
     }
     $this->url_editar = "otopic_su_cad.php";
     $this->url_cancelar = "otopic_su_lst.php";
     $this->largura = "100%";
 }