controlesis_sistema_det.php
3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* @author Prefeitura Municipal de Itajaí *
* @updated 29/03/2007 *
* Pacote: i-PLB Software Público Livre e Brasileiro *
* *
* Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
* ctima@itajai.sc.gov.br *
* *
* Este programa é software livre, você pode redistribuí-lo e/ou *
* modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
* publicada pela Free Software Foundation, tanto a versão 2 da *
* Licença como (a seu critério) qualquer versão mais nova. *
* *
* Este programa é distribuído na expectativa de ser útil, mas SEM *
* QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
* ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
* sulte a Licença Pública Geral GNU para obter mais detalhes. *
* *
* Você deve ter recebido uma cópia da Licença Pública Geral GNU *
* junto com este programa. Se não, escreva para a Free Software *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
* 02111-1307, USA. *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
require_once ("include/clsBase.inc.php");
require_once ("include/clsDetalhe.inc.php");
require_once ("include/clsBanco.inc.php");
require_once( "include/pmicontrolesis/geral.inc.php" );
class clsIndexBase extends clsBase
{
function Formular()
{
$this->SetTitulo( "{$this->_instituicao} Sistema" );
$this->processoAp = "588";
}
}
class indice extends clsDetalhe
{
/**
* Titulo no topo da pagina
*
* @var int
*/
var $titulo;
var $cod_sistema;
var $nm_sistema;
var $ref_cod_funcionario_cad;
var $ref_cod_funcionario_exc;
var $data_cadastro;
var $data_exclusao;
var $ativo;
function Gerar()
{
@session_start();
$this->pessoa_logada = $_SESSION['id_pessoa'];
session_write_close();
$this->titulo = "Sistema - Detalhe";
$this->addBanner( "imagens/nvp_top_intranet.jpg", "imagens/nvp_vert_intranet.jpg", "Intranet" );
$this->cod_sistema=$_GET["cod_sistema"];
$tmp_obj = new clsPmicontrolesisSistema( $this->cod_sistema );
$registro = $tmp_obj->detalhe();
if( ! $registro )
{
header( "location: controlesis_sistema_lst.php" );
die();
}
if( $registro["cod_sistema"] )
{
$this->addDetalhe( array( "Sistema", "{$registro["cod_sistema"]}") );
}
if( $registro["nm_sistema"] )
{
$this->addDetalhe( array( "Nome Sistema", "{$registro["nm_sistema"]}") );
}
$this->url_novo = "controlesis_sistema_cad.php";
$this->url_editar = "controlesis_sistema_cad.php?cod_sistema={$registro["cod_sistema"]}";
$this->url_cancelar = "controlesis_sistema_lst.php";
$this->largura = "100%";
}
}
// cria uma extensao da classe base
$pagina = new clsIndexBase();
// cria o conteudo
$miolo = new indice();
// adiciona o conteudo na clsBase
$pagina->addForm( $miolo );
// gera o html
$pagina->MakeAll();
?>