Commit 67e5e4f4feba6ea7b9b86f56b2d2182e94b748a4

Authored by Lucas Schmoeller da Silva
1 parent ff6880be
Exists in master

#29 Adicionando botão/processo de copia de histórico na visualização de históricos

ieducar/intranet/educar_historico_escolar_cad.php
... ... @@ -118,7 +118,11 @@ class indice extends clsCadastro
118 118 {
119 119 $this->fexcluir = true;
120 120 }
121   - $retorno = "Editar";
  121 +
  122 + if(!isset($_GET['copia']))
  123 + $retorno = "Editar";
  124 + else
  125 + $this->fexcluir = false;
122 126 }
123 127 }
124 128 $this->url_cancelar = ($retorno == "Editar") ? "educar_historico_escolar_det.php?ref_cod_aluno={$registro["ref_cod_aluno"]}&sequencial={$registro["sequencial"]}" : "educar_historico_escolar_lst.php?ref_cod_aluno={$this->ref_cod_aluno}";
... ...
ieducar/intranet/educar_historico_escolar_det.php
1 1 <?php
2 2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3 3 * *
4   - * @author Prefeitura Municipal de Itajaí *
  4 + * @author Prefeitura Municipal de Itajaí *
5 5 * @updated 29/03/2007 *
6   - * Pacote: i-PLB Software Público Livre e Brasileiro *
  6 + * Pacote: i-PLB Software Público Livre e Brasileiro *
7 7 * *
8   - * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
  8 + * Copyright (C) 2006 PMI - Prefeitura Municipal de Itajaí *
9 9 * ctima@itajai.sc.gov.br *
10 10 * *
11   - * Este programa é software livre, você pode redistribuí-lo e/ou *
12   - * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
13   - * publicada pela Free Software Foundation, tanto a versão 2 da *
14   - * Licença como (a seu critério) qualquer versão mais nova. *
  11 + * Este programa é software livre, você pode redistribuí-lo e/ou *
  12 + * modificá-lo sob os termos da Licença Pública Geral GNU, conforme *
  13 + * publicada pela Free Software Foundation, tanto a versão 2 da *
  14 + * Licença como (a seu critério) qualquer versão mais nova. *
15 15 * *
16   - * Este programa é distribuído na expectativa de ser útil, mas SEM *
17   - * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
18   - * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
19   - * sulte a Licença Pública Geral GNU para obter mais detalhes. *
  16 + * Este programa é distribuído na expectativa de ser útil, mas SEM *
  17 + * QUALQUER GARANTIA. Sem mesmo a garantia implícita de COMERCIALI- *
  18 + * ZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM PARTICULAR. Con- *
  19 + * sulte a Licença Pública Geral GNU para obter mais detalhes. *
20 20 * *
21   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
22   - * junto com este programa. Se não, escreva para a Free Software *
  21 + * Você deve ter recebido uma cópia da Licença Pública Geral GNU *
  22 + * junto com este programa. Se não, escreva para a Free Software *
23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *
24 24 * 02111-1307, USA. *
25 25 * *
... ... @@ -133,7 +133,7 @@ class indice extends clsDetalhe
133 133 }
134 134 if( $registro["nm_serie"] )
135 135 {
136   - $this->addDetalhe( array( "Série", "{$registro["nm_serie"]}") );
  136 + $this->addDetalhe( array( "Série", "{$registro["nm_serie"]}") );
137 137 }
138 138 }
139 139 else
... ... @@ -172,7 +172,7 @@ class indice extends clsDetalhe
172 172 $this->addDetalhe( array( "Carga Hor&aacute;ria", "{$registro["carga_horaria"]}") );
173 173 }
174 174  
175   - $this->addDetalhe( array( "Faltas globalizadas", is_numeric($registro["faltas_globalizadas"]) ? 'Sim' : 'Não'));
  175 + $this->addDetalhe( array( "Faltas globalizadas", is_numeric($registro["faltas_globalizadas"]) ? 'Sim' : 'Não'));
176 176  
177 177 if( $registro["dias_letivos"] )
178 178 {
... ... @@ -180,7 +180,7 @@ class indice extends clsDetalhe
180 180 }
181 181 if( $registro["frequencia"] )
182 182 {
183   - $this->addDetalhe( array( "Frequência", "{$registro["frequencia"]}") );
  183 + $this->addDetalhe( array( "Frequência", "{$registro["frequencia"]}") );
184 184 }
185 185 if( $registro["extra_curricular"] )
186 186 {
... ... @@ -193,11 +193,11 @@ class indice extends clsDetalhe
193 193  
194 194 if( $registro["aceleracao"] )
195 195 {
196   - $this->addDetalhe( array( "Aceleração", "Sim") );
  196 + $this->addDetalhe( array( "Aceleração", "Sim") );
197 197 }
198 198 else
199 199 {
200   - $this->addDetalhe( array( "Aceleração", "N&atilde;o") );
  200 + $this->addDetalhe( array( "Aceleração", "N&atilde;o") );
201 201 }
202 202 if( $registro["origem"] )
203 203 {
... ... @@ -297,6 +297,8 @@ class indice extends clsDetalhe
297 297 $this->addDetalhe( array( "Disciplina", "{$tabela}") );
298 298 }
299 299  
  300 + $this->addBotao('Copiar Hist&oacute;rico',"educar_historico_escolar_cad.php?ref_cod_aluno={$registro["ref_cod_aluno"]}&sequencial={$registro["sequencial"]}&copia=true");
  301 +
300 302 $obj_permissoes = new clsPermissoes();
301 303 if( $obj_permissoes->permissao_cadastra( 578, $this->pessoa_logada, 7 ) )
302 304 {
... ...