Commit 9e12f097ec8f7d05e76178457ed715c94854bff2

Authored by Adriano Vieira
1 parent 9b5d279b
Exists in master and in 1 other branch 3.1

- alteração do número de versão

- exclusão de arquivos desnecessários

git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@482 fecfc0c7-e812-0410-ae72-849f08638ee7
admin/patrimonio/incluir_nivel1.php
... ... @@ -1,177 +0,0 @@
1   -<?
2   - /*
3   - Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
4   -
5   - Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
6   -
7   - O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
8   - publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
9   -
10   - Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
11   - MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
12   -
13   - Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software
14   - Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15   - */
16   -session_start();
17   -require_once('../../../include/library.php');
18   -AntiSpy('1,2,3'); // Permitido somente a estes cs_nivel_administracao...
19   -// 1 - Administração
20   -// 2 - Gestão Central
21   -// 3 - Supervisão
22   -
23   -if($grava_alteracao_uon1)
24   - {
25   - Conecta_bd_cacic();
26   -
27   - $frm_nm_unid_organizacional_nivel1 = $_POST['frm_nm_unid_organizacional_nivel1'];
28   - if ($frm_nm_unid_organizacional_nivel1)
29   - {
30   - $query = "INSERT INTO unid_organizacional_nivel1
31   - (nm_unid_organizacional_nivel1,
32   - te_endereco_uon1,
33   - te_bairro_uon1,
34   - te_cidade_uon1,
35   - te_uf_uon1,
36   - nm_responsavel_uon1,
37   - te_email_responsavel_uon1,
38   - nu_tel1_responsavel_uon1,
39   - nu_tel2_responsavel_uon1)
40   - VALUES ('$frm_nm_unid_organizacional_nivel1',
41   - '$frm_te_endereco_uon1',
42   - '$frm_te_bairro_uon1',
43   - '$frm_te_cidade_uon1',
44   - '$frm_te_uf_uon1',
45   - '$frm_nm_responsavel_uon1',
46   - '$frm_te_email_responsavel_uon1',
47   - '$frm_nu_tel1_responsavel_uon1',
48   - '$frm_nu_tel2_responsavel_uon1')";
49   - $result = mysql_query($query) or die ('Insert falhou ou sua sessão expirou!');
50   - GravaLog('INS',$_SERVER['SCRIPT_NAME'],'unid_organizacional_nivel1');
51   - if (!atualiza_configuracoes_uonx('1'))
52   - {
53   - echo mensagem('Falha na atualização de configurações');
54   - }
55   - else
56   - {
57   - header ("Location: ../../../include/operacao_ok.php?chamador=../admin/patrimonio/nivel1/index.php&tempo=1");
58   - }
59   - }
60   - else
61   - {
62   - header ("Location: ../../../include/nenhuma_operacao_realizada.php?chamador=../admin/patrimonio/nivel1/index.php&tempo=1");
63   - }
64   - ?>
65   - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
66   - <html>
67   - <?
68   - }
69   -else
70   - {
71   -?>
72   -<head>
73   -<link rel="stylesheet" type="text/css" href="../../../include/cacic.css">
74   -<title></title>
75   -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
76   -<SCRIPT LANGUAGE="JavaScript">
77   -function valida_form()
78   - {
79   - if (document.form.frm_nm_unid_organizacional_nivel1.value == "")
80   - {
81   - alert("Por favor, preencha campo "+ document.form.etiqueta1.value+".");
82   - document.form.frm_nm_unid_organizacional_nivel1.focus();
83   - return false;
84   - }
85   - return true;
86   - }
87   -function SetaCampo()
88   - {
89   - document.form.frm_nm_unid_organizacional_nivel1.focus();
90   - }
91   -
92   -</script>
93   -</head>
94   -
95   -<body background="../../../imgs/linha_v.gif" onLoad="Javascript: SetaCampo('frm_nm_unid_organizacional_nivel1')">
96   -<script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script>
97   -<table width="90%" border="0" align="center">
98   - <tr>
99   - <td class="cabecalho">Inclus&atilde;o de <? echo $_SESSION['etiqueta1'];?> (U. O. N&iacute;vel
100   - 1)</td>
101   - </tr>
102   - <tr>
103   - <td>&nbsp;</td>
104   - </tr>
105   -</table>
106   -<form method="post" ENCTYPE="multipart/form-data" name="form" onSubmit="return valida_form()">
107   - <table width="61%" border="0" align="center" cellpadding="2" cellspacing="2">
108   - <tr>
109   - <td nowrap>&nbsp;</td>
110   - <td colspan="3">&nbsp;</td>
111   - </tr>
112   - <tr>
113   - <td class="label"><div align="left"><? echo $_SESSION['etiqueta1'];?>:</td>
114   - <td colspan="3"> <div align="left">
115   - <input name="frm_nm_unid_organizacional_nivel1" type="text" id="frm_nm_unid_organizacional_nivel1" size="60" maxlength="50" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
116   - </div></td>
117   - </tr>
118   - <tr>
119   - <td class="label"><div align="left">Endere&ccedil;o:</div></td>
120   - <td colspan="3"> <div align="left">
121   - <input name="frm_te_endereco_uon1" type="text" id="frm_te_endereco_uon1" size="60" maxlength="80" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
122   - </div></td>
123   - </tr>
124   - <tr>
125   - <td class="label"><div align="left">Bairro:</div></td>
126   - <td colspan="3"> <div align="left">
127   - <input name="frm_te_bairro_uon1" type="text" id="frm_te_bairro_uon1" size="60" maxlength="30" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
128   - </div></td>
129   - </tr>
130   - <tr>
131   - <td class="label">Cidade:</td>
132   - <td><input name="frm_te_cidade_uon1" type="text" id="frm_te_cidade_uon1" size="20" maxlength="50" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
133   - </td>
134   - <td>&nbsp;</td>
135   - <td class="label"><div align="right">UF:
136   - <input name="frm_te_uf_uon1" type="text" id="frm_te_uf_uon1" size="2" maxlength="2" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
137   - </div></td>
138   - </tr>
139   - <tr>
140   - <td class="label">Respons&aacute;vel:</td>
141   - <td colspan="3"><div align="left"><input name="frm_nm_responsavel_uon1" type="text" id="frm_nm_responsavel_uon1" size="60" maxlength="80" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
142   - </div></td>
143   - </tr>
144   - <tr>
145   - <td class="label">E-mail:</td>
146   - <td colspan="3"><div align="left"><input name="frm_te_email_responsavel_uon1" type="text" id="frm_te_email_responsavel_uon1" size="60" maxlength="50" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
147   - </div></td>
148   - </tr>
149   - <tr>
150   - <td class="label">Tel. 1:</td>
151   - <td><div align="left"><input name="frm_nu_tel1_responsavel_uon1" type="text" id="frm_nu_tel1_responsavel_uon1" size="20" maxlength="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
152   - </div></td>
153   - <td nowrap class="label"><div align="right">Tel. 2:</div></td>
154   - <td><div align="right"><input name="frm_nu_tel2_responsavel_uon1" type="text" id="frm_nu_telefone2" size="20" maxlength="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
155   - </div></td>
156   - </tr>
157   - <tr>
158   - <td>&nbsp;</td>
159   - <td><div align="left"></div></td>
160   - <td>&nbsp;</td>
161   - <td><div align="right"></div></td>
162   - </tr>
163   - </table>
164   - <p align="center">
165   - <?
166   - $v_frase = "Confirma('Confirma Inclusão de ".$_SESSION['etiqueta1']."?')";
167   - echo '<input name="grava_alteracao_uon1" type="submit" id="grava_alteracao_uon1" value=" Gravar Informa&ccedil;&otilde;es " onClick="return '.$v_frase.'";>';
168   - ?>
169   - </p>
170   -</form>
171   -<p>
172   - <?
173   -}
174   -?>
175   -</p>
176   -</body>
177   -</html>
178 0 \ No newline at end of file
admin/patrimonio/incluir_nivel2.php
... ... @@ -1,308 +0,0 @@
1   -<?
2   - /*
3   - Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
4   -
5   - Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
6   -
7   - O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
8   - publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
9   -
10   - Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
11   - MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
12   -
13   - Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software
14   - Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15   - */
16   -
17   -session_start();
18   -include_once "../../../include/library.php";
19   -
20   -AntiSpy();
21   -if($_POST['gravainformacaoUON2'])
22   - {
23   - Conecta_bd_cacic();
24   -
25   - $frm_nm_unid_organizacional_nivel2 = $_POST['frm_nm_unid_organizacional_nivel2'];
26   - if ($frm_nm_unid_organizacional_nivel2)
27   - {
28   - $query = " INSERT
29   - INTO unid_organizacional_nivel2
30   - (nm_unid_organizacional_nivel2,
31   - te_endereco_uon2,
32   - te_bairro_uon2,
33   - te_cidade_uon2,
34   - te_uf_uon2,
35   - nm_responsavel_uon2,
36   - te_email_responsavel_uon2,
37   - nu_tel1_responsavel_uon2,
38   - nu_tel2_responsavel_uon2,
39   - id_unid_organizacional_nivel1a,
40   - id_local)
41   - VALUES ('".
42   - $_POST['frm_nm_unid_organizacional_nivel2']."','".
43   - $_POST['frm_te_endereco_uon2']."','".
44   - $_POST['frm_te_bairro_uon2']."','".
45   - $_POST['frm_te_cidade_uon2']."','".
46   - $_POST['frm_te_uf_uon2']."','".
47   - $_POST['frm_nm_responsavel_uon2']."','".
48   - $_POST['frm_te_email_responsavel_uon2']."','".
49   - $_POST['frm_nu_tel1_responsavel_uon2']."','".
50   - $_POST['frm_nu_tel2_responsavel_uon2']."',".
51   - $_POST['frm_id_unid_organizacional_nivel1a'].",".
52   - $_POST['frm_id_local'].")";
53   - $result = mysql_query($query) or die ('1-Insert falhou ou sua sessão expirou!');
54   - GravaLog('INS',$_SERVER['SCRIPT_NAME'],'unid_organizacional_nivel2');
55   - if (!atualiza_configuracoes_uonx('2'))
56   - {
57   - echo mensagem('Falha na atualização de configurações');
58   - }
59   - else
60   - {
61   - header ("Location: ../../../include/operacao_ok.php?chamador=../admin/patrimonio/nivel2/index.php&tempo=1");
62   - }
63   - }
64   - else
65   - {
66   - header ("Location: ../../../include/nenhuma_operacao_realizada.php?chamador=../admin/patrimonio/nivel2/index.php&tempo=1");
67   - }
68   -
69   -?>
70   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
71   -<html>
72   -<?
73   -}
74   -else
75   -{
76   -
77   -?>
78   -<head>
79   -<link rel="stylesheet" type="text/css" href="../../../include/cacic.css">
80   -
81   -<title></title>
82   -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
83   -<SCRIPT LANGUAGE="JavaScript">
84   -function ListarUON1a(ObjLocal)
85   - {
86   - var frm_id_unid_organizacional_nivel1a =window.document.forms[0].frm_id_unid_organizacional_nivel1a;
87   - var contaUON1a = 0;
88   -
89   - frm_id_unid_organizacional_nivel1a.options.length = 0;
90   - for (j=0;j<document.all.listaUON1a.options.length;j++)
91   - {
92   - if (document.all.listaUON1a.options[j].id == ObjLocal.options[ObjLocal.options.selectedIndex].value)
93   - {
94   - frm_id_unid_organizacional_nivel1a.options[contaUON1a] = new Option(document.all.listaUON1a.options[j].text);
95   - frm_id_unid_organizacional_nivel1a.options[contaUON1a].id = document.all.listaUON1a.options[j].id;
96   - frm_id_unid_organizacional_nivel1a.options[contaUON1a].value = document.all.listaUON1a.options[j].value;
97   - contaUON1a ++;
98   - }
99   - }
100   - if (frm_id_unid_organizacional_nivel1a.options.length > 0)
101   - document.getElementById("frm_id_unid_organizacional_nivel1a").disabled = false;
102   -
103   - return true;
104   -
105   - }
106   -
107   -function valida_form()
108   - {
109   - if (document.form.frm_id_unid_organizacional_nivel1a.value == 0)
110   - {
111   - alert("Por favor, selecione "+ document.form.etiqueta1a.value+".");
112   - document.form.frm_id_unid_organizacional_nivel1a.focus();
113   - return false;
114   - }
115   - if (document.form.frm_nm_unid_organizacional_nivel2.value == "")
116   - {
117   - alert("Por favor, preencha campo "+ document.form.etiqueta2.value+".");
118   - document.form.frm_nm_unid_organizacional_nivel2.focus();
119   - return false;
120   - }
121   - return true;
122   - }
123   -</script>
124   -</head>
125   -<?
126   -$querySEL1 = 'SELECT uo1a.id_unid_organizacional_nivel1a,
127   - uo1a.nm_unid_organizacional_nivel1a
128   - FROM unid_organizacional_nivel1 uo1a
129   - ORDER BY uo1a.nm_unid_organizacional_nivel1a';
130   -
131   -Conecta_bd_cacic();
132   -$result_sel1 = mysql_query($querySEL1);
133   -
134   -?>
135   -<body background="../../../imgs/linha_v.gif" onLoad="Javascript: SetaCampo('frm_id_local');">
136   -<div id="LayerDados" style="position:absolute; width:200px; height:115px; z-index:1; left: 100px; top: 0px; visibility: hidden">
137   -<?
138   -$queryUON1a = "SELECT UON1a.id_unid_organizacional_nivel1,
139   - UON1a.id_unid_organizacional_nivel1a,
140   - UON1a.nm_unid_organizacional_nivel1a
141   - FROM unid_organizacional_nivel1a UON1a
142   - ORDER BY UON1a.nm_unid_organizacional_nivel1a";
143   -$resultUON1a = mysql_query($queryUON1a) or die('Select Impossível na tabela UON1a');
144   -
145   -$intIdUON1a = 0;
146   -
147   -while ($rowUON1a = mysql_fetch_array($resultUON1a))
148   - $strUON1a .= '<option id="'.$rowUON1a['id_unid_organizacional_nivel1'].'" value="'.$rowUON1a['id_unid_organizacional_nivel1a'].'">'.$rowUON1a['nm_unid_organizacional_nivel1a'].'</option>';
149   -
150   -$arrUON1a = explode('#',$strUON1a);
151   -
152   -echo '<select name="listaUON1a">';
153   -for ($i=0; $i < count($arrUON1a);$i++)
154   - {
155   - echo $arrUON1a[$i];
156   - }
157   -echo '</select>';
158   -
159   -?>
160   -</div>
161   -<script language="JavaScript" type="text/javascript" src="../../../include/cacic.js"></script>
162   -<table width="90%" border="0" align="center">
163   - <tr>
164   - <td class="cabecalho">Inclus&atilde;o de <? echo $_SESSION['etiqueta2'];?> (U. O. N&iacute;vel
165   - 2)</td>
166   - </tr>
167   - <tr>
168   - <td>&nbsp;</td>
169   - </tr>
170   -</table>
171   -<?
172   -Conecta_bd_cacic();
173   -
174   -$qry_locais = "SELECT id_local,
175   - sg_local
176   - FROM locais
177   - ORDER BY sg_local";
178   -
179   -$result_locais = mysql_query($qry_locais) or die ('2-Select em tabela locais falhou ou sua sessão expirou!');
180   -
181   -$qry_UON1 = "SELECT id_unid_organizacional_nivel1,
182   - nm_unid_organizacional_nivel1
183   - FROM unid_organizacional_nivel1
184   - ORDER BY nm_unid_organizacional_nivel1";
185   -
186   -$result_UON1 = mysql_query($qry_UON1) or die ('2.1-Select em tabela UON1 falhou ou sua sessão expirou!');
187   -
188   -?>
189   -
190   -<form method="post" ENCTYPE="multipart/form-data" name="form" onSubmit="return valida_form()">
191   - <table width="61%" border="0" align="center" cellpadding="2" cellspacing="2">
192   - <tr>
193   - <td nowrap class="label">Local:</td>
194   - <td colspan="3"><select name="frm_id_local" id="frm_id_local" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
195   - <?
196   - echo '<option value="0" ';
197   - echo ($_SESSION['cs_nivel_administracao']<>1?' selected ':'');
198   - echo '>Selecione Local</option>';
199   - while($row = mysql_fetch_row($result_locais))
200   - echo '<option value="'.$row[0].'">'.$row[1].'</option>';
201   - ?>
202   - </select></td></tr>
203   - <tr>
204   - <td nowrap class="label"><? echo $_SESSION['etiqueta1']; ?>:</td>
205   - <td colspan="3"> <div align="left">
206   - <select name="frm_id_unid_organizacional_nivel1" id="frm_id_unid_organizacional_nivel1" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" onChange="ListarUON1a(this)">
207   - <option value="0" selected>Selecione <? echo $_SESSION['etiqueta1']; ?></option>
208   - <?
209   -if(mysql_num_rows($result_UON1))
210   - {
211   - while($row = mysql_fetch_array($result_UON1))
212   - {
213   - echo "<option value='". $row['id_unid_organizacional_nivel1'] . "'>".$row['nm_unid_organizacional_nivel1'].'</option>';
214   - }
215   - }
216   - ?>
217   - </select>
218   - </div></td>
219   - </tr>
220   -
221   - <tr>
222   - <td nowrap class="label"><? echo $_SESSION['etiqueta1a']; ?>:</td>
223   - <td colspan="3"> <div align="left">
224   - <select name="frm_id_unid_organizacional_nivel1a" id="frm_id_unid_organizacional_nivel1a" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" disabled="disabled">
225   - <option value="0" selected>Selecione <? echo $_SESSION['etiqueta1a']; ?></option>
226   - <?
227   -if(mysql_num_rows($result_sel1))
228   - {
229   - while($row = mysql_fetch_array($result_sel1))
230   - {
231   - echo "<option value='". $row['id_unid_organizacional_nivel1a'] . "'>".$row['nm_unid_organizacional_nivel1a'].'</option>';
232   - }
233   - }
234   - ?>
235   - </select>
236   - </div></td>
237   - </tr>
238   - <tr>
239   - <td nowrap class="label"><? echo $_SESSION['etiqueta2']; ?>:</td>
240   - <td colspan="3"> <div align="left">
241   - <input name="frm_nm_unid_organizacional_nivel2" type="text" id="frm_nm_unid_organizacional_nivel2" size="60" maxlength="50" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
242   - </div></td>
243   - </tr>
244   - <tr>
245   - <td class="label"><div align="left">Endere&ccedil;o:</div></td>
246   - <td colspan="3"> <div align="left">
247   - <input name="frm_te_endereco_uon2" type="text" id="frm_te_endereco_uon2" size="60" maxlength="80" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
248   - </div></td>
249   - </tr>
250   - <tr>
251   - <td class="label"><div align="left">Bairro:</div></td>
252   - <td colspan="3"> <div align="left">
253   - <input name="frm_te_bairro_uon2" type="text" id="frm_te_bairro_uon2" size="60" maxlength="30" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
254   - </div></td>
255   - </tr>
256   - <tr>
257   - <td class="label">Cidade:</td>
258   - <td><input name="frm_te_cidade_uon2" type="text" id="frm_te_cidade_uon2" size="20" maxlength="50" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
259   - </td>
260   - <td>&nbsp;</td>
261   - <td class="label"><div align="right">UF:
262   - <input name="frm_te_uf_uon2" type="text" id="frm_te_uf_uon2" size="2" maxlength="2" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
263   - </div></td>
264   - </tr>
265   - <tr>
266   - <td class="label">Respons&aacute;vel:</td>
267   - <td colspan="3"><div align="left">
268   - <input name="frm_nm_responsavel_uon2" type="text" id="frm_nm_responsavel_uon2" size="60" maxlength="80" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
269   - </div></td>
270   - </tr>
271   - <tr>
272   - <td class="label">E-mail:</td>
273   - <td colspan="3"><div align="left">
274   - <input name="frm_te_email_responsavel_uon2" type="text" id="frm_te_email_responsavel_uon2" size="60" maxlength="50" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
275   - </div></td>
276   - </tr>
277   - <tr>
278   - <td class="label">Tel. 1:</td>
279   - <td><div align="left">
280   - <input name="frm_nu_tel1_responsavel_uon2" type="text" id="frm_nu_tel1_responsavel_uon2" size="20" maxlength="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
281   - </div></td>
282   - <td nowrap class="label"><div align="right">Tel. 2:</div></td>
283   - <td><div align="right">
284   - <input name="frm_nu_tel2_responsavel_uon2" type="text" id="frm_nu_telefone2" size="20" maxlength="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
285   - </div></td>
286   - </tr>
287   - <tr>
288   - <td><div align="left"></div></td>
289   - <td>&nbsp;</td>
290   - <td><div align="right"></div></td>
291   - </tr>
292   - </table>
293   - <p align="center">
294   -
295   - <?
296   - $v_frase = "Confirma('Confirma Inclusão de ".$_SESSION['etiqueta2']."?')";
297   - echo '<input name="gravainformacaoUON2" type="submit" value=" Gravar Informa&ccedil;&otilde;es "'. ($_SESSION['cs_nivel_administracao']<>1?'disabled':'') .' onClick="return '.$v_frase.'";>';
298   - ?>
299   -
300   - </p>
301   -</form>
302   -<p>
303   - <?
304   -}
305   -?>
306   -</p>
307   -</body>
308   -</html>
admin/patrimonio/index.php
... ... @@ -1,156 +0,0 @@
1   -<?
2   - /*
3   - Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
4   -
5   - Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
6   -
7   - O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
8   - publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
9   -
10   - Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
11   - MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
12   -
13   - Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software
14   - Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15   - */
16   -session_start();
17   -
18   -include_once "../../../include/library.php";
19   -
20   -AntiSpy();
21   -
22   -if ($_POST['incluirUON1'])
23   - {
24   - header ("Location: incluir_nivel1.php");
25   - break;
26   - }
27   -
28   -Conecta_bd_cacic();
29   -
30   -$queryCONFIG = "SELECT id_etiqueta,
31   - te_etiqueta,
32   - te_plural_etiqueta
33   - FROM patrimonio_config_interface patcon
34   - WHERE patcon.id_etiqueta in ('".'etiqueta1'."','".'etiqueta2'."')
35   - ORDER BY id_etiqueta";
36   -
37   -$resultCONFIG = mysql_query($queryCONFIG);
38   -$row = mysql_fetch_array($resultCONFIG);
39   -session_register('etiqueta1');
40   -session_register('plural_etiqueta1');
41   -$_SESSION['etiqueta1'] = $row['te_etiqueta'];
42   -$_SESSION['plural_etiqueta1'] = $row['te_plural_etiqueta'];
43   -
44   -$query = 'SELECT id_unid_organizacional_nivel1,nm_unid_organizacional_nivel1
45   - FROM unid_organizacional_nivel1
46   - ORDER BY nm_unid_organizacional_nivel1';
47   -$result = mysql_query($query);
48   -
49   -?>
50   -
51   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
52   -<html>
53   -<head>
54   -<link rel="stylesheet" type="text/css" href="../../../include/cacic.css">
55   -<body background="../../../imgs/linha_v.gif">
56   -<script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script>
57   -<title>Cadastro de U. O. N&iacute;vel 1</title>
58   -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
59   -</head>
60   -<form name="form1" method="post" action="">
61   -<table width="90%" border="0" align="center">
62   - <tr>
63   - <td class="cabecalho">Cadastro de <? echo $_SESSION['plural_etiqueta1'];?> (U.
64   - O. N&iacute;vel 1)</td>
65   - </tr>
66   - <tr>
67   - <td class="descricao">M&oacute;dulo para cadastramento de Unidades Organizacionais de N&iacute;vel 1.</td>
68   - </tr>
69   - <tr>
70   - <td class="destaque_laranja"><u>Importante:</u> A inclus&atilde;o de <? echo $_SESSION['plural_etiqueta1'];?> &eacute; restrita ao n&iacute;vel &quot;Administra&ccedil;&atilde;o&quot;.</td>
71   - </tr>
72   -
73   -</table>
74   -<br><table width="292" border="0" align="center" cellpadding="0" cellspacing="1">
75   - <tr>
76   - <td><div align="center">
77   -
78   - <input name="incluirUON1" type="submit" id="incluirUON1" value="Incluir <? echo $_SESSION['etiqueta1'];?>" <? echo ($_SESSION['cs_nivel_administracao']<>1?'disabled':'')?>>
79   -
80   -
81   - </div></td>
82   - </tr>
83   - <tr>
84   - <td height="10">&nbsp;</td>
85   - </tr>
86   - <tr>
87   - <td height="10" class="ajuda"><? echo $msg;?></td>
88   - </tr>
89   -
90   -<tr>
91   - <td height="1" bgcolor="#333333"></td>
92   -</tr>
93   - <tr>
94   - <td> <table border="0" cellpadding="2" cellspacing="0" bordercolor="#333333" align="center">
95   - <tr bgcolor="#E1E1E1">
96   - <td align="center" nowrap>&nbsp;</td>
97   - <td align="center" nowrap><div align="left"></div></td>
98   - <td align="center" nowrap>&nbsp;</td>
99   - <td align="center" nowrap class="cabecalho_tabela"><div align="left"><? echo $_SESSION['plural_etiqueta1'];?></div></td>
100   - <td nowrap >&nbsp;</td>
101   - <td nowrap ><div align="left"></div></td>
102   - <td nowrap >&nbsp;</td>
103   - </tr>
104   -<?
105   -if(mysql_num_rows($result)==0) {
106   - $msg = '<div align="center">
107   - <font color="red" size="1" face="Verdana, Arial, Helvetica, sans-serif">
108   - Nenhuma Unidade Organizacional de Nível 1 cadastrada
109   - </font><br><br></div>';
110   -
111   -}
112   -else {
113   - $Cor = 0;
114   - $NumRegistro = 1;
115   -
116   - while($row = mysql_fetch_array($result)) {
117   -
118   - ?>
119   - <tr <? if ($Cor) { echo 'bgcolor="#E1E1E1"'; } ?>>
120   - <td nowrap>&nbsp;</td>
121   - <td nowrap class="opcao_tabela"><div align="left"><? echo $NumRegistro; ?></div></td>
122   - <td nowrap>&nbsp;</td>
123   - <td nowrap class="opcao_tabela"><div align="left"><a href="detalhes_nivel1.php?id_unid_organizacional_nivel1=<? echo $row['id_unid_organizacional_nivel1'];?>"><? echo $row['nm_unid_organizacional_nivel1']; ?></a></div></td>
124   - <td nowrap>&nbsp;</td>
125   - <td nowrap>&nbsp;</td>
126   - <td nowrap>&nbsp;</td>
127   - <?
128   - $Cor=!$Cor;
129   - $NumRegistro++;
130   - }
131   -}
132   -?>
133   - </table></td>
134   - </tr>
135   -<tr>
136   - <td height="1" bgcolor="#333333"></td>
137   -</tr>
138   - <tr>
139   - <td height="10">&nbsp;</td>
140   - </tr>
141   - <tr>
142   - <td height="10"><? echo $msg;?></td>
143   - </tr>
144   - <tr>
145   - <td><div align="center">
146   -
147   - <input name="incluirUON1" type="submit" id="incluirUON1" value="Incluir <? echo $_SESSION['etiqueta1'];?>" <? echo ($_SESSION['cs_nivel_administracao']<>1?'disabled':'')?>>
148   -
149   -
150   - </div></td>
151   - </tr>
152   -</table>
153   - </form>
154   -<p>&nbsp;</p>
155   -</body>
156   -</html>
157 0 \ No newline at end of file
include/define.php
... ... @@ -54,7 +54,7 @@ defined( &#39;CACIC&#39; ) or die( &#39;Acesso restrito (Restricted access)!&#39; );
54 54 /**
55 55 * define a versão do CACIC
56 56 */
57   - define( 'CACIC_VERSION', '2.3.99-devel');
  57 + define( 'CACIC_VERSION', '2.3.99-(2.4.0alpha2)');
58 58  
59 59 /**
60 60 * define as versões atualizaveis do CACIC
... ...