Commit e190e8cd3b61d39c8adb8dbabb68ae76a960092b
1 parent
68f3cd9d
Exists in
master
and in
1 other branch
- merge de branch (2.4) revisão [839:850]
git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@851 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
14 changed files
with
1023 additions
and
118 deletions
Show diff stats
admin/softwares/classificacao_software.php
... | ... | @@ -1,112 +0,0 @@ |
1 | -<? | |
2 | - // Relatorio de classificacao de softwares | |
3 | - // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php. | |
4 | - $id_acao = 'cs_coleta_hardware'; | |
5 | - require_once('../../include/inicio_relatorios_inc.php'); | |
6 | - require_once('../../include/library.php'); | |
7 | -?> | |
8 | -<html> | |
9 | -<body> | |
10 | -<table width="90%" border="0" align="center"> | |
11 | - <tr> | |
12 | - <td class="cabecalho"><?=$oTranslator->_('Formulario para classificacao de softwares');?></td> | |
13 | - </tr> | |
14 | -</table> | |
15 | -<form action="../softwares.php" method="post" ENCTYPE="multipart/form-data" name="forma" onsubmit="return valida_form()"> | |
16 | - <table width="90%" border="0" align="center"> | |
17 | - <tr> | |
18 | - <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1"> | |
19 | - <tr> | |
20 | - <td class="label"><?=$oTranslator->_('Selecione os softwares que deseja classificar:');?></td> | |
21 | - </tr> | |
22 | - <tr> | |
23 | - <td height="1" bgcolor="#333333"></td> | |
24 | - </tr> | |
25 | - <tr> | |
26 | - <td height="1"><table border="0" cellpadding="0" cellspacing="0"> | |
27 | - <tr> | |
28 | - <td> </td> | |
29 | - <td class="cabecalho_tabela"><div align="left"><?=$oTranslator->_('Nao classificados:');?></div></td> | |
30 | - <td> </td> | |
31 | - <td width="90"> </td> | |
32 | - <td nowrap> </td> | |
33 | - <td nowrap class="cabecalho_tabela"><?=$oTranslator->_('Selecionados:');?></td> | |
34 | - <td width="90"> </td> | |
35 | - <td nowrap class="cabecalho_tabela"><?=$oTranslator->_('Tipo do software:');?></td> | |
36 | - <td nowrap> </td> | |
37 | - </tr> | |
38 | - <tr> | |
39 | - <td> </td> | |
40 | - <td> <div align="left"> | |
41 | - <select multiple name="list5[]" size="30" style="width: 320px" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" > | |
42 | - <? $query = "SELECT id_software_inventariado, nm_software_inventariado | |
43 | - FROM softwares_inventariados | |
44 | - WHERE (id_tipo_software = 0) | |
45 | - GROUP BY nm_software_inventariado | |
46 | - ORDER BY nm_software_inventariado"; | |
47 | - | |
48 | - $result_aplicativos_selecionados = mysql_query($query) or die('Ocorreu um erro durante a consulta à tabela softwares_inventariados ou sua sessão expirou!'); | |
49 | - /* Agora monto os itens do combo de hardwares selecionadas. */ | |
50 | - while($campos_aplicativos_selecionados=mysql_fetch_array($result_aplicativos_selecionados)) { | |
51 | - echo '<option value=' . $campos_aplicativos_selecionados['id_software_inventariado'] . '>' . capa_string($campos_aplicativos_selecionados['nm_software_inventariado'],148) . '</option>'; | |
52 | - } ?> | |
53 | - </select> | |
54 | - </div></td> | |
55 | - <td> </td> | |
56 | - <td width="90"> <div align="center"> | |
57 | - <input type="button" value=" > " onClick="move(this.form.elements['list5[]'],this.form.elements['list6[]'])" name="B132"> | |
58 | - <br> | |
59 | - <br> | |
60 | - <input type="button" value=" < " onClick="move(this.form.elements['list6[]'],this.form.elements['list5[]'])" name="B232"> | |
61 | - </div></td> | |
62 | - <td> </td> | |
63 | - <td><select multiple name="list6[]" size="30" style="width: 200px" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" > | |
64 | - </select></td> | |
65 | - <td> </td> | |
66 | - <td nowrap> | |
67 | - <? | |
68 | - $query = " SELECT * | |
69 | - FROM tipos_software | |
70 | - ORDER BY te_descricao_tipo_software"; | |
71 | - $result = mysql_query($query) or die($oTranslator->_('Ocorreu um erro durante a consulta a tabela tipos_software ou sua sessao expirou!')); | |
72 | - while ($row = mysql_fetch_array($result)) | |
73 | - { | |
74 | - ?> | |
75 | - <input type="radio" name="tiponovo" value="<? echo $row['id_tipo_software'];?>"><? echo $row['te_descricao_tipo_software'];?><BR> | |
76 | - <? | |
77 | - } | |
78 | - ?> | |
79 | - | |
80 | - </td> | |
81 | - <td> </td> | |
82 | - </tr> | |
83 | - </table></td> | |
84 | - </tr> | |
85 | - </table></td> | |
86 | - </tr> | |
87 | - <tr> | |
88 | - <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1"> | |
89 | - <tr> | |
90 | - <td height="1" bgcolor="#333333"></td> | |
91 | - </tr> | |
92 | - </table></td> | |
93 | - </tr> | |
94 | - <tr> | |
95 | - <td valign="top"> </td> | |
96 | - </tr> | |
97 | - <tr> | |
98 | - <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="1"> | |
99 | - <tr> | |
100 | - <td> <div align="center"> | |
101 | - <input name="submit" type="submit" value=" <?=$oTranslator->_('Classificar Softwares Selecionados');?> " onClick="SelectAll(this.form.elements['list6[]']), SelectAll(this.form.elements['tiponovo'])" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>> | |
102 | - </div></td> | |
103 | - </tr> | |
104 | - <tr> | |
105 | - <td> </td> | |
106 | - </tr> | |
107 | - </table></td> | |
108 | - </tr> | |
109 | - </table> | |
110 | -</form> | |
111 | -</body> | |
112 | -</html> |
... | ... | @@ -0,0 +1,239 @@ |
1 | +<?php | |
2 | +/** | |
3 | + * @version $Id: softwares_classificar.class.php 2009-08-17 21:03 harpiain $ | |
4 | + * @package CACIC-Admin | |
5 | + * @subpackage SoftwaresClassificar | |
6 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
7 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
8 | + * @license GNU/GPL, see LICENSE.php | |
9 | + * CACIC is free software and parts of it may contain or be derived from the | |
10 | + * GNU General Public License or other free or open source software licenses. | |
11 | + * See COPYRIGHT.php for copyright notices and details. | |
12 | + */ | |
13 | + | |
14 | +// direct access is denied | |
15 | +defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | |
16 | + | |
17 | +/* | |
18 | + * Classe geral para configurações | |
19 | + */ | |
20 | + include_once('common/cacic_common.class.php'); | |
21 | + | |
22 | +/** | |
23 | + * Implementa classificação/reclassificação de Softwares Inventariados | |
24 | + */ | |
25 | + class Softwares_Classificar extends Cacic_Common { | |
26 | + | |
27 | + function Softwares_Classificar() { | |
28 | + parent::Cacic_Common(); | |
29 | + $titulo = $this->oTranslator->_('Classificacao de softwares'); | |
30 | + /* | |
31 | + * Inicializa template com textos basicos | |
32 | + */ | |
33 | + $this->setPageTitle( $titulo ); | |
34 | + | |
35 | + $this->setNamespace('softwareClassificacao'); | |
36 | + $this->setRoot(dirname(__FILE__)); | |
37 | + $this->readTemplatesFromInput('softwares_classificar_01.tmpl.php'); | |
38 | + | |
39 | + $this->addVar('SoftwaresClassificar', 'CACIC_URL', CACIC_URL ); | |
40 | + $this->addVar('SoftwaresClassificar_form', 'TITULO', $titulo ); | |
41 | + $this->addVar('SoftwaresClassificar_form', 'DESCRICAO', $this->oTranslator->_('Classificacao de softwares conforme tipos possiveis') ); | |
42 | + $this->addVar('SoftwaresClassificar_form', 'SOFTWARE_CLASSIFICADO_SELECT', '<span class="Aviso">'.$this->oTranslator->_('Apenas os nao classificados?')."</span>" ); | |
43 | + $this->addVar('SoftwaresClassificar_form', 'SOFTWARE_NAME_TITLE', $this->oTranslator->_('Nome do software') ); | |
44 | + $this->addVar('SoftwaresClassificar_form', 'NO', $this->oTranslator->_('Nao') ); | |
45 | + $this->addVar('SoftwaresClassificar_form', 'YES', $this->oTranslator->_('Sim') ); | |
46 | + $this->addRows('SoftwaresType_list', $this->fillListSoftwaresType() ); | |
47 | + $this->addVar('SoftwaresClassificar_form', 'COLSPAN', 20 ); | |
48 | + $this->addVar('SoftwaresClassificar_form', 'BTN_SALVAR', $this->oTranslator->_('Gravar alteracoes') ); | |
49 | + $this->addVar('SoftwaresClassificar_form', 'BTN_SALVAR_DENY', ($this->isAdminUser()?'enabled':'disabled')); | |
50 | + $this->addVar('SoftwaresClassificar_form', 'BTN_RESET', $this->oTranslator->_('Restaurar valores') ); | |
51 | + } | |
52 | + | |
53 | + /** | |
54 | + * Armazena na "sessao" os dados de configuração padrao | |
55 | + * @access public | |
56 | + */ | |
57 | + function setup() { | |
58 | + global $cacic_common; | |
59 | + parent::setup(); | |
60 | + $cacic_common['padrao'] = 'Definicoes padrao para pre-preenchimento de campos'; | |
61 | + } | |
62 | + | |
63 | + /** | |
64 | + * Executa a configuracao padrão do CACIC | |
65 | + * @access public | |
66 | + */ | |
67 | + function run() { | |
68 | + $this->clearVar('SoftwaresClassificar_form', 'SET_FOCUS'); | |
69 | + $this->addVar('SoftwaresClassificar_form', 'SET_FOCUS', 'nm_organizacao' ); | |
70 | + $btn_salvar = Security::read('btn_salvar'); | |
71 | + if(isset($btn_salvar) and ($btn_salvar)) { | |
72 | + try { | |
73 | + $this->salvarDados(); | |
74 | + } | |
75 | + catch( Exception $erro ) { | |
76 | + $msg = '<span class="ErroImg"></span>'; | |
77 | + $msg .= '<span class="Erro">'.$erro->getMessage()."</span>"; | |
78 | + $this->setMessageText($msg); | |
79 | + } | |
80 | + } | |
81 | + $this->fillForm($btn_salvar); | |
82 | + $this->showForm(); | |
83 | + } | |
84 | + | |
85 | + /** | |
86 | + * Executa a configuracao padrão do CACIC | |
87 | + * @access public | |
88 | + */ | |
89 | + function salvarDados() { | |
90 | + $error = true; | |
91 | + $msg = $this->oTranslator->_('Ocorreu erro no processamento... '); | |
92 | + /* | |
93 | + * Obtem dados do formulario | |
94 | + */ | |
95 | + $software_classificado = Security::read('software_classificado'); | |
96 | + | |
97 | + /* | |
98 | + * monta sql de atualizacao dos dados padrao | |
99 | + */ | |
100 | + $sql_update = ''; | |
101 | + foreach($software_classificado as $id_software => $id_tipo) { | |
102 | + $sql_update = "update softwares_inventariados set id_tipo_software = " . $id_tipo . | |
103 | + " where id_software_inventariado = ".$id_software."; "; | |
104 | + | |
105 | + /* | |
106 | + * Atualiza dados na tabela | |
107 | + */ | |
108 | + $db_result = mysql_query($sql_update); | |
109 | + $error = mysql_errno($this->db_link); | |
110 | + $msg .= $this->oTranslator->_('kciq_msg server msg').": "; | |
111 | + $msg .= mysql_error($this->db_link); | |
112 | + | |
113 | + /* | |
114 | + * Lança execeção se ocorrer erro | |
115 | + */ | |
116 | + ($error) ? $this->throwError($msg):""; | |
117 | + } | |
118 | + | |
119 | + $this->setMessageText('<span class="OKImg">'.$this->oTranslator->_('Processamento realizado com sucesso')."</span>"); | |
120 | + } | |
121 | + | |
122 | + /** | |
123 | + * Obtem e preenche dados de formulario - tipos de software | |
124 | + * @access private | |
125 | + */ | |
126 | + function fillListSoftwaresType() { | |
127 | + $sql = "select * from tipos_software order by id_tipo_software"; | |
128 | + $db_result = mysql_query($sql); | |
129 | + $list = array(); | |
130 | + while( $tipos = mysql_fetch_assoc($db_result) ) { | |
131 | + $_arrAux = array( array('SOFTWARE_TYPE_NAME'=>$tipos['te_descricao_tipo_software'] ) ); | |
132 | + $list = array_merge($list, $_arrAux); | |
133 | + } | |
134 | + return $list; | |
135 | + } | |
136 | + | |
137 | + /** | |
138 | + * Obtem e preenche dados de formulario | |
139 | + * @access private | |
140 | + * @param string $btn_salvar Se botao para salvar foi acionado | |
141 | + */ | |
142 | + function fillForm($_btn_salvar) { | |
143 | + $sql = "select * from tipos_software order by id_tipo_software"; | |
144 | + $db_result = mysql_query($sql); | |
145 | + $_tipos_list = array(); | |
146 | + while( $tipos = mysql_fetch_assoc($db_result) ) { | |
147 | + $_tipos_list[ $tipos['id_tipo_software'] ]['te_descricao_tipo_software'] = $tipos['te_descricao_tipo_software']; | |
148 | + } | |
149 | + | |
150 | + /* | |
151 | + * Obtem dados do formulario | |
152 | + */ | |
153 | + $software_classificado = Security::read('software_classificado'); | |
154 | + $software_nao_classificado = Security::read('software_nao_classificado'); | |
155 | + | |
156 | + $this->addVar('SoftwaresClassificar_form', 'YES_CHECKED', ((!isset($software_nao_classificado) or $software_nao_classificado)?'checked':'') ); | |
157 | + | |
158 | + $where = " where id_tipo_software=0 "; | |
159 | + if (isset($software_nao_classificado) and ($software_nao_classificado==0)) { | |
160 | + $where = " "; // esvazia a condicional de listagem | |
161 | + $this->addVar('SoftwaresClassificar_form', 'NO_CHECKED', 'checked' ); | |
162 | + } | |
163 | + | |
164 | + $sql_soft_count = "select count(*) as count from softwares_inventariados ".$where; | |
165 | + $db_result_soft = mysql_query($sql_soft_count); | |
166 | + $count = mysql_fetch_row($db_result_soft); | |
167 | + $this->setPageTotalItems($count[0]); | |
168 | + $this->setPageCurrent(); | |
169 | + $sql_soft = "select * from softwares_inventariados ".$where." limit ".$this->getPageItems()." offset ".$this->getPageFristItem(); | |
170 | + $db_result_soft = mysql_query($sql_soft); | |
171 | + $list = array(); | |
172 | + while( $soft = mysql_fetch_assoc($db_result_soft) ) { | |
173 | + $softwares_classificar_tipo = ""; | |
174 | + foreach($_tipos_list as $tipo_id => $tipo_valor) { | |
175 | + if($_btn_salvar) { | |
176 | + /* Obtem dados do formulario */ | |
177 | + if($software_classificado[$soft['id_software_inventariado']]) | |
178 | + $checked = ($tipo_id == $software_classificado[$soft['id_software_inventariado']] )?" checked ":""; | |
179 | + else /* Obtem dados do banco de dados */ | |
180 | + $checked = ($tipo_id == $soft['id_tipo_software'] )?" checked ":""; | |
181 | + } | |
182 | + else { | |
183 | + /* Obtem dados do banco de dados */ | |
184 | + $checked = ($tipo_id == $soft['id_tipo_software'] )?" checked ":""; | |
185 | + } | |
186 | + | |
187 | + $softwares_classificar_tipo .= ' | |
188 | + <td> | |
189 | + <input type="radio" name="software_classificado['.$soft['id_software_inventariado'].']"' | |
190 | + .' value="'.$tipo_id.'"' | |
191 | + .' title="'.$tipo_valor['te_descricao_tipo_software'].'" ' | |
192 | + .$checked | |
193 | + .' /> | |
194 | + </td> | |
195 | + '; | |
196 | + } | |
197 | + // monta linha de dados do software | |
198 | + $_arrAux = array( array( 'SOFTWARE_NAME'=>$soft['nm_software_inventariado'], | |
199 | + 'SOFTWARE_ID'=>$soft['id_software_inventariado'], | |
200 | + 'SOFTWARESCLASSIFICAR_TIPO'=>$softwares_classificar_tipo | |
201 | + ) ); | |
202 | + | |
203 | + $list = array_merge($list, $_arrAux); | |
204 | + } | |
205 | + $software_tipos_list = $list; | |
206 | + | |
207 | + /* | |
208 | + * Preenche formulário com dados | |
209 | + */ | |
210 | + $this->addRows('SoftwaresInventariados_list', $software_tipos_list ); | |
211 | + | |
212 | + } | |
213 | + | |
214 | + /** | |
215 | + * Mostra formulario da configuracao padrao | |
216 | + * @access private | |
217 | + */ | |
218 | + function showForm() { | |
219 | + // Monta cabecalho da pagina | |
220 | + $this->displayParsedTemplate('CacicCommon_head'); | |
221 | + // Monta cabecalho da pagina | |
222 | + $this->displayParsedTemplate('SoftwaresClassificar'); | |
223 | + | |
224 | + // Monta corpo da pagina | |
225 | + $page_to_show = $this->fillPagination(); | |
226 | + $this->addVar('SoftwaresClassificar_form', 'PAGE_CURRENT', $page_to_show); | |
227 | + $this->addVar('SoftwaresClassificar_form', 'PAGE_NEXT', $page_to_show+1); | |
228 | + $this->displayParsedTemplate('SoftwaresClassificar_form'); | |
229 | + | |
230 | + // Mostra paginacao | |
231 | + $this->displayParsedTemplate('CacicCommon_pagination'); | |
232 | + | |
233 | + // Monta area de mensages e rodape da pagina | |
234 | + $this->displayParsedTemplate('CacicCommon_messages'); | |
235 | + $this->displayParsedTemplate('CacicCommon_footer'); | |
236 | + } | |
237 | + } | |
238 | + | |
239 | +?> | |
0 | 240 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,43 @@ |
1 | +<?php | |
2 | +/** | |
3 | + * @version $Id: softwares_classificar.php 2009-02-17 22:18 harpiain $ | |
4 | + * @package CACIC-Admin | |
5 | + * @subpackage SoftwaresClassificar | |
6 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
7 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
8 | + * @license GNU/GPL, see LICENSE.php | |
9 | + * CACIC is free software and parts of it may contain or be derived from the | |
10 | + * GNU General Public License or other free or open source software licenses. | |
11 | + * See COPYRIGHT.php for copyright notices and details. | |
12 | + */ | |
13 | + | |
14 | +//session_start(); | |
15 | +//session_destroy(); | |
16 | +session_unset(); | |
17 | +$time_start = microtime(true); | |
18 | +/* | |
19 | + * verifica se houve login e também regras para outras verificações (ex: permissões do usuário)! | |
20 | + */ | |
21 | +//if(!isset($_SESSION['id_usuario'])) | |
22 | +// die('Acesso restrito (Restricted access)!'); | |
23 | + | |
24 | +// Ativa modo de depuração (mostra todas as mensagens na página) | |
25 | +// $cacicDebug = true; | |
26 | + | |
27 | +include_once('../../include/library.php'); | |
28 | +//AntiSpy('1,2,3'); // Permitido somente a estes cs_nivel_administracao... | |
29 | + | |
30 | +require_once('softwares_classificar.class.php'); | |
31 | + | |
32 | +$oCacicAdminRede = new Softwares_Classificar(); | |
33 | +$oCacicAdminRede->setup(); | |
34 | +$oCacicAdminRede->run(); | |
35 | + | |
36 | +/* | |
37 | + * Contabiliza tempo de processamento da página | |
38 | + */ | |
39 | +$time_end = microtime(true); | |
40 | +$time_proc = ($time_end-$time_start); | |
41 | +echo '<!-- in '.($time_proc)."ms -->"; | |
42 | + | |
43 | +?> | ... | ... |
... | ... | @@ -0,0 +1,79 @@ |
1 | +<?php | |
2 | +/** | |
3 | + * @version $Id: softwares_classificar_01.tmpl.php 2009-02-17 22:55 harpiain $ | |
4 | + * @package CACIC-Admin | |
5 | + * @subpackage SoftwaresClassificar | |
6 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
7 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
8 | + * @license GNU/GPL, see LICENSE.php | |
9 | + * CACIC is free software and parts of it may contain or be derived from the | |
10 | + * GNU General Public License or other free or open source software licenses. | |
11 | + * See COPYRIGHT.php for copyright notices and details. | |
12 | + * | |
13 | + * Templates para configuração (Padrao) do CACIC | |
14 | + */ | |
15 | + | |
16 | +// direct access is denied | |
17 | +defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | |
18 | + | |
19 | +?> | |
20 | +<softwareClassificacao:tmpl name="SoftwaresClassificar"> | |
21 | + <link href="{CACIC_URL}/admin/softwares/softwares_classificacao_01.css" rel="stylesheet" type="text/css" /> | |
22 | + <script language="JavaScript" type="text/javascript" src="{CACIC_URL}/admin/softwares/softwares_classificacao_01.js"></script> | |
23 | +</softwareClassificacao:tmpl> | |
24 | + | |
25 | +<softwareClassificacao:tmpl name="SoftwaresClassificar_form"> | |
26 | +<div class="cabecalho"> | |
27 | +<table> | |
28 | + <tr> | |
29 | + <td class="cabecalho"> | |
30 | + <softwareClassificacao:comment><img src="../imgs/cacic_logo.png" /></softwareClassificacao:comment> | |
31 | + {TITULO} | |
32 | + </td> | |
33 | + </tr> | |
34 | + <tr> | |
35 | + <td> | |
36 | + <fieldset class="corpo"> | |
37 | + <legend>{DESCRICAO}</legend> | |
38 | + <table> | |
39 | + <tr> | |
40 | + <td align="right" class="botoes">{SOFTWARE_CLASSIFICADO_SELECT} | |
41 | + </td> | |
42 | + <td align="left" colspan={COLSPAN}> | |
43 | + <input type="radio" name="software_nao_classificado" value="1" {YES_CHECKED} onClick="sendForm(this.form);" />{YES} | |
44 | + <input type="radio" name="software_nao_classificado" value="0" {NO_CHECKED} onClick="sendForm(this.form);" />{NO} | |
45 | + </td> | |
46 | + </tr> | |
47 | + <tr height="70"> | |
48 | + <th class="header">{SOFTWARE_NAME_TITLE} | |
49 | + </th> | |
50 | + <softwareClassificacao:tmpl name="SoftwaresType_list"> | |
51 | + <td width="5%" class="header"> | |
52 | + <object data="softwares_classificar_tipo_svgimage.php?texto={SOFTWARE_TYPE_NAME}" type="image/svg+xml"></object> | |
53 | + </td> | |
54 | + </softwareClassificacao:tmpl> | |
55 | + </tr> | |
56 | + <softwareClassificacao:tmpl name="SoftwaresInventariados_list"> | |
57 | + <tr class="even" onMouseOver="this.className = 'odd';" onMouseOut="this.className = 'even';"> | |
58 | + <td> | |
59 | + {SOFTWARE_NAME} | |
60 | + </td> | |
61 | + {SOFTWARESCLASSIFICAR_TIPO} | |
62 | + </tr> | |
63 | + </softwareClassificacao:tmpl> | |
64 | + <tr> | |
65 | + <td colspan="{COLSPAN}" class="botoes"> | |
66 | + <input type="hidden" id="btn_salvar" name="btn_salvar" value="" /> | |
67 | + <span class='botoes{BTN_SALVAR_DENY}'> | |
68 | + <input type='button' title="{BTN_SALVAR}" name="{BTN_SALVAR}" onClick="setDocVar( 'btn_salvar', 1 ); setDocVar( 'page', {PAGE_NEXT} ); sendForm(this.form);" value="{BTN_SALVAR}" {BTN_SALVAR_DENY} /> | |
69 | + </span> | |
70 | + <input type='reset' title="{BTN_RESET}" value="{BTN_RESET}" /> | |
71 | + </td> | |
72 | + </tr> | |
73 | + </table> | |
74 | + </fieldset> | |
75 | + </td> | |
76 | + </tr> | |
77 | +</table> | |
78 | +</div> | |
79 | +</softwareClassificacao:tmpl> | ... | ... |
... | ... | @@ -0,0 +1,24 @@ |
1 | +<?php | |
2 | +/** | |
3 | + * @version $Id: softwares_classificar_tipo_svgimage.php 2009-02-17 22:55 harpiain $ | |
4 | + * @package CACIC-Admin | |
5 | + * @subpackage SoftwaresClassificar | |
6 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
7 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
8 | + * @license GNU/GPL, see LICENSE.php | |
9 | + * CACIC is free software and parts of it may contain or be derived from the | |
10 | + * GNU General Public License or other free or open source software licenses. | |
11 | + * See COPYRIGHT.php for copyright notices and details. | |
12 | + * | |
13 | + * Gerador de imagem svg para tipos de software a ser classificado | |
14 | + */ | |
15 | +header('Content-Type: image/svg+xml'); | |
16 | + echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>'; | |
17 | +?> | |
18 | +<svg xmlns="http://www.w3.org/2000/svg" | |
19 | + xmlns:xlink="http://www.w3.org/1999/xlink"> | |
20 | + <text x="00" y="25" font-size="12" | |
21 | + transform="translate(40) rotate(-80 60 105)" | |
22 | + ><?=$_GET['texto'];?></text> | |
23 | +</svg> | |
24 | + | ... | ... |
bibliotecas/security/security.php
... | ... | @@ -27,11 +27,11 @@ defined( 'SECURITY' ) or die( 'Acesso restrito (Restricted access)!' ); |
27 | 27 | * @param array $_POST_GET array data to read value on |
28 | 28 | * @return mixed the required variable |
29 | 29 | */ |
30 | - function read($var2read, $_POST_GET='') { | |
30 | + function read($_var2read, $_POST_GET='') { | |
31 | 31 | if(!empty($_POST_GET) and is_array($_POST_GET)) |
32 | - $read_var = @$_POST_GET[$var2read]; | |
32 | + $read_var = @$_POST_GET[$_var2read]; | |
33 | 33 | else |
34 | - $read_var = @$_REQUEST[$var2read]; | |
34 | + $read_var = @$_REQUEST[$_var2read]; | |
35 | 35 | |
36 | 36 | /* |
37 | 37 | * tratar segurança na variavel lida |
... | ... | @@ -39,4 +39,51 @@ defined( 'SECURITY' ) or die( 'Acesso restrito (Restricted access)!' ); |
39 | 39 | |
40 | 40 | return $read_var; |
41 | 41 | } // end func read |
42 | + | |
43 | + /** | |
44 | + * Read integer value from form data | |
45 | + * @access public | |
46 | + * @param key_index $var2read index key on POST or GET vars | |
47 | + * @return int a typecasted integer value | |
48 | + */ | |
49 | + function getInt($_var2read) { | |
50 | + $int = (int)(Security::read($_var2read)); | |
51 | + return $int; | |
52 | + } // end func getInt | |
53 | + | |
54 | + /** | |
55 | + * Read float value from form data | |
56 | + * @access public | |
57 | + * @param key_index $var2read index key on POST or GET vars | |
58 | + * @return float a typecasted float value | |
59 | + */ | |
60 | + function getFloat($_var2read) { | |
61 | + $float = (float)(Security::read($_var2read)); | |
62 | + return $float; | |
63 | + } // end func getFloat | |
64 | + | |
65 | + /** | |
66 | + * Read string value from form data | |
67 | + * @access public | |
68 | + * @param key_index $var2read index key on POST or GET vars | |
69 | + * @return string a typecasted string value | |
70 | + */ | |
71 | + function getString($_var2read) { | |
72 | + $string = (string)(Security::read($_var2read)); | |
73 | + return $string; | |
74 | + } // end func getString :P | |
75 | + | |
76 | + /** | |
77 | + * Read escaped string value from form data to MySQL DBMS | |
78 | + * @access public | |
79 | + * @param key_index $var2read index key on POST or GET vars | |
80 | + * @return string a escaped typecasted string value | |
81 | + */ | |
82 | + function getStringEscaped($_var2read) { | |
83 | + $string = (string)(Security::read($_var2read)); | |
84 | + // esse função mysql está obsoleta no php-5.3 e será removida no php-6 | |
85 | + $string = mysql_escape_string($string); | |
86 | + return $string; | |
87 | + } // end func getStringEscaped | |
88 | + | |
42 | 89 | } // end class Security | ... | ... |
... | ... | @@ -0,0 +1,319 @@ |
1 | +<?php | |
2 | +/** | |
3 | + * @version $Id: cacic_common.class.php 2009-02-17 22:33 harpiain $ | |
4 | + * @package CACIC-Admin | |
5 | + * @subpackage AdminSetup | |
6 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
7 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
8 | + * @license GNU/GPL, see LICENSE.php | |
9 | + * CACIC is free software and parts of it may contain or be derived from the | |
10 | + * GNU General Public License or other free or open source software licenses. | |
11 | + * See COPYRIGHT.php for copyright notices and details. | |
12 | + */ | |
13 | + | |
14 | +// direct access is denied | |
15 | +defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | |
16 | + | |
17 | +/* | |
18 | + * Classe de templates | |
19 | + */ | |
20 | +if( ! @include("pat/patErrorManager.php") ) | |
21 | +{ | |
22 | + die('Erro na inclusão da biblioteca patTemplate! (patTemplate include error!).'); | |
23 | +} | |
24 | +if( ! @include("pat/patError.php") ) | |
25 | +{ | |
26 | + die('Erro na inclusão da biblioteca patTemplate! (patTemplate include error!).'); | |
27 | +} | |
28 | +if( ! @include("pat/patTemplate.php") ) | |
29 | +{ | |
30 | + die('Erro na inclusão da biblioteca patTemplate! (patTemplate include error!).'); | |
31 | +} | |
32 | + | |
33 | +/* | |
34 | + * Uma classe para implementar segurança em transações | |
35 | + */ | |
36 | + define( 'SECURITY', 1 ); | |
37 | + require_once('security/security.php'); | |
38 | + | |
39 | + /** | |
40 | + * Dados de configuração para o CACIC | |
41 | + */ | |
42 | + unset($cacic_common); | |
43 | + | |
44 | + define(DISABLED, 'disabled'); | |
45 | + | |
46 | +/** | |
47 | + * Classe para definições de configurações | |
48 | + */ | |
49 | + class Cacic_Common extends patTemplate { | |
50 | + | |
51 | + | |
52 | + var $setup_type; | |
53 | + | |
54 | + /** | |
55 | + * Componente (objeto) para traduções | |
56 | + */ | |
57 | + var $oTranslator; | |
58 | + | |
59 | + /** | |
60 | + * Componente (objeto) para acesso a banco de dados | |
61 | + */ | |
62 | + var $db_link; | |
63 | + | |
64 | + /** | |
65 | + * Itens por página em paginação | |
66 | + */ | |
67 | + var $pagination_items = 20; | |
68 | + | |
69 | + /** | |
70 | + * Conterá a página apresentada (corrente) | |
71 | + */ | |
72 | + var $pagination_current_page; | |
73 | + | |
74 | + /** | |
75 | + * Conterá a quantidade total de itens a serem mostrados | |
76 | + */ | |
77 | + var $pagination_total_items; | |
78 | + | |
79 | + function Cacic_Common() { | |
80 | + global $oTranslator, $ip_servidor, $usuario_bd, $senha_usuario_bd, $nome_bd; | |
81 | + $this->db_link = mysql_connect( $ip_servidor, $usuario_bd, $senha_usuario_bd); | |
82 | + mysql_select_db($nome_bd,$this->db_link); | |
83 | + parent::patTemplate(); | |
84 | + $this->oTranslator = $oTranslator; | |
85 | + /* | |
86 | + * Inicializa template | |
87 | + */ | |
88 | + $this->setNamespace('cacicCommon'); | |
89 | + $this->setRoot(dirname(__FILE__)); | |
90 | + $this->readTemplatesFromInput('cacic_common_01.tmpl.php'); | |
91 | + | |
92 | + $this->addVar('CacicCommon_head', 'CACIC_TITLE', $this->oTranslator->_('Configuracao Basica') ); | |
93 | + $this->addVar('CacicCommon_head', 'CACIC_LANG', CACIC_LANGUAGE ); | |
94 | + $this->addVar('CacicCommon_head', 'CACIC_LANG_CHARSET', CACIC_LANG_CHARSET ); | |
95 | + $this->addVar('CacicCommon_head', 'CACIC_THEME', CACIC_THEME ); | |
96 | + $this->addVar('CacicCommon_head', 'CACIC_URL', CACIC_URL ); | |
97 | + $this->addVar('CacicCommon_messages', 'MESSAGES', $this->oTranslator->_('Mensagens') ); | |
98 | + | |
99 | + // Monta paginação | |
100 | + $this->addVar('CacicCommon_pagination', 'PAGE_TITLE', $this->oTranslator->_('Paginacao') ); | |
101 | + $this->addVar('CacicCommon_pagination_first', 'PAGE_TEXT', $this->oTranslator->_('Primeira') ); | |
102 | + $this->addVar('CacicCommon_pagination_first', 'PAGE_TEXT_TITLE', $this->oTranslator->_('Primeira pagina') ); | |
103 | + $this->addVar('CacicCommon_pagination_back', 'PAGE_TEXT', $this->oTranslator->_('Anterior') ); | |
104 | + $this->addVar('CacicCommon_pagination_back', 'PAGE_TEXT_TITLE', $this->oTranslator->_('Pagina anterior') ); | |
105 | + $this->addVar('CacicCommon_pagination_next', 'PAGE_TEXT', $this->oTranslator->_('Proxima') ); | |
106 | + $this->addVar('CacicCommon_pagination_next', 'PAGE_TEXT_TITLE', $this->oTranslator->_('Proxima pagina') ); | |
107 | + $this->addVar('CacicCommon_pagination_last', 'PAGE_TEXT', $this->oTranslator->_('Ultima') ); | |
108 | + $this->addVar('CacicCommon_pagination_last', 'PAGE_TEXT_TITLE', $this->oTranslator->_('Ultima pagina') ); | |
109 | + | |
110 | + } | |
111 | + | |
112 | + /** | |
113 | + * Armazena na "sessao" os dados de configuração comuns | |
114 | + * @access protected | |
115 | + */ | |
116 | + function setup() { | |
117 | + global $cacic_common; | |
118 | + $cacic_common['common'] = 'Declaracoes comuns ao sistema'; | |
119 | + } | |
120 | + | |
121 | + /** | |
122 | + * Atribui título da página | |
123 | + * @param string $_title Título a ser atríbuido à pagina | |
124 | + * @access protected | |
125 | + */ | |
126 | + function setPageTitle($_title) { | |
127 | + $this->clearVar('CacicCommon_head', 'CACIC_TITLE'); | |
128 | + $this->addVar('CacicCommon_head', 'CACIC_TITLE', $_title ); | |
129 | + } | |
130 | + | |
131 | + /** | |
132 | + * Verifica se é usuário administrador | |
133 | + * @access protected | |
134 | + */ | |
135 | + function isAdminUser() { | |
136 | + $is_admin_user = false; | |
137 | + $is_admin_user = ($_SESSION['cs_nivel_administracao']==1); | |
138 | + | |
139 | + return $is_admin_user; | |
140 | + } | |
141 | + | |
142 | + /** | |
143 | + * Atribui o tipo de configuração a ser processada | |
144 | + * @access protected | |
145 | + * @param string $msg A mensagem a ser mostrada | |
146 | + * @param boolean $js Mostra mensagem usando recurso de javascript | |
147 | + */ | |
148 | + function setMessageText($_msg, $_js=false) { | |
149 | + $this->clearVar('CacicCommon_messages_cond', 'MESSAGE'); | |
150 | + if($_js) | |
151 | + $this->addVar('CacicCommon_messages_cond', 'msgtype', 'js' ); | |
152 | + | |
153 | + $this->addVar('CacicCommon_messages_cond', 'MESSAGE', $_msg ); | |
154 | + } | |
155 | + | |
156 | + /** | |
157 | + * Lança execeção se ocorrer erro | |
158 | + * @access protected | |
159 | + */ | |
160 | + function throwError($_msg) { | |
161 | + throw new Exception($_msg); | |
162 | + } | |
163 | + | |
164 | + /** | |
165 | + * Obtem e preenche dados de paginacao | |
166 | + * @access private | |
167 | + * @param string $btn_salvar Se botao para salvar foi acionado | |
168 | + */ | |
169 | + function fillPagination($_total_items) { | |
170 | + // Monta paginação | |
171 | + $_page_to_show = Security::getInt('page'); | |
172 | + if(!$_page_to_show) | |
173 | + $_page_to_show = 1; | |
174 | + $this->setPageCurrent($_page_to_show); | |
175 | + | |
176 | + if($_total_items) | |
177 | + $this->setPageTotalItems($_total_items); | |
178 | + | |
179 | + $this->addVar('CacicCommon_pagination', 'PAGE_CURRENT', $_page_to_show ); | |
180 | + | |
181 | + | |
182 | + $show = (($this->getPageCurrent()==1 or $this->getPageCurrent()==0)?DISABLED:true); | |
183 | + $this->addVar('CacicCommon_pagination_first', 'SHOW', $show ); // SHOW: true, false, DISABLED | |
184 | + $this->addVar('CacicCommon_pagination_first', 'PAGE_NUMBER', 1 ); | |
185 | + | |
186 | + $this->addVar('CacicCommon_pagination_back', 'SHOW', $show ); | |
187 | + $this->addVar('CacicCommon_pagination_back', 'PAGE_NUMBER', $this->getPageBack() ); | |
188 | + | |
189 | + $this->addRows('CacicCommon_pages_list_cond', $this->pages2Show($_page_to_show, 10) ); | |
190 | + | |
191 | + $show = (($this->getPageNext()==$this->getPageLast())?DISABLED:true); | |
192 | + $this->addVar('CacicCommon_pagination_next', 'SHOW', $show ); | |
193 | + $this->addVar('CacicCommon_pagination_next', 'PAGE_NUMBER', $this->getPageNext() ); | |
194 | + | |
195 | + $show = (($this->getPageLast()==$this->getPageCurrent())?DISABLED:true); | |
196 | + $this->addVar('CacicCommon_pagination_last', 'SHOW', $show ); | |
197 | + $this->addVar('CacicCommon_pagination_last', 'PAGE_NUMBER', $this->getPageLast() ); | |
198 | + | |
199 | + return $_page_to_show; | |
200 | + } | |
201 | + | |
202 | + /** | |
203 | + * Atribui número de itens por página | |
204 | + */ | |
205 | + function setPageItems($_page_items) { | |
206 | + $this->pagination_items = $_page_items; | |
207 | + } | |
208 | + | |
209 | + /** | |
210 | + * Atribui número total de itens a paginar | |
211 | + */ | |
212 | + function setPageTotalItems($_total_items) { | |
213 | + $this->pagination_total_items = $_total_items; | |
214 | + } | |
215 | + | |
216 | + /** | |
217 | + * Obtem número de itens por página | |
218 | + */ | |
219 | + function getPageItems() { | |
220 | + return $this->pagination_items; | |
221 | + } | |
222 | + | |
223 | + /** | |
224 | + * Obtem número da página anterior | |
225 | + */ | |
226 | + function getPageBack() { | |
227 | + $page_back = ($this->pagination_current_page-1)<=0?1:$this->pagination_current_page-1; | |
228 | + return $page_back; | |
229 | + } | |
230 | + | |
231 | + /** | |
232 | + * Obtem número da próxima página | |
233 | + */ | |
234 | + function getPageNext() { | |
235 | + $page_next = ($this->pagination_current_page+1)>$this->getPageLast()?$this->getPageLast():$this->pagination_current_page+1; | |
236 | + return $page_next; | |
237 | + } | |
238 | + | |
239 | + /** | |
240 | + * Obtem número da última página | |
241 | + */ | |
242 | + function getPageLast() { | |
243 | + $page_last = (int)($this->pagination_total_items / $this->pagination_items); | |
244 | + return $page_last; | |
245 | + } | |
246 | + | |
247 | + /** | |
248 | + * Atribui número da página atual (corrente) | |
249 | + */ | |
250 | + function setPageCurrent($_page_current) { | |
251 | + $_page_current = ($_page_current?$_page_current:Security::getInt('page')); | |
252 | + $this->pagination_current_page = $_page_current; | |
253 | + } | |
254 | + | |
255 | + /** | |
256 | + * Obtem número da página atual (corrente) | |
257 | + */ | |
258 | + function getPageCurrent() { | |
259 | + return $this->pagination_current_page; | |
260 | + } | |
261 | + | |
262 | + /** | |
263 | + * Obtem número de itens por página (corrente ou de uma dada) | |
264 | + */ | |
265 | + function getPageFristItem($_page) { | |
266 | + $ret = ($this->pagination_current_page - 1) * $this->pagination_items; | |
267 | + if($_page) | |
268 | + $ret = ($_page - 1) * $this->pagination_items; | |
269 | + $ret = ($ret<=0?0:$ret); | |
270 | + return $ret; | |
271 | + } | |
272 | + | |
273 | + /** | |
274 | + * Prepara dados de paginacao | |
275 | + * @access private | |
276 | + * @param string $btn_salvar Se botao para salvar foi acionado | |
277 | + */ | |
278 | + function pages2Show( $_pages_to_show, $_count) { | |
279 | + if($_pages_to_show<=0) { | |
280 | + $_current_page = 1; | |
281 | + $_pages_to_show = 1; | |
282 | + } | |
283 | + else | |
284 | + $_current_page = $_pages_to_show; | |
285 | + | |
286 | + $count = 0; | |
287 | + $_pages_to_show = $_pages_to_show - (int)( $_count / 2); | |
288 | + $_pages_to_show = $_pages_to_show<=0?$_current_page:$_pages_to_show; | |
289 | + $pages_show = array(); | |
290 | + while ($count < $_count) { | |
291 | + $count++; | |
292 | + $class_current_page = ($_pages_to_show==$_current_page?'currentpage':''); | |
293 | + $pages = array( array( 'PAGE_TEXT' => $this->oTranslator->_($_pages_to_show), | |
294 | + 'PAGE_NUMBER'=> $_pages_to_show, | |
295 | + 'DISABLED'=>($class_current_page?DISABLED:false), | |
296 | + 'CLASS_CURRENT_PAGE'=>$class_current_page | |
297 | + ) | |
298 | + ); | |
299 | + $pages_show = array_merge($pages_show, $pages); | |
300 | + $_pages_to_show++; | |
301 | + } | |
302 | + | |
303 | + return $pages_show; | |
304 | + } | |
305 | + | |
306 | + | |
307 | + /** | |
308 | + * Dump de variaceis | |
309 | + * @access protected | |
310 | + */ | |
311 | + function varDump($_var) { | |
312 | + echo "<pre>"; | |
313 | + var_dump($_var); | |
314 | + echo "</pre>"; | |
315 | + } | |
316 | + | |
317 | + } | |
318 | + | |
319 | +?> | |
0 | 320 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,80 @@ |
1 | +/** | |
2 | + * @version $Id: cacic_common.class.tmpl.php 2009-02-19 22:28 harpiain $ | |
3 | + * @package CACIC-Common | |
4 | + * @subpackage CacicTemplate | |
5 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
6 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
7 | + * @license GNU/GPL, see LICENSE.php | |
8 | + * CACIC is free software and parts of it may contain or be derived from the | |
9 | + * GNU General Public License or other free or open source software licenses. | |
10 | + * See COPYRIGHT.php for copyright notices and details. | |
11 | + * | |
12 | + * CSS padrão para o CACIC | |
13 | + */ | |
14 | + | |
15 | +.pagination table { | |
16 | + text-align: justify; | |
17 | + color: black; | |
18 | + width: 98%; | |
19 | + margin-left: auto; | |
20 | + margin-right: auto; | |
21 | + border: 0; | |
22 | + padding: 0; | |
23 | +} | |
24 | + | |
25 | +/* Adaptado de: | |
26 | + Credits: Dynamic Drive CSS Library | |
27 | + URL: http://www.dynamicdrive.com/style/ */ | |
28 | + | |
29 | +.pagination, .pagination input { | |
30 | + padding: 2px; | |
31 | + font-size: 11px; | |
32 | +} | |
33 | + | |
34 | +.pagination ul { | |
35 | + margin: 0; | |
36 | + padding: 0; | |
37 | + text-align: right; /* left, right, center to change alignment pagination interface*/ | |
38 | + font-size: 10px; | |
39 | +} | |
40 | + | |
41 | +.pagination li { | |
42 | + list-style-type: none; | |
43 | + display: inline; | |
44 | + padding-bottom: 1px; | |
45 | +} | |
46 | + | |
47 | +.pagination span { | |
48 | + padding: 0 5px; | |
49 | + border: 1px solid #DD6900; | |
50 | + text-decoration: none; | |
51 | + color: #FF9966; | |
52 | +} | |
53 | + | |
54 | +.pagination span:hover { | |
55 | + border: 1px solid #DD6900; | |
56 | + color: #6B1400; | |
57 | + background-color: #FFFF80; | |
58 | + cursor: pointer; | |
59 | +} | |
60 | + | |
61 | +.pagination span.currentpage { | |
62 | + background-color: #6B1400; | |
63 | + color: #FFF !important; | |
64 | + border-color: #2b66a5; | |
65 | + font-weight: bold; | |
66 | + cursor: default; | |
67 | +} | |
68 | + | |
69 | +.pagination span.prevnextdisabled, | |
70 | +.pagination span.prevnextdisabled:hover { | |
71 | + background-color: white; | |
72 | + cursor: default; | |
73 | + color: #929292; | |
74 | + border-color: #929292; | |
75 | + font-weight: normal !important; | |
76 | +} | |
77 | + | |
78 | +.pagination span.prevnext { | |
79 | + font-weight: bold; | |
80 | +} | ... | ... |
... | ... | @@ -0,0 +1,171 @@ |
1 | +<?php | |
2 | +/** | |
3 | + * @version $Id: cacic_common.class.tmpl.php 2009-02-19 22:28 harpiain $ | |
4 | + * @package CACIC-Common | |
5 | + * @subpackage CacicTemplate | |
6 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
7 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
8 | + * @license GNU/GPL, see LICENSE.php | |
9 | + * CACIC is free software and parts of it may contain or be derived from the | |
10 | + * GNU General Public License or other free or open source software licenses. | |
11 | + * See COPYRIGHT.php for copyright notices and details. | |
12 | + * | |
13 | + * Templates padrão para o CACIC | |
14 | + */ | |
15 | + | |
16 | +// direct access is denied | |
17 | +defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | |
18 | +?> | |
19 | +<cacicCommon:tmpl name="CacicCommon_head"> | |
20 | +<html> | |
21 | +<head> | |
22 | + <title>{CACIC_TITLE}</title> | |
23 | + <meta http-equiv="Content-Language" content="{CACIC_LANG}" /> | |
24 | + <meta http-equiv="Content-Type" content="text/html; charset={CACIC_LANG_CHARSET}" /> | |
25 | + <link href="{CACIC_URL}/include/cacic.css" rel="stylesheet" type="text/css" /> | |
26 | + <link href="{CACIC_URL}/common/cacic_common_01.css" rel="stylesheet" type="text/css" /> | |
27 | + <script language="JavaScript" type="text/javascript" src="{CACIC_URL}/include/cacic.js"></script> | |
28 | + <script language="JavaScript" type="text/javascript" src="{CACIC_URL}/bibliotecas/javascript/asv/asvAjax.js"></script> | |
29 | + <script language="JavaScript" type="text/javascript" src="{CACIC_URL}/bibliotecas/javascript/asv/asvUtils.js"></script> | |
30 | +</head> | |
31 | +<body class="frameprincipal"> | |
32 | +<FORM id="CacicCommon_form" name="CacicCommon_form" method="post"> | |
33 | +</cacicCommon:tmpl> | |
34 | + | |
35 | +<cacicCommon:tmpl name="CacicCommon_messages"> | |
36 | +<div class="cabecalho"> | |
37 | +<table> | |
38 | + <tr> | |
39 | + <td> | |
40 | + <fieldset class="messages"> | |
41 | + <legend>{MESSAGES}</legend> | |
42 | + <cacicCommon:tmpl name="CacicCommon_messages_cond" type="condition" conditionvar="msgtype"> | |
43 | + <cacicCommon:sub condition="js"> | |
44 | + <script language="javascript"> | |
45 | + document.write('{MESSAGE}'); | |
46 | + </script> | |
47 | + </cacicCommon:sub> | |
48 | + <cacicCommon:sub condition="__default"> | |
49 | + <span id='message' class="message">{MESSAGE}</span> | |
50 | + </cacicCommon:sub> | |
51 | + </cacicCommon:tmpl> | |
52 | + </fieldset> | |
53 | + </td> | |
54 | + </tr> | |
55 | +</table> | |
56 | +</cacicCommon:tmpl> | |
57 | + | |
58 | +<cacicCommon:tmpl name="CacicCommon_footer"> | |
59 | +</FORM> | |
60 | +</body> | |
61 | +</html> | |
62 | +</cacicCommon:tmpl> | |
63 | + | |
64 | +<cacicCommon:tmpl name="CacicCommon_pagination"> | |
65 | +<div class="pagination"> | |
66 | +<table> | |
67 | + <tr> | |
68 | + <td> | |
69 | + <fieldset> | |
70 | + <legend>{PAGE_TITLE}</legend> | |
71 | + <ul> | |
72 | + | |
73 | + <cacicCommon:tmpl name="CacicCommon_pagination_first" type="condition" conditionvar="show"> | |
74 | + <cacicCommon:sub condition="1"> | |
75 | + <li> | |
76 | + <span class="prevnext{DISABLED}" title="{PAGE_TEXT_TITLE}" | |
77 | + onClick="setDocVar( 'page', {PAGE_NUMBER} ); sendForm(document.CacicCommon_form);"> | |
78 | + {PAGE_TEXT} | |
79 | + </span> | |
80 | + </li> | |
81 | + </cacicCommon:sub> | |
82 | + <cacicCommon:sub condition="disabled"> | |
83 | + <li> | |
84 | + <span class="prevnextdisabled" title="{PAGE_TEXT_TITLE}" > | |
85 | + {PAGE_TEXT} | |
86 | + </span> | |
87 | + </li> | |
88 | + </cacicCommon:sub> | |
89 | + </cacicCommon:tmpl> | |
90 | + | |
91 | + <cacicCommon:tmpl name="CacicCommon_pagination_back" type="condition" conditionvar="show"> | |
92 | + <cacicCommon:sub condition="1"> | |
93 | + <li> | |
94 | + <span class="prevnext{DISABLED}" title="{PAGE_TEXT_TITLE}" | |
95 | + onClick="setDocVar( 'page', {PAGE_NUMBER} ); sendForm(document.CacicCommon_form);"> | |
96 | + {PAGE_TEXT} | |
97 | + </span> | |
98 | + </li> | |
99 | + </cacicCommon:sub> | |
100 | + <cacicCommon:sub condition="disabled"> | |
101 | + <li> | |
102 | + <span class="prevnextdisabled" title="{PAGE_TEXT_TITLE}" > | |
103 | + {PAGE_TEXT} | |
104 | + </span> | |
105 | + </li> | |
106 | + </cacicCommon:sub> | |
107 | + </cacicCommon:tmpl> | |
108 | + | |
109 | + <cacicCommon:tmpl name="CacicCommon_pages_list_cond" type="condition" conditionvar="disabled"> | |
110 | + <cacicCommon:sub condition="1" or condition="disabled"> | |
111 | + <li> | |
112 | + <span class="{CLASS_CURRENT_PAGE}" title="{PAGE_TEXT_TITLE}" > | |
113 | + {PAGE_TEXT} | |
114 | + </span> | |
115 | + </li> | |
116 | + </cacicCommon:sub> | |
117 | + <cacicCommon:sub condition="__default"> | |
118 | + <li> | |
119 | + <span class="{CLASS_CURRENT_PAGE}" title="{PAGE_TEXT_TITLE}" | |
120 | + onClick="setDocVar( 'page', {PAGE_NUMBER} ); sendForm(document.CacicCommon_form);" | |
121 | + > | |
122 | + {PAGE_TEXT} | |
123 | + </span> | |
124 | + </li> | |
125 | + </cacicCommon:sub> | |
126 | + </cacicCommon:tmpl> | |
127 | + | |
128 | + <cacicCommon:tmpl name="CacicCommon_pagination_next" type="condition" conditionvar="show"> | |
129 | + <cacicCommon:sub condition="1"> | |
130 | + <li> | |
131 | + <span class="prevnext" title="{PAGE_TEXT_TITLE}" | |
132 | + onClick="setDocVar( 'page', {PAGE_NUMBER} ); sendForm(document.CacicCommon_form);"> | |
133 | + {PAGE_TEXT} | |
134 | + </span> | |
135 | + </li> | |
136 | + </cacicCommon:sub> | |
137 | + <cacicCommon:sub condition="disabled"> | |
138 | + <li> | |
139 | + <span class="prevnextdisabled" title="{PAGE_TEXT_TITLE}" > | |
140 | + {PAGE_TEXT} | |
141 | + </span> | |
142 | + </li> | |
143 | + </cacicCommon:sub> | |
144 | + </cacicCommon:tmpl> | |
145 | + | |
146 | + <cacicCommon:tmpl name="CacicCommon_pagination_last" type="condition" conditionvar="show"> | |
147 | + <cacicCommon:sub condition="1"> | |
148 | + <li> | |
149 | + <span class="prevnext{DISABLED}" title="{PAGE_TEXT_TITLE}" | |
150 | + onClick="setDocVar( 'page', {PAGE_NUMBER} ); sendForm(document.CacicCommon_form);"> | |
151 | + {PAGE_TEXT} | |
152 | + </span> | |
153 | + </li> | |
154 | + </cacicCommon:sub> | |
155 | + <cacicCommon:sub condition="disabled"> | |
156 | + <li> | |
157 | + <span class="prevnextdisabled" title="{PAGE_TEXT_TITLE}" > | |
158 | + {PAGE_TEXT} | |
159 | + </span> | |
160 | + </li> | |
161 | + </cacicCommon:sub> | |
162 | + </cacicCommon:tmpl> | |
163 | + | |
164 | + </ul> | |
165 | + </fieldset> | |
166 | + <input type="hidden" id="page" name="page" value="{PAGE_CURRENT}" /> | |
167 | + </td> | |
168 | + </tr> | |
169 | +</table> | |
170 | +</div> | |
171 | +</cacicCommon:tmpl> | ... | ... |
instalador/sql/cacic_demonstracao.sql
language/en_US/menu_adm.txt
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | ..Standard Setup|admin/configuracao.php|mainFrame||Systen standard setup |
4 | 4 | ..Server Setup|admin/config_gerais.php|mainFrame||Server module setup |
5 | 5 | ..Client Setup|admin/config_agentes.php|mainFrame||Client module setup |
6 | -..Classificar Softwares|admin/softwares/classificacao_software.php|mainFrame|| | |
6 | +..Classificar Softwares|admin/softwares/softwares_classificar.php|mainFrame|| | |
7 | 7 | ..Softwares Não Usados|admin/softwares/remover_softwares_nao_instalados.php|mainFrame|| |
8 | 8 | ..Módulos|admin/modulos.php|mainFrame||Configurações dos vários módulos disponíveis do CACIC |
9 | 9 | ..<b>Logs</b>||mainFrame|imgs/config_gerais.gif | ... | ... |
language/es_UR/menu_adm.txt
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | ..Configurar Padrones|admin/configuracao.php|mainFrame||Configuraciones Padron para el Sistema |
4 | 4 | ..Configurar Gerente|admin/config_gerais.php|mainFrame||Configuraciones del Módulo Gerente |
5 | 5 | ..Configurar Agentes|admin/config_agentes.php|mainFrame||Configuraciones del Módulo Agente |
6 | -..Clasificar Softwares|admin/softwares/classificacao_software.php|mainFrame|| | |
6 | +..Clasificar Softwares|admin/softwares/softwares_classificar.php|mainFrame|| | |
7 | 7 | ..Softwares No Usados|admin/softwares/remover_softwares_nao_instalados.php|mainFrame|| |
8 | 8 | ..Módulos|admin/modulos.php|mainFrame||Configuraciones de varios modulos disponibles de CACIC |
9 | 9 | ..<b>Logs</b>||mainFrame|imgs/config_gerais.gif | ... | ... |
language/pt_BR/language.pt_BR.inc.php
... | ... | @@ -1014,3 +1014,15 @@ pt_BR versao do internet explorer |
1014 | 1014 | pt_BR versao do pattern relatoriosinfo Versão do pattern |
1015 | 1015 | pt_BR versoes de softwares basicos relatoriosinfo Versões de softwares básicos |
1016 | 1016 | pt_BR ultimo login relatoriosinfo Último login |
1017 | +pt_BR classificacao de softwares softwares info Classificacao de softwares | |
1018 | +pt_BR classificacao de softwares conforme tipos possiveis softwares info Classificacao de softwares conforme tipos possiveis | |
1019 | +pt_BR apenas os nao classificados? softwares info Apenas os nao classificados? | |
1020 | +pt_BR paginacao geral info Paginacao | |
1021 | +pt_BR primeira geral info Primeira | |
1022 | +pt_BR primeira pagina geral info Primeira pagina | |
1023 | +pt_BR anterior geral info Anterior | |
1024 | +pt_BR pagina anterior geral info Pagina anterior | |
1025 | +pt_BR proxima geral info Proxima | |
1026 | +pt_BR proxima pagina geral info Proxima pagina | |
1027 | +pt_BR ultima geral info Ultima | |
1028 | +pt_BR ultima pagina geral info Ultima pagina | ... | ... |
language/pt_BR/menu_adm.txt
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | ..Configurar Padrões|admin/configuracao.php|mainFrame||Configurações Padrão para o Sistema |
4 | 4 | ..Configurar Gerente|admin/config_gerais.php|mainFrame||Configurações do Módulo Gerente |
5 | 5 | ..Configurar Agentes|admin/config_agentes.php|mainFrame||Configurações do Módulo Agente |
6 | -..Classificar Softwares|admin/softwares/classificacao_software.php|mainFrame|| | |
6 | +..Classificar Softwares|admin/softwares/softwares_classificar.php|mainFrame|| | |
7 | 7 | ..Softwares Não Usados|admin/softwares/remover_softwares_nao_instalados.php|mainFrame|| |
8 | 8 | ..Módulos|admin/modulos.php|mainFrame||Configurações dos vários módulos disponíveis do CACIC |
9 | 9 | ..<b>Logs</b>||mainFrame|imgs/config_gerais.gif | ... | ... |