Commit 58563967ce8748daeaf44943dc8becf629821fff
1 parent
287eb0ae
Exists in
master
and in
1 other branch
Gerente "trunk" atualizado
- corrigido script do calendário - corrigido inclusão de UO nivel 2 de etiqueta de patrimônio - corrigido relatórios de compatilhamentos, componentes de computadores, alterações de máquinas - melhorias ao apresentar ao usuário dados necessários a serem informados - melhorias no instalador para atender ao Firefox3-beta5 git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@410 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
13 changed files
with
54 additions
and
34 deletions
Show diff stats
admin/patrimonio/nivel2/incluir_nivel2.php
| ... | ... | @@ -42,7 +42,7 @@ if($_POST['gravainformacaoUON2']) { |
| 42 | 42 | te_email_responsavel_uon2, |
| 43 | 43 | nu_tel1_responsavel_uon2, |
| 44 | 44 | nu_tel2_responsavel_uon2, |
| 45 | - id_unid_organizacional_nivel1, | |
| 45 | + id_unid_organizacional_nivel1a, | |
| 46 | 46 | id_local) |
| 47 | 47 | VALUES ('". |
| 48 | 48 | $_POST['frm_nm_unid_organizacional_nivel2']."','". | ... | ... |
admin/patrimonio/nivel2/index.php
| ... | ... | @@ -81,7 +81,7 @@ $query = 'SELECT uo1.id_unid_organizacional_nivel1 as uo1_id_unid_organizaciona |
| 81 | 81 | FROM unid_organizacional_nivel1 uo1, |
| 82 | 82 | unid_organizacional_nivel2 uo2, |
| 83 | 83 | locais loc |
| 84 | - WHERE uo2.id_unid_organizacional_nivel1 = uo1.id_unid_organizacional_nivel1 '.$where.' and | |
| 84 | + WHERE uo2.id_unid_organizacional_nivel1a = uo1.id_unid_organizacional_nivel1 '.$where.' and | |
| 85 | 85 | uo2.id_local = loc.id_local |
| 86 | 86 | ORDER BY loc.sg_local, |
| 87 | 87 | uo1_nm_unid_organizacional_nivel1, | ... | ... |
include/cacic.css
include/dyncalendar.css
| ... | ... | @@ -42,4 +42,12 @@ td.dynCalendar_today { |
| 42 | 42 | border: 1px solid #c0c0c0; |
| 43 | 43 | font-family: Arial, Verdana, Helvetica, Sans-Serif; |
| 44 | 44 | font-size: 8pt; |
| 45 | +} | |
| 46 | + | |
| 47 | +.dynCalendarImg { | |
| 48 | + background: url(../imgs/dyncalendar.gif) no-repeat scroll 100% 0pt; | |
| 49 | + width: 16; | |
| 50 | + height: 16; | |
| 51 | + padding: 5px 26px 10px 0px; | |
| 52 | + cursor: pointer; | |
| 45 | 53 | } |
| 46 | 54 | \ No newline at end of file | ... | ... |
include/dyncalendar.js
| ... | ... | @@ -221,7 +221,7 @@ |
| 221 | 221 | function dynCalendar_writeHTML() |
| 222 | 222 | { |
| 223 | 223 | if (is_ie5up || is_nav6up || is_gecko) { |
| 224 | - document.write(sprintf('<a href="javascript: %s.show()"><img src="%sdynCalendar.gif" border="0" width="16" height="16" /></a>', this.objName, this.imagesPath)); | |
| 224 | + document.write(sprintf('<a href="javascript: %s.show()"><span class="dynCalendarImg"> </span></a>', this.objName, this.imagesPath)); | |
| 225 | 225 | document.write(sprintf('<div class="dynCalendar" id="%s" onmouseover="%s._mouseover(true)" onmouseout="%s._mouseover(false)"></div>', this.layerID, this.objName, this.objName)); |
| 226 | 226 | } |
| 227 | 227 | } | ... | ... |
include/selecao_locais_inc.php
| ... | ... | @@ -43,7 +43,7 @@ $result = mysql_query($query) or die('Ocorreu um erro durante a consulta à tabel |
| 43 | 43 | <td> </td> |
| 44 | 44 | <td width="40"> </td> |
| 45 | 45 | <td nowrap> </td> |
| 46 | - <td nowrap class="cabecalho_tabela">Selecionados:<br></td> | |
| 46 | + <td nowrap class="cabecalho_tabela"><span class="necessario">*</span>Selecionados:<br></td> | |
| 47 | 47 | <td nowrap> </td> |
| 48 | 48 | </tr> |
| 49 | 49 | <tr> | ... | ... |
include/selecao_so_inc.php
| ... | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | <td> </td> |
| 28 | 28 | <td width="40"> </td> |
| 29 | 29 | <td nowrap> </td> |
| 30 | - <td nowrap class="cabecalho_tabela">Selecionados:</td> | |
| 30 | + <td nowrap class="cabecalho_tabela"><span class="necessario">*</span>Selecionados:</td> | |
| 31 | 31 | <td nowrap> </td> |
| 32 | 32 | </tr> |
| 33 | 33 | <tr> | ... | ... |
instalador/templates/install_navbar.tmpl
| ... | ... | @@ -35,8 +35,8 @@ |
| 35 | 35 | <tr class="navbar"> |
| 36 | 36 | <td colspan=2> |
| 37 | 37 | <div class="navbar-btn"> |
| 38 | - <div class="navbar-btn-right"><div class="anterior"><a onclick="submitForm( installForm, 'preinstall' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></div></div> | |
| 39 | - <div class="navbar-btn-left"><div class="proximo"><a onclick="submitForm( installForm, 'checkinstall' );" title="{KCIQ_LICENSE_AGREE_MSG}">{KCIQ_LICENSE_AGREE}</a></div></div> | |
| 38 | + <span class="navbar-btn-right"><span class="anterior"><a onclick="submitForm( installForm, 'preinstall' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></span></span> | |
| 39 | + <span class="navbar-btn-left"><span class="proximo"><a onclick="submitForm( installForm, 'checkinstall' );" title="{KCIQ_LICENSE_AGREE_MSG}">{KCIQ_LICENSE_AGREE}</a></span></span> | |
| 40 | 40 | </div> |
| 41 | 41 | </td> |
| 42 | 42 | </tr> |
| ... | ... | @@ -74,11 +74,11 @@ |
| 74 | 74 | <tr class="navbar"> |
| 75 | 75 | <td colspan=2> |
| 76 | 76 | <div class="navbar-btn"> |
| 77 | - <div class="navbar-btn-left"><div class="verificar"><a onclick="submitForm( installForm, 'checkinstall' );" title="{KCIQ_CHECK}">{KCIQ_CHECK}</a></div></div> | |
| 78 | - <div class="navbar-btn-right"><div class="anterior"><a onclick="submitForm( installForm, 'licenca' );" title="<cacicInstall:var name="copiedVar" copyFrom="tmplNavBarLicenca.KCIQ_PREVIOUS"/>"><cacicInstall:var name="copiedVar" copyFrom="tmplNavBarLicenca.KCIQ_PREVIOUS"/></a></div></div> | |
| 77 | + <span class="navbar-btn-left"><span class="verificar"><a onclick="submitForm( installForm, 'checkinstall' );" title="{KCIQ_CHECK}">{KCIQ_CHECK}</a></span></span> | |
| 78 | + <span class="navbar-btn-right"><span class="anterior"><a onclick="submitForm( installForm, 'licenca' );" title="<cacicInstall:var name="copiedVar" copyFrom="tmplNavBarLicenca.KCIQ_PREVIOUS"/>"><cacicInstall:var name="copiedVar" copyFrom="tmplNavBarLicenca.KCIQ_PREVIOUS"/></a></span></span> | |
| 79 | 79 | <cacicInstall:tmpl name="tmplNavBarCheckInstallContinue" type="condition" conditionvar="continuar"> |
| 80 | 80 | <cacicInstall:sub condition="1"> |
| 81 | - <div class="navbar-btn-left"><div class="proximo"><a onclick="submitForm( installForm, 'configuration' );" title="<cacicInstall:var name="copiedVar" copyFrom="tmplNavBarPreInstall.KCIQ_NEXT"/>"><cacicInstall:var name="copiedVar" copyFrom="tmplNavBarPreInstall.KCIQ_NEXT"/></a></div></div> | |
| 81 | + <span class="navbar-btn-left"><span class="proximo"><a onclick="submitForm( installForm, 'configuration' );" title="<cacicInstall:var name="copiedVar" copyFrom="tmplNavBarPreInstall.KCIQ_NEXT"/>"><cacicInstall:var name="copiedVar" copyFrom="tmplNavBarPreInstall.KCIQ_NEXT"/></a></span></span> | |
| 82 | 82 | </cacicInstall:sub> |
| 83 | 83 | </cacicInstall:tmpl> |
| 84 | 84 | </div> |
| ... | ... | @@ -243,8 +243,8 @@ |
| 243 | 243 | <tr class="navbar"> |
| 244 | 244 | <td colspan=2> |
| 245 | 245 | <div class="navbar-btn"> |
| 246 | - <div class="navbar-btn-right"><div class="anterior"><a onclick="submitForm( installForm, 'checkinstall' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></div></div> | |
| 247 | - <div class="navbar-btn-left"><div class="proximo"><a onclick="submitForm( installForm, 'adminSetup' );" title="{KCIQ_NEXT}">{KCIQ_NEXT}</a></div></div> | |
| 246 | + <span class="navbar-btn-right"><span class="anterior"><a onclick="submitForm( installForm, 'checkinstall' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></span></span> | |
| 247 | + <span class="navbar-btn-left"><span class="proximo"><a onclick="submitForm( installForm, 'adminSetup' );" title="{KCIQ_NEXT}">{KCIQ_NEXT}</a></span></span> | |
| 248 | 248 | </div> |
| 249 | 249 | </td> |
| 250 | 250 | </tr> |
| ... | ... | @@ -413,8 +413,8 @@ |
| 413 | 413 | <tr class="navbar"> |
| 414 | 414 | <td colspan=2> |
| 415 | 415 | <div class="navbar-btn"> |
| 416 | - <div class="navbar-btn-right"><div class="anterior"><a onclick="submitForm( installForm, 'configuration' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></div></div> | |
| 417 | - <div class="navbar-btn-left"><div class="proximo"><a onclick="submitForm( installForm, 'FtpVerify' );" title="{KCIQ_NEXT}">{KCIQ_NEXT}</a></div></div> | |
| 416 | + <span class="navbar-btn-right"><span class="anterior"><a onclick="submitForm( installForm, 'configuration' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></span></span> | |
| 417 | + <span class="navbar-btn-left"><span class="proximo"><a onclick="submitForm( installForm, 'FtpVerify' );" title="{KCIQ_NEXT}">{KCIQ_NEXT}</a></span></span> | |
| 418 | 418 | </div> |
| 419 | 419 | </td> |
| 420 | 420 | </tr> |
| ... | ... | @@ -519,8 +519,8 @@ |
| 519 | 519 | <tr class="navbar"> |
| 520 | 520 | <td colspan=2> |
| 521 | 521 | <div class="navbar-btn"> |
| 522 | - <div class="navbar-btn-right"><div class="anterior"><a onclick="submitForm( installForm, 'FtpVerify' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></div></div> | |
| 523 | - <div class="navbar-btn-left"><div class="proximo"><a onclick="javascript:document.location.href='{CACIC_URL}';" title="{KCIQ_FINISH_TITLE}">{KCIQ_FINISH}</a></div></div> | |
| 522 | + <span class="navbar-btn-right"><span class="anterior"><a onclick="submitForm( installForm, 'FtpVerify' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></span></span> | |
| 523 | + <span class="navbar-btn-left"><span class="proximo"><a onclick="javascript:document.location.href='{CACIC_URL}';" title="{KCIQ_FINISH_TITLE}">{KCIQ_FINISH}</a></span></span> | |
| 524 | 524 | </div> |
| 525 | 525 | </td> |
| 526 | 526 | </tr> | ... | ... |
instalador/templates/install_navbarftpverify.tmpl
| ... | ... | @@ -19,8 +19,8 @@ |
| 19 | 19 | <tr class="navbar"> |
| 20 | 20 | <td colspan=2> |
| 21 | 21 | <div class="navbar-btn"> |
| 22 | - <div class="navbar-btn-right"><div class="anterior"><a onclick="submitForm( installForm, 'adminSetup' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></div></div> | |
| 23 | - <div class="navbar-btn-left"><div class="proximo"><a onclick="submitForm( installForm, 'Finish' );" title="{KCIQ_NEXT}">{KCIQ_NEXT}</a></div></div> | |
| 22 | + <span class="navbar-btn-right"><span class="anterior"><a onclick="submitForm( installForm, 'adminSetup' );" title="{KCIQ_PREVIOUS}">{KCIQ_PREVIOUS}</a></span></span> | |
| 23 | + <span class="navbar-btn-left"><span class="proximo"><a onclick="submitForm( installForm, 'Finish' );" title="{KCIQ_NEXT}">{KCIQ_NEXT}</a></span></span> | |
| 24 | 24 | </div> |
| 25 | 25 | </td> |
| 26 | 26 | </tr> | ... | ... |
relatorios/alteracoes_hardware/index.php
| ... | ... | @@ -27,7 +27,7 @@ else { // Inserir regras para outras verificações (ex: permissões do usuário)! |
| 27 | 27 | $id_acao = 'cs_coleta_hardware'; |
| 28 | 28 | require_once('../../include/inicio_relatorios_inc.php'); |
| 29 | 29 | ?> |
| 30 | - <script src="../../sniffer.js" type="text/javascript" language="javascript"></script> | |
| 30 | + <script src="../../include/sniffer.js" type="text/javascript" language="javascript"></script> | |
| 31 | 31 | <script src="../../include/dyncalendar.js" type="text/javascript" language="javascript"></script> |
| 32 | 32 | <link href="../../include/dyncalendar.css" media="screen" rel="stylesheet"> |
| 33 | 33 | |
| ... | ... | @@ -48,7 +48,7 @@ require_once('../../include/inicio_relatorios_inc.php'); |
| 48 | 48 | </td> |
| 49 | 49 | </tr> |
| 50 | 50 | </table> |
| 51 | -<form action="rel_alteracoes_hardware.php" target="_blank" method="post" ENCTYPE="multipart/form-data" name="forma" onsubmit="return valida_form()"> | |
| 51 | +<form action="rel_alteracoes_hardware.php" target="_blank" method="post" ENCTYPE="multipart/form-data" name="form1" onsubmit="return valida_form()"> | |
| 52 | 52 | <table width="90%" border="0" align="center" cellpadding="5" cellspacing="1"> |
| 53 | 53 | <tr> |
| 54 | 54 | <? | ... | ... |
relatorios/compartilhamentos/rel_compartilhamentos.php
| ... | ... | @@ -137,9 +137,10 @@ $query = "SELECT DISTINCT compartilhamentos.id_so, |
| 137 | 137 | compartilhamentos.id_so = computadores.id_so) AND |
| 138 | 138 | compartilhamentos.id_so IN ($so_selecionados) AND |
| 139 | 139 | nm_dir_compart <> '' |
| 140 | - $query_redes | |
| 140 | + $query_redes | |
| 141 | + GROUP BY compartilhamentos.id_so,compartilhamentos.te_node_address | |
| 141 | 142 | ORDER BY computadores.te_nome_computador ASC "; |
| 142 | -echo $query . '<br>'; | |
| 143 | + | |
| 143 | 144 | $resultado = mysql_query($query) or die('Erro no select '. mysql_error().' ou sua sessão expirou!'); |
| 144 | 145 | |
| 145 | 146 | while ($linha = mysql_fetch_array($resultado)) | ... | ... |
relatorios/hardware/index.php
| ... | ... | @@ -33,7 +33,9 @@ |
| 33 | 33 | </tr> |
| 34 | 34 | <tr> |
| 35 | 35 | <td> |
| 36 | - </td> | |
| 36 | + <span class="necessario">*</span> | |
| 37 | + Campos obrigatórios | |
| 38 | + </td> | |
| 37 | 39 | </tr> |
| 38 | 40 | </table> |
| 39 | 41 | <form action="rel_hardware.php" target="_blank" method="post" ENCTYPE="multipart/form-data" name="forma" onsubmit="return valida_form()"> |
| ... | ... | @@ -112,8 +114,9 @@ |
| 112 | 114 | ?> |
| 113 | 115 | <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1"> |
| 114 | 116 | <tr> |
| 115 | - <td class="label">Selecione | |
| 116 | - as configurações de hardware que deseja exibir:</td> | |
| 117 | + <td class="label"> | |
| 118 | + Selecione as configurações de hardware que deseja exibir: | |
| 119 | + </td> | |
| 117 | 120 | </tr> |
| 118 | 121 | <tr> |
| 119 | 122 | <td height="1" bgcolor="#333333"></td> |
| ... | ... | @@ -126,7 +129,7 @@ |
| 126 | 129 | <td> </td> |
| 127 | 130 | <td width="40"> </td> |
| 128 | 131 | <td nowrap> </td> |
| 129 | - <td nowrap class="cabecalho_tabela">Selecionados:</td> | |
| 132 | + <td nowrap class="cabecalho_tabela"><span class="necessario">*</span>Selecionados:</td> | |
| 130 | 133 | <td nowrap> </td> |
| 131 | 134 | </tr> |
| 132 | 135 | <tr> | ... | ... |
relatorios/hardware/rel_hardware.php
| ... | ... | @@ -103,9 +103,9 @@ else |
| 103 | 103 | { |
| 104 | 104 | $locais_selecionados .= ",'" . $_SESSION["list12"][$i] . "'"; |
| 105 | 105 | } |
| 106 | - $query_redes = 'AND a.id_ip_rede = redes.id_ip_rede AND | |
| 107 | - redes.id_local IN ('. $locais_selecionados .') AND | |
| 108 | - redes.id_local = locais.id_local '; | |
| 106 | + $query_redes = ' AND a.id_ip_rede = redes.id_ip_rede '; | |
| 107 | + $query_redes .= ' AND redes.id_local IN ('. $locais_selecionados .')'; | |
| 108 | + $query_redes .= ' AND redes.id_local = locais.id_local '; | |
| 109 | 109 | $select = ' ,sg_local as Local '; |
| 110 | 110 | $from = ' ,redes,locais '; |
| 111 | 111 | } |
| ... | ... | @@ -127,7 +127,6 @@ for( $i = 0; $i < count($_SESSION["list6"] ); $i++ ) |
| 127 | 127 | // Aqui substitui todas as strings \ por vazio que a variável $campos_hardware retorna |
| 128 | 128 | $campos_hardware = str_replace('\\', '', $campos_hardware); |
| 129 | 129 | |
| 130 | -echo $campos_hardware . '<br>'; | |
| 131 | 130 | if ($_GET['orderby']) { $orderby = $_GET['orderby']; } |
| 132 | 131 | else { $orderby = '3'; } //por Nome Comp. |
| 133 | 132 | $query = ' SELECT distinct a.te_node_address, |
| ... | ... | @@ -135,15 +134,16 @@ else { $orderby = '3'; } //por Nome Comp. |
| 135 | 134 | a.te_nome_computador as "Nome Comp.", |
| 136 | 135 | sg_so as "S.O.", |
| 137 | 136 | a.te_ip as "IP"' . |
| 138 | - $select .' | |
| 137 | + $select . | |
| 138 | + ($campos_hardware?','.$campos_hardware:"") . | |
| 139 | + ' | |
| 139 | 140 | FROM so LEFT JOIN computadores a ON (a.id_so = so.id_so) '. |
| 140 | 141 | $from . ' |
| 141 | 142 | WHERE TRIM(a.te_nome_computador) <> "" AND |
| 142 | 143 | a.id_so IN ('. $so_selecionados .') '. |
| 143 | 144 | $query_redes .' |
| 144 | 145 | ORDER BY ' . $orderby; |
| 145 | -// $campos_hardware . | |
| 146 | -echo $query . '<br>'; | |
| 146 | + | |
| 147 | 147 | $result = mysql_query($query) or die('Erro no select ou sua sessão expirou!'); |
| 148 | 148 | |
| 149 | 149 | $cor = 0; | ... | ... |