Commit 8ae60f4bf555497e85ab423bb145ae819e6fc24a

Authored by Adriano Vieira
1 parent 0d4723c2
Exists in master and in 1 other branch 3.1

- configuração padrão passa a incluir dado de número máximo de linhas em relatórios

- alterado css para melhor visualização de links e menu
- alterado css para inserir imagem em paginação
- alterada classe de paginação
- alterado banco de dados para refletir o novo campo em configurações padrão

git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@542 fecfc0c7-e812-0410-ae72-849f08638ee7
admin/configuracao_common.class.php
@@ -112,10 +112,15 @@ if( ! @include("pat/patTemplate.php") ) @@ -112,10 +112,15 @@ if( ! @include("pat/patTemplate.php") )
112 /** 112 /**
113 * Atribui o tipo de configuração a ser processada 113 * Atribui o tipo de configuração a ser processada
114 * @access protected 114 * @access protected
  115 + * @param string $msg A mensagem a ser mostrada
  116 + * @param boolean $js Mostra mensagem usando recurso de javascript
115 */ 117 */
116 - function showMessage($msg) {  
117 - $this->clearVar('CommonSetup_messages', 'MESSAGE');  
118 - $this->addVar('CommonSetup_messages', 'MESSAGE', $msg ); 118 + function showMessage($msg, $js=false) {
  119 + $this->clearVar('CommonSetup_messages_cond', 'MESSAGE');
  120 + if($js)
  121 + $this->addVar('CommonSetup_messages_cond', 'msgtype', 'js' );
  122 +
  123 + $this->addVar('CommonSetup_messages_cond', 'MESSAGE', $msg );
119 } 124 }
120 125
121 /** 126 /**
admin/configuracao_common_01.tmpl.php
@@ -52,8 +52,17 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); @@ -52,8 +52,17 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' );
52 <td> 52 <td>
53 <fieldset class="messages"> 53 <fieldset class="messages">
54 <legend>{MESSAGES}</legend> 54 <legend>{MESSAGES}</legend>
55 - <span id='message' class="message">{MESSAGE}</span>  
56 - </fieldset> 55 + <cfgCommon:tmpl name="CommonSetup_messages_cond" type="condition" conditionvar="msgtype">
  56 + <cfgCommon:sub condition="js">
  57 + <script language="javascript">
  58 + document.write('{MESSAGE}');
  59 + </script>
  60 + </cfgCommon:sub>
  61 + <cfgCommon:sub condition="__default">
  62 + <span id='message' class="message">{MESSAGE}</span>
  63 + </cfgCommon:sub>
  64 + </cfgCommon:tmpl>
  65 + </fieldset>
57 </td> 66 </td>
58 </tr> 67 </tr>
59 </table> 68 </table>
admin/configuracao_padrao.class.php
@@ -65,6 +65,8 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; ); @@ -65,6 +65,8 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
65 $this->addVar('StandardSetup_form', 'BTN_SALVAR', $this->oTranslator->_('Gravar alteracoes') ); 65 $this->addVar('StandardSetup_form', 'BTN_SALVAR', $this->oTranslator->_('Gravar alteracoes') );
66 $this->addVar('StandardSetup_form', 'BTN_RESET', $this->oTranslator->_('Restaurar valores') ); 66 $this->addVar('StandardSetup_form', 'BTN_RESET', $this->oTranslator->_('Restaurar valores') );
67 $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_TITLE', $this->oTranslator->_('Graficos a serem exibidos') ); 67 $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_TITLE', $this->oTranslator->_('Graficos a serem exibidos') );
  68 + $this->addVar('StandardSetup_form', 'REL_MAXLINHAS_TITLE', $this->oTranslator->_('Quantidade máxima de linhas em relatorios') );
  69 + $this->addVar('StandardSetup_form', 'REL_MAXLINHAS_HELP', $this->oTranslator->_('Quantidade máxima de linhas em relatorios') );
68 $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_SO_TITLE', $this->oTranslator->_('Sistemas operacionais') ); 70 $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_SO_TITLE', $this->oTranslator->_('Sistemas operacionais') );
69 $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_ACESSOS_TITLE', $this->oTranslator->_('Acessos') ); 71 $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_ACESSOS_TITLE', $this->oTranslator->_('Acessos') );
70 $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_LOCAIS_TITLE', $this->oTranslator->_('Locais') ); 72 $this->addVar('StandardSetup_form', 'TE_EXIBEGRAFICOS_LOCAIS_TITLE', $this->oTranslator->_('Locais') );
@@ -112,15 +114,13 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; ); @@ -112,15 +114,13 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
112 */ 114 */
113 function salvarDados() { 115 function salvarDados() {
114 $error = true; 116 $error = true;
115 - $msg = $this->oTranslator->_('Ocorreu erro no processamento...(programa ainda nao finalizado)');  
116 -  
117 - // usar ajax ou js para envio de mensagens de processo :D  
118 - $this->showMessage('<span class="OK">'.$this->oTranslator->_('Aguarde processamento...')."</span>"); 117 + $msg = $this->oTranslator->_('Ocorreu erro no processamento... ');
119 118
120 /* 119 /*
121 * Obtem dados do formulario 120 * Obtem dados do formulario
122 */ 121 */
123 $in_exibe_erros_criticos = (Security::read('in_exibe_erros_criticos'))?"S":"N"; 122 $in_exibe_erros_criticos = (Security::read('in_exibe_erros_criticos'))?"S":"N";
  123 + $rel_maxlinhas = (Security::read('rel_maxlinhas'))?Security::read('rel_maxlinhas'):0;
124 $in_exibe_bandeja = (Security::read('in_exibe_bandeja'))?"S":"N"; 124 $in_exibe_bandeja = (Security::read('in_exibe_bandeja'))?"S":"N";
125 $cs_abre_janela_patr = (Security::read('cs_abre_janela_patr'))?"S":"N"; 125 $cs_abre_janela_patr = (Security::read('cs_abre_janela_patr'))?"S":"N";
126 $nm_organizacao = (Security::read('nm_organizacao'))?Security::read('nm_organizacao'):""; 126 $nm_organizacao = (Security::read('nm_organizacao'))?Security::read('nm_organizacao'):"";
@@ -142,6 +142,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; ); @@ -142,6 +142,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
142 $sql_update .= "in_exibe_erros_criticos = '$in_exibe_erros_criticos', 142 $sql_update .= "in_exibe_erros_criticos = '$in_exibe_erros_criticos',
143 in_exibe_bandeja = '$in_exibe_bandeja', 143 in_exibe_bandeja = '$in_exibe_bandeja',
144 nu_exec_apos = 10, 144 nu_exec_apos = 10,
  145 + rel_maxlinhas = $rel_maxlinhas,
145 nm_organizacao = '$nm_organizacao', 146 nm_organizacao = '$nm_organizacao',
146 nu_intervalo_exec = 4, 147 nu_intervalo_exec = 4,
147 nu_intervalo_renovacao_patrim = 0, 148 nu_intervalo_renovacao_patrim = 0,
@@ -188,6 +189,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; ); @@ -188,6 +189,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
188 * Obtem dados do formulario 189 * Obtem dados do formulario
189 */ 190 */
190 $nm_organizacao = (Security::read('nm_organizacao'))?Security::read('nm_organizacao'):""; 191 $nm_organizacao = (Security::read('nm_organizacao'))?Security::read('nm_organizacao'):"";
  192 + $rel_maxlinhas = (Security::read('rel_maxlinhas'))?Security::read('rel_maxlinhas'):"";
191 $te_senha_adm_agente = (Security::read('te_senha_adm_agente'))?Security::read('te_senha_adm_agente'):""; 193 $te_senha_adm_agente = (Security::read('te_senha_adm_agente'))?Security::read('te_senha_adm_agente'):"";
192 $te_serv_updates_padrao = (Security::read('te_serv_updates_padrao'))?Security::read('te_serv_updates_padrao'):""; 194 $te_serv_updates_padrao = (Security::read('te_serv_updates_padrao'))?Security::read('te_serv_updates_padrao'):"";
193 $te_serv_cacic_padrao = (Security::read('te_serv_cacic_padrao'))?Security::read('te_serv_cacic_padrao'):""; 195 $te_serv_cacic_padrao = (Security::read('te_serv_cacic_padrao'))?Security::read('te_serv_cacic_padrao'):"";
@@ -210,6 +212,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; ); @@ -210,6 +212,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
210 $cfgStdData = mysql_fetch_assoc($db_result); 212 $cfgStdData = mysql_fetch_assoc($db_result);
211 213
212 $nm_organizacao = $cfgStdData['nm_organizacao']; 214 $nm_organizacao = $cfgStdData['nm_organizacao'];
  215 + $rel_maxlinhas = $cfgStdData['rel_maxlinhas'];
213 $te_senha_adm_agente = $cfgStdData['te_senha_adm_agente']; 216 $te_senha_adm_agente = $cfgStdData['te_senha_adm_agente'];
214 $te_serv_updates_padrao = $cfgStdData['te_serv_updates_padrao']; 217 $te_serv_updates_padrao = $cfgStdData['te_serv_updates_padrao'];
215 $te_serv_cacic_padrao = $cfgStdData['te_serv_cacic_padrao']; 218 $te_serv_cacic_padrao = $cfgStdData['te_serv_cacic_padrao'];
@@ -228,6 +231,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; ); @@ -228,6 +231,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
228 * Preenche formulário com dados 231 * Preenche formulário com dados
229 */ 232 */
230 $this->addVar('StandardSetup_form', 'NM_ORGANIZACAO', $nm_organizacao ); 233 $this->addVar('StandardSetup_form', 'NM_ORGANIZACAO', $nm_organizacao );
  234 + $this->addVar('StandardSetup_form', 'REL_MAXLINHAS', $rel_maxlinhas );
231 $this->addVar('StandardSetup_form', 'TE_SERVUPDT_STD', $te_serv_updates_padrao ); 235 $this->addVar('StandardSetup_form', 'TE_SERVUPDT_STD', $te_serv_updates_padrao );
232 $this->addVar('StandardSetup_form', 'TE_SERVCACIC_STD', $te_serv_cacic_padrao ); 236 $this->addVar('StandardSetup_form', 'TE_SERVCACIC_STD', $te_serv_cacic_padrao );
233 $this->addVar('StandardSetup_form', 'EXIBE_ERROS_CRITICOS', $in_exibe_erros_criticos ); 237 $this->addVar('StandardSetup_form', 'EXIBE_ERROS_CRITICOS', $in_exibe_erros_criticos );
admin/configuracao_padrao_01.tmpl.php
@@ -82,6 +82,14 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; ); @@ -82,6 +82,14 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
82 </tr> 82 </tr>
83 <tr class="even"> 83 <tr class="even">
84 <td> 84 <td>
  85 + {REL_MAXLINHAS_TITLE}<br />
  86 + </td>
  87 + <td>
  88 + <input {REL_MAXLINHAS_ENABLED} type="text" id="rel_maxlinhas" name="rel_maxlinhas" onFocus="setClass(this, 'inputFocus');" onBlur="setClass(this, 'input');" size="10" maxlength="10" value="{REL_MAXLINHAS}" />
  89 + </td>
  90 + </tr>
  91 + <tr class="odd">
  92 + <td>
85 {TE_MACADDR_INVALID_TITLE}<br /> 93 {TE_MACADDR_INVALID_TITLE}<br />
86 <span class="help">{TE_MACADDR_INVALID_HELP}</span> 94 <span class="help">{TE_MACADDR_INVALID_HELP}</span>
87 </td> 95 </td>
@@ -89,7 +97,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; ); @@ -89,7 +97,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
89 <textarea {TE_MACADDR_INVALID_ENABLED} id="te_enderecos_mac_invalidos" name="te_enderecos_mac_invalidos" onFocus="setClass(this, 'inputFocus');" onBlur="setClass(this, 'input');" rows="3" cols="65" wrap="off">{TE_MACADDR_INVALID}</textarea> 97 <textarea {TE_MACADDR_INVALID_ENABLED} id="te_enderecos_mac_invalidos" name="te_enderecos_mac_invalidos" onFocus="setClass(this, 'inputFocus');" onBlur="setClass(this, 'input');" rows="3" cols="65" wrap="off">{TE_MACADDR_INVALID}</textarea>
90 </td> 98 </td>
91 </tr> 99 </tr>
92 - <tr class="odd"> 100 + <tr class="even">
93 <td> 101 <td>
94 {TE_JANELAS_EXCECAO_TITLE}<br /> 102 {TE_JANELAS_EXCECAO_TITLE}<br />
95 <span class="help">{TE_JANELAS_EXCECAO_HELP}</span> 103 <span class="help">{TE_JANELAS_EXCECAO_HELP}</span>
@@ -98,7 +106,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; ); @@ -98,7 +106,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
98 <textarea {TE_JANELAS_EXCECAO_ENABLED} id="te_janelas_excecao" name="te_janelas_excecao" onFocus="setClass(this, 'inputFocus');" onBlur="setClass(this, 'input');" rows="3" cols="65" wrap="off">{TE_JANELAS_EXCECAO}</textarea> 106 <textarea {TE_JANELAS_EXCECAO_ENABLED} id="te_janelas_excecao" name="te_janelas_excecao" onFocus="setClass(this, 'inputFocus');" onBlur="setClass(this, 'input');" rows="3" cols="65" wrap="off">{TE_JANELAS_EXCECAO}</textarea>
99 </td> 107 </td>
100 </tr> 108 </tr>
101 - <tr class="even"> 109 + <tr class="odd">
102 <td> 110 <td>
103 <fieldset> 111 <fieldset>
104 <legend>{TE_EXIBEGRAFICOS_TITLE}</legend> 112 <legend>{TE_EXIBEGRAFICOS_TITLE}</legend>
include/cacic.css
@@ -77,7 +77,7 @@ a @@ -77,7 +77,7 @@ a
77 { 77 {
78 font-family: Verdana, Arial, Helvetica, sans-serif; 78 font-family: Verdana, Arial, Helvetica, sans-serif;
79 font-style: normal; 79 font-style: normal;
80 - color: #000000; 80 + color: blue;
81 text-decoration: none; 81 text-decoration: none;
82 z-index:2; 82 z-index:2;
83 } 83 }
@@ -334,4 +334,39 @@ a.dcontexto:hover span @@ -334,4 +334,39 @@ a.dcontexto:hover span
334 font-size: 10px; 334 font-size: 10px;
335 } 335 }
336 336
  337 +.next {
  338 + background: url('../imgs/next.png') 100% 0 no-repeat;
  339 + height: 24;
  340 + width: 20;
  341 + text-decoration: none;
  342 +}
  343 +
  344 +.prev {
  345 + background: url('../imgs/prev.png') 100% 0 no-repeat;
  346 + height: 24;
  347 + width: 20;
  348 + text-decoration: none;
  349 +}
  350 +
  351 +.last {
  352 + background: url('../imgs/last.png') 100% 0 no-repeat;
  353 + height: 24;
  354 + width: 20;
  355 + text-decoration: none;
  356 +}
  357 +
  358 +.first {
  359 + background: url('../imgs/first.png') 100% 0 no-repeat;
  360 + height: 24;
  361 + width: 20;
  362 + text-decoration: none;
  363 +}
  364 +.menu a {
  365 + font-family: Verdana, Arial, Helvetica, sans-serif;
  366 + font-style: normal;
  367 + color: #000000;
  368 + text-decoration: none;
  369 + z-index:2;
  370 +}
  371 +
337 </style> 372 </style>
include/multipagina.class.php
@@ -40,11 +40,14 @@ Adaptações Realizadas / Motivos: @@ -40,11 +40,14 @@ Adaptações Realizadas / Motivos:
40 // classe que multiplica paginas 40 // classe que multiplica paginas
41 class Mult_Pag { 41 class Mult_Pag {
42 // Valores padrão para a navegação dos links 42 // Valores padrão para a navegação dos links
  43 + /*
  44 + * define o número de pesquisas (detalhada ou não) por página
  45 + */
43 var $num_pesq_pag; 46 var $num_pesq_pag;
44 - var $str_anterior = " Anterior ";  
45 - var $str_proxima = " Próxima ";  
46 - var $str_primeira = " Primeira ";  
47 - var $str_ultima = "      Última "; 47 + var $str_anterior = "<span class='prev'>&nbsp;&nbsp;&nbsp;&nbsp;</span>Anterior";
  48 + var $str_proxima = "Próxima<span class='next'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
  49 + var $str_primeira = "<span class='first'>&nbsp;&nbsp;&nbsp;&nbsp;</span>Primeira";
  50 + var $str_ultima = "Última<span class='last'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
48 // Variáveis usadas internamente 51 // Variáveis usadas internamente
49 var $nome_arq; 52 var $nome_arq;
50 var $total_reg; 53 var $total_reg;
@@ -55,10 +58,11 @@ class Mult_Pag { @@ -55,10 +58,11 @@ class Mult_Pag {
55 o número atual de colunas e outros métodos que 58 o número atual de colunas e outros métodos que
56 podem ser re-usados mais tarde. 59 podem ser re-usados mais tarde.
57 */ 60 */
58 - function Mult_Pag () 61 + function Mult_Pag ($num_lin_pag=100, $num_link_pag=100)
59 { 62 {
60 global $pagina; 63 global $pagina;
61 $this->pagina = $pagina ? $pagina : 0; 64 $this->pagina = $pagina ? $pagina : 0;
  65 + $this->num_pesq_pag = $num_lin_pag;
62 } 66 }
63 67
64 /* 68 /*
@@ -162,11 +166,11 @@ class Mult_Pag { @@ -162,11 +166,11 @@ class Mult_Pag {
162 // escreve a string esquerda (Pagina Anterior) 166 // escreve a string esquerda (Pagina Anterior)
163 if ((($opcao == "todos") || ($opcao == "strings")) && ($atual == 0)) { 167 if ((($opcao == "todos") || ($opcao == "strings")) && ($atual == 0)) {
164 if ($this->pagina != 0){ 168 if ($this->pagina != 0){
165 - $array[++$indice] = '<a href="' . $arquivo . '?pagina=' . $atual . $extra_vars . '">' . " Primeira" . '</a>      '; 169 + $array[++$indice] = '<a href="' . $arquivo . '?pagina=' . $atual . $extra_vars . '">' . $this->str_primeira . '</a>     ';
166 $array[++$indice] = '<a href="' . $arquivo . '?pagina=' . ($this->pagina - 1) . $extra_vars . '">' . $this->str_anterior . '</a>'; } 170 $array[++$indice] = '<a href="' . $arquivo . '?pagina=' . ($this->pagina - 1) . $extra_vars . '">' . $this->str_anterior . '</a>'; }
167 elseif (($this->pagina == 0) && ($mostra_string == "sim")){ 171 elseif (($this->pagina == 0) && ($mostra_string == "sim")){
168 - $array[++$indice] = $this->str_primeira;  
169 - $array[++$indice] = $this->str_anterior; 172 + //$array[++$indice] = $this->str_primeira;
  173 + //$array[++$indice] = $this->str_anterior;
170 } 174 }
171 } 175 }
172 176
@@ -197,12 +201,12 @@ class Mult_Pag { @@ -197,12 +201,12 @@ class Mult_Pag {
197 // escreve a string direita (Proxima Pagina) 201 // escreve a string direita (Proxima Pagina)
198 if ((($opcao == "todos") || ($opcao == "strings")) && ($atual == ($num_mult_pag - 1))) { 202 if ((($opcao == "todos") || ($opcao == "strings")) && ($atual == ($num_mult_pag - 1))) {
199 if ($this->pagina != ($num_mult_pag - 1)){ 203 if ($this->pagina != ($num_mult_pag - 1)){
200 - $array[++$indice] = '<a href="' . $arquivo . '?pagina=' . ($this->pagina + 1) . $extra_vars . '">' . $this->str_proxima . '</a>';  
201 - $array[++$indice] = '      <a href="' . $arquivo . '?pagina=' . ($num_mult_pag-1) . $extra_vars . '">' . " Última" . '</a>'; 204 + $array[++$indice] = ' <a href="' . $arquivo . '?pagina=' . ($this->pagina + 1) . $extra_vars . '">' . $this->str_proxima . '</a>';
  205 + $array[++$indice] = '    <a href="' . $arquivo . '?pagina=' . ($num_mult_pag-1) . $extra_vars . '">' . $this->str_ultima . '</a>';
202 } 206 }
203 elseif (($this->pagina == ($num_mult_pag - 1)) && ($mostra_string == "sim")){ 207 elseif (($this->pagina == ($num_mult_pag - 1)) && ($mostra_string == "sim")){
204 - $array[++$indice] = $this->str_proxima;  
205 - $array[++$indice] = $this->str_ultima; 208 + //$array[++$indice] = $this->str_proxima;
  209 + //$array[++$indice] = $this->str_ultima;
206 } 210 }
207 } 211 }
208 } 212 }
@@ -227,8 +231,6 @@ class Mult_Pag { @@ -227,8 +231,6 @@ class Mult_Pag {
227 */ 231 */
228 function Mostrar_Parte($array, $atual, $tam_desejado) 232 function Mostrar_Parte($array, $atual, $tam_desejado)
229 { 233 {
230 -  
231 -  
232 $size = count($array); 234 $size = count($array);
233 if (($size <= 2) || ($size < $tam_desejado)) { 235 if (($size <= 2) || ($size < $tam_desejado)) {
234 $temp = $array; 236 $temp = $array;
instalador/sql/cacic_create_tables.sql
@@ -249,6 +249,7 @@ CREATE TABLE `configuracoes_padrao` ( @@ -249,6 +249,7 @@ CREATE TABLE `configuracoes_padrao` (
249 `in_exibe_erros_criticos` char(1) default NULL, 249 `in_exibe_erros_criticos` char(1) default NULL,
250 `in_exibe_bandeja` char(1) default NULL, 250 `in_exibe_bandeja` char(1) default NULL,
251 `nu_exec_apos` int(11) default NULL, 251 `nu_exec_apos` int(11) default NULL,
  252 + `rel_maxlinhas` int(1) default 50,
252 `nm_organizacao` varchar(150) default NULL, 253 `nm_organizacao` varchar(150) default NULL,
253 `nu_intervalo_exec` int(11) default NULL, 254 `nu_intervalo_exec` int(11) default NULL,
254 `nu_intervalo_renovacao_patrim` int(11) default NULL, 255 `nu_intervalo_renovacao_patrim` int(11) default NULL,
instalador/sql/cacic_fev2006.sql
@@ -84,6 +84,7 @@ CREATE TABLE configuracoes_padrao ( @@ -84,6 +84,7 @@ CREATE TABLE configuracoes_padrao (
84 in_exibe_erros_criticos char(1) NULL DEFAULT NULL COMMENT '', 84 in_exibe_erros_criticos char(1) NULL DEFAULT NULL COMMENT '',
85 in_exibe_bandeja char(1) NULL DEFAULT NULL COMMENT '', 85 in_exibe_bandeja char(1) NULL DEFAULT NULL COMMENT '',
86 nu_exec_apos int(11) NULL DEFAULT NULL COMMENT '', 86 nu_exec_apos int(11) NULL DEFAULT NULL COMMENT '',
  87 + rel_maxlinhas int(1) default 50,
87 nm_organizacao varchar(150) NULL DEFAULT NULL COMMENT '', 88 nm_organizacao varchar(150) NULL DEFAULT NULL COMMENT '',
88 nu_intervalo_exec int(11) NULL DEFAULT NULL COMMENT '', 89 nu_intervalo_exec int(11) NULL DEFAULT NULL COMMENT '',
89 nu_intervalo_renovacao_patrim int(11) NULL DEFAULT NULL COMMENT '', 90 nu_intervalo_renovacao_patrim int(11) NULL DEFAULT NULL COMMENT '',
instalador/sql/cacic_jun2005.sql
@@ -84,6 +84,7 @@ CREATE TABLE configuracoes_padrao ( @@ -84,6 +84,7 @@ CREATE TABLE configuracoes_padrao (
84 in_exibe_erros_criticos char(1) NULL DEFAULT NULL COMMENT '', 84 in_exibe_erros_criticos char(1) NULL DEFAULT NULL COMMENT '',
85 in_exibe_bandeja char(1) NULL DEFAULT NULL COMMENT '', 85 in_exibe_bandeja char(1) NULL DEFAULT NULL COMMENT '',
86 nu_exec_apos int(11) NULL DEFAULT NULL COMMENT '', 86 nu_exec_apos int(11) NULL DEFAULT NULL COMMENT '',
  87 + rel_maxlinhas int(1) default 50,
87 nm_organizacao varchar(150) NULL DEFAULT NULL COMMENT '', 88 nm_organizacao varchar(150) NULL DEFAULT NULL COMMENT '',
88 nu_intervalo_exec int(11) NULL DEFAULT NULL COMMENT '', 89 nu_intervalo_exec int(11) NULL DEFAULT NULL COMMENT '',
89 nu_intervalo_renovacao_patrim int(11) NULL DEFAULT NULL COMMENT '', 90 nu_intervalo_renovacao_patrim int(11) NULL DEFAULT NULL COMMENT '',
instalador/sql/cacic_v2.2.2.sql
@@ -63,6 +63,7 @@ ALTER TABLE configuracoes_locais @@ -63,6 +63,7 @@ ALTER TABLE configuracoes_locais
63 63
64 ALTER TABLE configuracoes_padrao 64 ALTER TABLE configuracoes_padrao
65 ADD te_exibe_graficos varchar(100) NOT NULL DEFAULT '[acessos_locais][so][acessos][locais]' COMMENT '' AFTER id_default_body_bgcolor, 65 ADD te_exibe_graficos varchar(100) NOT NULL DEFAULT '[acessos_locais][so][acessos][locais]' COMMENT '' AFTER id_default_body_bgcolor,
  66 + ADD rel_maxlinhas int(1) default 50 AFTER nu_exec_apos,
66 ENGINE=InnoDB CHARACTER SET=latin1; 67 ENGINE=InnoDB CHARACTER SET=latin1;
67 68
68 69
@@ -189,7 +189,7 @@ if($_POST[&#39;frm_nm_usuario_acesso&#39;] &amp;&amp; $_POST[&#39;frm_te_senha&#39;]) @@ -189,7 +189,7 @@ if($_POST[&#39;frm_nm_usuario_acesso&#39;] &amp;&amp; $_POST[&#39;frm_te_senha&#39;])
189 ?> 189 ?>
190 <script language="JavaScript" type="text/javascript" src="include/cacic.js"></script> 190 <script language="JavaScript" type="text/javascript" src="include/cacic.js"></script>
191 <script language="JavaScript" type="text/javascript" src="include/crypt.js"></script> 191 <script language="JavaScript" type="text/javascript" src="include/crypt.js"></script>
192 - <p> 192 + <p class="menu">
193 <? 193 <?
194 if (!$_SESSION["id_usuario"]) 194 if (!$_SESSION["id_usuario"])
195 { 195 {
relatorios/software/rel_software.php
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15 */ 15 */
16 session_start(); 16 session_start();
17 -require_once ('../../include/multipagina.class.php'); 17 +
18 /* 18 /*
19 * verifica se houve login e também regras para outras verificações (ex: permissões do usuário)! 19 * verifica se houve login e também regras para outras verificações (ex: permissões do usuário)!
20 */ 20 */
@@ -26,6 +26,7 @@ else { // Inserir regras para outras verificações (ex: permissões do usuário)! @@ -26,6 +26,7 @@ else { // Inserir regras para outras verificações (ex: permissões do usuário)!
26 require_once('../../include/library.php'); 26 require_once('../../include/library.php');
27 AntiSpy(); 27 AntiSpy();
28 28
  29 +require_once ('../../include/multipagina.class.php');
29 $DbConnect = conecta_bd_cacic(); 30 $DbConnect = conecta_bd_cacic();
30 31
31 if ($_GET['principal']) 32 if ($_GET['principal'])
@@ -66,6 +67,7 @@ elseif($_POST[&#39;submit&#39;]) @@ -66,6 +67,7 @@ elseif($_POST[&#39;submit&#39;])
66 <head> 67 <head>
67 <title>Relat&oacute;rio de Configura&ccedil;&otilde;es de Software</title> 68 <title>Relat&oacute;rio de Configura&ccedil;&otilde;es de Software</title>
68 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 69 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  70 + <link href="<?=CACIC_URL?>/include/cacic.css" rel="stylesheet" type="text/css" />
69 <script language="JavaScript" type="text/JavaScript"> 71 <script language="JavaScript" type="text/JavaScript">
70 <!-- 72 <!--
71 function MM_openBrWindow(theURL,winName,features) { //v2.0 73 function MM_openBrWindow(theURL,winName,features) { //v2.0
@@ -240,11 +242,13 @@ $query = &#39; SELECT distinct computadores.te_node_address, @@ -240,11 +242,13 @@ $query = &#39; SELECT distinct computadores.te_node_address,
240 // ***************************************************** 242 // *****************************************************
241 243
242 // definicoes de variaveis 244 // definicoes de variaveis
243 -$max_links = 100; // máximo de links à serem exibidos  
244 -$max_res = 100; // máximo de resultados à serem exibidos por tela ou pagina  
245 -$mult_pag = new Mult_Pag(); // cria um novo objeto navbar  
246 -$mult_pag->num_pesq_pag = $max_res; // define o número de pesquisas (detalhada ou não) por página 245 +$sql = "select rel_maxlinhas from configuracoes_padrao";
  246 +$db_result = mysql_query($sql);
  247 +$cfgStdData = mysql_fetch_assoc($db_result);
247 248
  249 +$max_links = 100; // máximo de links à serem exibidos
  250 +$max_res = ($cfgStdData['rel_maxlinhas'])?$cfgStdData['rel_maxlinhas']:100; // máximo de resultados à serem exibidos por tela ou pagina
  251 +$mult_pag = new Mult_Pag($max_res); // cria um novo objeto navbar
248 252
249 // metodo que realiza a pesquisa 253 // metodo que realiza a pesquisa
250 $resultado = $mult_pag->executar($query, $DbConnect, "", "mysql"); 254 $resultado = $mult_pag->executar($query, $DbConnect, "", "mysql");