Commit 1a730a3818bbeeb511708735a7781cd608494cfb
1 parent
be8bd888
Exists in
master
and in
1 other branch
- introdução de parametrização padrão para dimensão de gráficos
git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@619 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
6 changed files
with
45 additions
and
3 deletions
Show diff stats
admin/configuracao_padrao.class.php
... | ... | @@ -65,6 +65,9 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
65 | 65 | $this->addVar('StandardSetup_form', 'BTN_SALVAR', $this->oTranslator->_('Gravar alteracoes') ); |
66 | 66 | $this->addVar('StandardSetup_form', 'BTN_RESET', $this->oTranslator->_('Restaurar valores') ); |
67 | 67 | $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_TITLE', $this->oTranslator->_('Graficos a serem exibidos') ); |
68 | + $this->addVar('StandardSetup_form', 'RESOLUCAO_GRAFICO_TITLE', $this->oTranslator->_('Resolucao dos graficos a serem exibidos') ); | |
69 | + $this->addVar('StandardSetup_form', 'NU_RESOLUCAO_GRAFICO_H_TITLE', $this->oTranslator->_('Altura') ); | |
70 | + $this->addVar('StandardSetup_form', 'NU_RESOLUCAO_GRAFICO_W_TITLE', $this->oTranslator->_('Largura') ); | |
68 | 71 | $this->addVar('StandardSetup_form', 'NU_REL_MAXLINHAS_TITLE', $this->oTranslator->_('Quantidade máxima de linhas em relatorios') ); |
69 | 72 | $this->addVar('StandardSetup_form', 'NU_REL_MAXLINHAS_HELP', $this->oTranslator->_('Quantidade máxima de linhas em relatorios') ); |
70 | 73 | $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_SO_TITLE', $this->oTranslator->_('Sistemas operacionais') ); |
... | ... | @@ -121,6 +124,8 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
121 | 124 | */ |
122 | 125 | $in_exibe_erros_criticos = (Security::read('in_exibe_erros_criticos'))?"S":"N"; |
123 | 126 | $nu_rel_maxlinhas = (Security::read('nu_rel_maxlinhas'))?Security::read('nu_rel_maxlinhas'):0; |
127 | + $nu_resolucao_grafico_h = (Security::read('nu_resolucao_grafico_h'))?Security::read('nu_resolucao_grafico_h'):0; | |
128 | + $nu_resolucao_grafico_w = (Security::read('nu_resolucao_grafico_w'))?Security::read('nu_resolucao_grafico_w'):0; | |
124 | 129 | $in_exibe_bandeja = (Security::read('in_exibe_bandeja'))?"S":"N"; |
125 | 130 | $cs_abre_janela_patr = (Security::read('cs_abre_janela_patr'))?"S":"N"; |
126 | 131 | $nm_organizacao = (Security::read('nm_organizacao'))?Security::read('nm_organizacao'):""; |
... | ... | @@ -142,6 +147,8 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
142 | 147 | $sql_update .= "in_exibe_erros_criticos = '$in_exibe_erros_criticos', |
143 | 148 | in_exibe_bandeja = '$in_exibe_bandeja', |
144 | 149 | nu_exec_apos = 10, |
150 | + nu_resolucao_grafico_h = '$nu_resolucao_grafico_h', | |
151 | + nu_resolucao_grafico_w = '$nu_resolucao_grafico_w', | |
145 | 152 | nu_rel_maxlinhas = $nu_rel_maxlinhas, |
146 | 153 | nm_organizacao = '$nm_organizacao', |
147 | 154 | nu_intervalo_exec = 4, |
... | ... | @@ -190,6 +197,8 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
190 | 197 | */ |
191 | 198 | $nm_organizacao = (Security::read('nm_organizacao'))?Security::read('nm_organizacao'):""; |
192 | 199 | $nu_rel_maxlinhas = (Security::read('nu_rel_maxlinhas'))?Security::read('nu_rel_maxlinhas'):""; |
200 | + $nu_resolucao_grafico_h = (Security::read('nu_resolucao_grafico_h'))?Security::read('nu_resolucao_grafico_h'):0; | |
201 | + $nu_resolucao_grafico_w = (Security::read('nu_resolucao_grafico_w'))?Security::read('nu_resolucao_grafico_w'):0; | |
193 | 202 | $te_senha_adm_agente = (Security::read('te_senha_adm_agente'))?Security::read('te_senha_adm_agente'):""; |
194 | 203 | $te_serv_updates_padrao = (Security::read('te_serv_updates_padrao'))?Security::read('te_serv_updates_padrao'):""; |
195 | 204 | $te_serv_cacic_padrao = (Security::read('te_serv_cacic_padrao'))?Security::read('te_serv_cacic_padrao'):""; |
... | ... | @@ -213,6 +222,8 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
213 | 222 | |
214 | 223 | $nm_organizacao = $cfgStdData['nm_organizacao']; |
215 | 224 | $nu_rel_maxlinhas = $cfgStdData['nu_rel_maxlinhas']; |
225 | + $nu_resolucao_grafico_h = $cfgStdData['nu_resolucao_grafico_h']; | |
226 | + $nu_resolucao_grafico_w = $cfgStdData['nu_resolucao_grafico_w']; | |
216 | 227 | $te_senha_adm_agente = $cfgStdData['te_senha_adm_agente']; |
217 | 228 | $te_serv_updates_padrao = $cfgStdData['te_serv_updates_padrao']; |
218 | 229 | $te_serv_cacic_padrao = $cfgStdData['te_serv_cacic_padrao']; |
... | ... | @@ -232,6 +243,8 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
232 | 243 | */ |
233 | 244 | $this->addVar('StandardSetup_form', 'NM_ORGANIZACAO', $nm_organizacao ); |
234 | 245 | $this->addVar('StandardSetup_form', 'NU_REL_MAXLINHAS', $nu_rel_maxlinhas ); |
246 | + $this->addVar('StandardSetup_form', 'NU_RESOLUCAO_GRAFICO_H', $nu_resolucao_grafico_h ); | |
247 | + $this->addVar('StandardSetup_form', 'NU_RESOLUCAO_GRAFICO_W', $nu_resolucao_grafico_w ); | |
235 | 248 | $this->addVar('StandardSetup_form', 'TE_SERVUPDT_STD', $te_serv_updates_padrao ); |
236 | 249 | $this->addVar('StandardSetup_form', 'TE_SERVCACIC_STD', $te_serv_cacic_padrao ); |
237 | 250 | $this->addVar('StandardSetup_form', 'EXIBE_ERROS_CRITICOS', $in_exibe_erros_criticos ); |
... | ... | @@ -265,4 +278,4 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
265 | 278 | } |
266 | 279 | } |
267 | 280 | |
268 | -?> | |
269 | 281 | \ No newline at end of file |
282 | +?> | ... | ... |
admin/configuracao_padrao_01.tmpl.php
... | ... | @@ -88,6 +88,17 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
88 | 88 | <input {NU_REL_MAXLINHAS_ENABLED} type="text" id="nu_rel_maxlinhas" name="nu_rel_maxlinhas" onFocus="setClass(this, 'inputFocus');" onBlur="setClass(this, 'input');" size="10" maxlength="10" value="{NU_REL_MAXLINHAS}" /> |
89 | 89 | </td> |
90 | 90 | </tr> |
91 | + <tr class="even"> | |
92 | + <td> | |
93 | + {RESOLUCAO_GRAFICO_TITLE}<br /> | |
94 | + </td> | |
95 | + <td> | |
96 | + {NU_RESOLUCAO_GRAFICO_H_TITLE} | |
97 | + <input {NU_RESOLUCAO_GRAFICO_H_ENABLED} type="text" id="nu_resolucao_grafico_h" name="nu_resolucao_grafico_h" onFocus="setClass(this, 'inputFocus');" onBlur="setClass(this, 'input');" size="10" maxlength="10" value="{NU_RESOLUCAO_GRAFICO_H}" /> | |
98 | + {NU_RESOLUCAO_GRAFICO_W_TITLE} | |
99 | + <input {NU_RESOLUCAO_GRAFICO_W_ENABLED} type="text" id="nu_resolucao_grafico_w" name="nu_resolucao_grafico_w" onFocus="setClass(this, 'inputFocus');" onBlur="setClass(this, 'input');" size="10" maxlength="10" value="{NU_RESOLUCAO_GRAFICO_W}" /> | |
100 | + </td> | |
101 | + </tr> | |
91 | 102 | <tr class="odd"> |
92 | 103 | <td> |
93 | 104 | {TE_MACADDR_INVALID_TITLE}<br /> | ... | ... |
instalador/sql/cacic_fev2006.sql
... | ... | @@ -95,7 +95,9 @@ CREATE TABLE configuracoes_padrao ( |
95 | 95 | te_janelas_excecao text NULL DEFAULT NULL COMMENT '', |
96 | 96 | cs_abre_janela_patr char(1) NOT NULL DEFAULT 'S' COMMENT '', |
97 | 97 | id_default_body_bgcolor varchar(10) NOT NULL DEFAULT '#EBEBEB' COMMENT '', |
98 | - te_exibe_graficos varchar(100) NOT NULL DEFAULT '[acessos_locais][so][acessos][locais]' COMMENT '' | |
98 | + te_exibe_graficos varchar(100) NOT NULL DEFAULT '[acessos_locais][so][acessos][locais]' COMMENT '', | |
99 | + nu_resolucao_grafico_h smallint unsigned default 320, | |
100 | + nu_resolucao_grafico_w smallint unsigned default 240 | |
99 | 101 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
100 | 102 | |
101 | 103 | CREATE TABLE contas ( | ... | ... |
instalador/sql/cacic_jun2005.sql
... | ... | @@ -95,7 +95,9 @@ CREATE TABLE configuracoes_padrao ( |
95 | 95 | te_janelas_excecao text NULL DEFAULT NULL COMMENT '', |
96 | 96 | cs_abre_janela_patr char(1) NOT NULL DEFAULT 'S' COMMENT '', |
97 | 97 | id_default_body_bgcolor varchar(10) NOT NULL DEFAULT '#EBEBEB' COMMENT '', |
98 | - te_exibe_graficos varchar(100) NOT NULL DEFAULT '[acessos_locais][so][acessos][locais]' COMMENT '' | |
98 | + te_exibe_graficos varchar(100) NOT NULL DEFAULT '[acessos_locais][so][acessos][locais]' COMMENT '', | |
99 | + nu_resolucao_grafico_h smallint unsigned default 320, | |
100 | + nu_resolucao_grafico_w smallint unsigned default 240 | |
99 | 101 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
100 | 102 | |
101 | 103 | CREATE TABLE contas ( | ... | ... |
instalador/sql/cacic_v2.2.2.sql
... | ... | @@ -64,6 +64,8 @@ ALTER TABLE configuracoes_locais |
64 | 64 | ALTER TABLE configuracoes_padrao |
65 | 65 | ADD te_exibe_graficos varchar(100) NOT NULL DEFAULT '[acessos_locais][so][acessos][locais]' COMMENT '' AFTER id_default_body_bgcolor, |
66 | 66 | ADD nu_rel_maxlinhas smallint unsigned default 50 AFTER nu_exec_apos, |
67 | + ADD nu_resolucao_grafico_h smallint unsigned default 320, | |
68 | + ADD nu_resolucao_grafico_w smallint unsigned default 240, | |
67 | 69 | ENGINE=InnoDB CHARACTER SET=latin1; |
68 | 70 | |
69 | 71 | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +-- -------------------------------------------------------- | |
2 | +-- Atualização de Tabelas do banco de dados CACIC-2.4.0 | |
3 | +-- SGBD: MySQL-4.1.20 | |
4 | +-- -------------------------------------------------------- | |
5 | + | |
6 | +SET FOREIGN_KEY_CHECKS = 0; | |
7 | + | |
8 | +ALTER TABLE configuracoes_padrao | |
9 | + ADD nu_resolucao_grafico_h smallint unsigned default 320, | |
10 | + ADD nu_resolucao_grafico_w smallint unsigned default 240; | |
11 | + | |
12 | +SET FOREIGN_KEY_CHECKS = 1; | ... | ... |