diff --git a/ieducar/intranet/include/clsCadastro.inc.php b/ieducar/intranet/include/clsCadastro.inc.php index 084e179..5c6d269 100755 --- a/ieducar/intranet/include/clsCadastro.inc.php +++ b/ieducar/intranet/include/clsCadastro.inc.php @@ -297,7 +297,7 @@ class clsCadastro extends clsCampos * Adiciona os botoes de help para a pagina atual */ $url = parse_url($_SERVER['REQUEST_URI']); - $url = ereg_replace('^/', '', $url['path']); + $url = preg_match('^/', '', $url['path']); if (strpos($url, '_det.php') !== FALSE) { $tipo = 'det'; } @@ -386,7 +386,7 @@ class clsCadastro extends clsCampos $nomeCampo = $componente[0]; $validador = $componente[2]; - if (empty($validador) && $nomeCampo == 'cpf' && ereg("^(tab_add_[0-9])", $nome) !== 1) { + if (empty($validador) && $nomeCampo == 'cpf' && preg_match("^(tab_add_[0-9])", $nome) !== 1) { $retorno .= "if( document.getElementById('$nome').value != \"\") { @@ -405,7 +405,7 @@ class clsCadastro extends clsCampos /** * Campo tabela */ - if (ereg("^(tab_add_[0-9])", $nome) === 1) { + if (preg_match("^(tab_add_[0-9])", $nome) === 1) { $nome_campos = $componente['cabecalho']; $componente = array_shift($componente); diff --git a/ieducar/intranet/include/clsCampos.inc.php b/ieducar/intranet/include/clsCampos.inc.php index a00a51d..34f440b 100755 --- a/ieducar/intranet/include/clsCampos.inc.php +++ b/ieducar/intranet/include/clsCampos.inc.php @@ -1102,7 +1102,7 @@ class clsCampos extends Core_Controller_Page_Abstract $campo_tabela = FALSE; // Cria nova tab - if (ereg("^(tabbed_add_[0-9]+)", $nome) === 1) { + if (preg_match("^(tabbed_add_[0-9]+)", $nome) === 1) { $nomes_tab = urlencode(serialize($arr_campos['cabecalho_tab'])); unset($arr_campos['cabecalho_tab']); @@ -1135,7 +1135,7 @@ class clsCampos extends Core_Controller_Page_Abstract continue; } - if (ereg("^(tab_name_[0-9]+)", $nome) === 1) { + if (preg_match("^(tab_name_[0-9]+)", $nome) === 1) { if ($existe_tab_aberta) { if ($this->__segue_fluxo) { $colspan = 2; @@ -1210,7 +1210,7 @@ class clsCampos extends Core_Controller_Page_Abstract continue; } - if (ereg("^(tab_add_[0-9]+)",$nome) === 1) { + if (preg_match("^(tab_add_[0-9]+)",$nome) === 1) { $campo_tabela = TRUE; $javascript = ''; @@ -2616,7 +2616,7 @@ class clsCampos extends Core_Controller_Page_Abstract function getCampoTexto($nome, $id = '', $valor = '', $tamanhovisivel = '', $tamanhomaximo = '', $evento = '', $disabled = '', $descricao = '', - $class = '', $descricao = '') + $class = '', $descricao2 = '') { $id = $id ? $id : $nome; diff --git a/ieducar/intranet/include/clsDetalhe.inc.php b/ieducar/intranet/include/clsDetalhe.inc.php index a51020e..2bc5afa 100755 --- a/ieducar/intranet/include/clsDetalhe.inc.php +++ b/ieducar/intranet/include/clsDetalhe.inc.php @@ -119,7 +119,7 @@ class clsDetalhe extends Core_Controller_Page_Abstract * adiciona os botoes de help para a pagina atual */ $url = parse_url($_SERVER['REQUEST_URI']); - $url = ereg_replace( "^/", "", $url["path"] ); + $url = preg_match( "^/", "", $url["path"] ); if (strpos($url, '_det.php') !== FALSE) { $tipo = "det"; diff --git a/ieducar/intranet/include/clsListagem.inc.php b/ieducar/intranet/include/clsListagem.inc.php index 3034eaf..4bb4a66 100755 --- a/ieducar/intranet/include/clsListagem.inc.php +++ b/ieducar/intranet/include/clsListagem.inc.php @@ -263,7 +263,7 @@ class clsListagem extends clsCampos 'pos_atual', -1, TRUE); return NULL; - } + } function RenderHTML() { @@ -298,7 +298,7 @@ class clsListagem extends clsCampos "; $retorno .= ""; - } + } if ($this->campos) { $width = empty($this->largura) ? '' : "width='$this->largura'"; @@ -307,7 +307,7 @@ class clsListagem extends clsCampos * Adiciona o help da página. */ $url = parse_url($_SERVER['REQUEST_URI']); - $url = ereg_replace( '^/', '', $url['path']); + $url = preg_match( '^/', '', $url['path']); if (strpos($url, '_det.php') !== FALSE) { $tipo = 'det'; @@ -321,7 +321,7 @@ class clsListagem extends clsCampos else { $tipo = 'cad'; } - + $server = $_SERVER['SERVER_NAME']; $endereco = $_SERVER ['REQUEST_URI']; $enderecoPagina = $_SERVER['PHP_SELF']; @@ -500,7 +500,7 @@ class clsListagem extends clsCampos "; $retorno .= ""; - } + } $retorno .= "