From d6b5ea7e3ed12ac9a7cc2cf555c8021d5e39d221 Mon Sep 17 00:00:00 2001 From: Eriksen Costa Paixão Date: Fri, 17 Jul 2009 18:58:48 +0000 Subject: [PATCH] #36 by Eriksen: Corrigido bug durante carregamento de estados de um país via XMLHttpRequest --- ieducar/intranet/public_municipio_cad.php | 64 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/ieducar/intranet/public_municipio_cad.php b/ieducar/intranet/public_municipio_cad.php index be7d104..aec96de 100755 --- a/ieducar/intranet/public_municipio_cad.php +++ b/ieducar/intranet/public_municipio_cad.php @@ -65,7 +65,7 @@ class indice extends clsCadastro var $operacao; var $idsis_rev; var $idsis_cad; - + var $idpais; function Inicializar() @@ -110,9 +110,9 @@ class indice extends clsCadastro { $objTemp = new clsPais(); $lista = $objTemp->lista( false, false, false, false, false, "nome ASC" ); - if ( is_array( $lista ) && count( $lista ) ) + if ( is_array( $lista ) && count( $lista ) ) { - foreach ( $lista as $registro ) + foreach ( $lista as $registro ) { $opcoes["{$registro['idpais']}"] = "{$registro['nome']}"; } @@ -128,13 +128,13 @@ class indice extends clsCadastro $opcoes = array( "" => "Selecione" ); if( class_exists( "clsUf" ) ) { - if( $this->idpais ) + if( $this->idpais ) { $objTemp = new clsUf(); $lista = $objTemp->lista( false, false, $this->idpais, false, false, "nome ASC" ); - if ( is_array( $lista ) && count( $lista ) ) + if ( is_array( $lista ) && count( $lista ) ) { - foreach ( $lista as $registro ) + foreach ( $lista as $registro ) { $opcoes["{$registro['sigla_uf']}"] = "{$registro['nome']}"; } @@ -148,7 +148,7 @@ class indice extends clsCadastro } $this->campoLista( "sigla_uf", "Estado", $opcoes, $this->sigla_uf ); - + // text $this->campoTexto( "nome", "Nome", $this->nome, 30, 60, true ); // $this->campoNumero( "area_km2", "Area Km2", $this->area_km2, 6, 6, false ); @@ -228,39 +228,39 @@ $pagina->addForm( $miolo ); // gera o html $pagina->MakeAll(); ?> - \ No newline at end of file -- libgit2 0.21.2