Commit 62e4607a6023337b696e4a99287d7e891c9e18bd

Authored by Lucas Schmoeller da Silva
1 parent 3e7b08dd
Exists in master

Alterado cadastro de turmas

Alterados codificação de textos com acentuação que davam problemas em alguns navegadores;

portabilis/ieducar#42
Showing 1 changed file with 48 additions and 47 deletions   Show diff stats
ieducar/intranet/educar_turma_cad.php
@@ -32,6 +32,7 @@ require_once 'include/clsBase.inc.php'; @@ -32,6 +32,7 @@ require_once 'include/clsBase.inc.php';
32 require_once 'include/clsCadastro.inc.php'; 32 require_once 'include/clsCadastro.inc.php';
33 require_once 'include/clsBanco.inc.php'; 33 require_once 'include/clsBanco.inc.php';
34 require_once 'include/pmieducar/geral.inc.php'; 34 require_once 'include/pmieducar/geral.inc.php';
  35 +require_once 'Portabilis/String/Utils.php';
35 36
36 /** 37 /**
37 * clsIndexBase class. 38 * clsIndexBase class.
@@ -114,7 +115,7 @@ class indice extends clsCadastro @@ -114,7 +115,7 @@ class indice extends clsCadastro
114 '' => 'Selecione', 115 '' => 'Selecione',
115 1 => 'Domingo', 116 1 => 'Domingo',
116 2 => 'Segunda', 117 2 => 'Segunda',
117 - 3 => 'Terça', 118 + 3 => 'Terça',
118 4 => 'Quarta', 119 4 => 'Quarta',
119 5 => 'Quinta', 120 5 => 'Quinta',
120 6 => 'Sexta', 121 6 => 'Sexta',
@@ -324,7 +325,7 @@ class indice extends clsCadastro @@ -324,7 +325,7 @@ class indice extends clsCadastro
324 325
325 $this->campoHora('hora_final', 'Hora Final', $this->hora_final, FALSE); 326 $this->campoHora('hora_final', 'Hora Final', $this->hora_final, FALSE);
326 327
327 - $this->campoHora('hora_inicio_intervalo', 'Hora Início Intervalo', 328 + $this->campoHora('hora_inicio_intervalo', Portabilis_String_Utils::toLatin1('Hora Início Intervalo'),
328 $this->hora_inicio_intervalo, FALSE); 329 $this->hora_inicio_intervalo, FALSE);
329 330
330 $this->campoHora( 'hora_fim_intervalo', 'Hora Fim Intervalo', $this->hora_fim_intervalo, FALSE); 331 $this->campoHora( 'hora_fim_intervalo', 'Hora Fim Intervalo', $this->hora_fim_intervalo, FALSE);
@@ -338,7 +339,7 @@ class indice extends clsCadastro @@ -338,7 +339,7 @@ class indice extends clsCadastro
338 $tiposBoletim = Portabilis_Model_Report_TipoBoletim::getInstance()->getEnums(); 339 $tiposBoletim = Portabilis_Model_Report_TipoBoletim::getInstance()->getEnums();
339 $tiposBoletim = Portabilis_Array_Utils::insertIn(null, "Selecione um modelo", $tiposBoletim); 340 $tiposBoletim = Portabilis_Array_Utils::insertIn(null, "Selecione um modelo", $tiposBoletim);
340 341
341 - $this->campoLista('tipo_boletim', 'Modelo relatório boletim', $tiposBoletim, $this->tipo_boletim); 342 + $this->campoLista('tipo_boletim', Portabilis_String_Utils::toLatin1('Modelo relatório boletim'), $tiposBoletim, $this->tipo_boletim);
342 343
343 $this->campoQuebra2(); 344 $this->campoQuebra2();
344 345
@@ -378,8 +379,8 @@ class indice extends clsCadastro @@ -378,8 +379,8 @@ class indice extends clsCadastro
378 if (is_array($lista) && count($lista)) { 379 if (is_array($lista) && count($lista)) {
379 $conteudo .= '<div style="margin-bottom: 10px;">'; 380 $conteudo .= '<div style="margin-bottom: 10px;">';
380 $conteudo .= ' <span style="display: block; float: left; width: 250px;">Nome</span>'; 381 $conteudo .= ' <span style="display: block; float: left; width: 250px;">Nome</span>';
381 - $conteudo .= ' <span style="display: block; float: left; width: 100px;">Carga horária</span>';  
382 - $conteudo .= ' <span style="display: block; float: left">Usar padrão do componente?</span>'; 382 + $conteudo .= ' <span style="display: block; float: left; width: 100px;">' . Portabilis_String_Utils::toLatin1('Carga horária') . '</span>';
  383 + $conteudo .= ' <span style="display: block; float: left">'.Portabilis_String_Utils::toLatin1('Usar padrão do componente?'). '</span>';
383 $conteudo .= '</div>'; 384 $conteudo .= '</div>';
384 $conteudo .= '<br style="clear: left" />'; 385 $conteudo .= '<br style="clear: left" />';
385 386
@@ -415,7 +416,7 @@ class indice extends clsCadastro @@ -415,7 +416,7 @@ class indice extends clsCadastro
415 $disciplinas .= '</table>'; 416 $disciplinas .= '</table>';
416 } 417 }
417 else { 418 else {
418 - $disciplinas = 'A série/ano escolar não possui componentes curriculares cadastrados.'; 419 + $disciplinas = Portabilis_String_Utils::toLatin1('A série/ano escolar não possui componentes curriculares cadastrados.');
419 } 420 }
420 } 421 }
421 422
@@ -441,9 +442,9 @@ class indice extends clsCadastro @@ -441,9 +442,9 @@ class indice extends clsCadastro
441 } 442 }
442 443
443 $label = 'Componentes curriculares:<br />' 444 $label = 'Componentes curriculares:<br />'
444 - . '<strong>Observação:</strong> caso não defina os componentes<br />'  
445 - . 'curriculares para a turma, esta usará a definição<br />'  
446 - . 'da série/ano escolar da escola:' 445 + . '<strong>Observa&ccedil;&atilde;o:</strong> caso n&atilde;o defina os componentes<br />'
  446 + . 'curriculares para a turma, esta usar&aacute; a defini&ccedil;&atilde;o<br />'
  447 + . 'da s&eacute;rie/ano escolar da escola:'
447 . '<span id="_escola_serie_componentes">%s</span>'; 448 . '<span id="_escola_serie_componentes">%s</span>';
448 449
449 $label = sprintf($label, $help); 450 $label = sprintf($label, $help);
@@ -546,15 +547,15 @@ class indice extends clsCadastro @@ -546,15 +547,15 @@ class indice extends clsCadastro
546 } 547 }
547 } 548 }
548 549
549 - $this->campoLista('ref_cod_modulo', 'Módulo', $opcoes, $this->ref_cod_modulo, 550 + $this->campoLista('ref_cod_modulo', Portabilis_String_utils::toLatin1('Módulo'), $opcoes, $this->ref_cod_modulo,
550 NULL, NULL, NULL, NULL, NULL, FALSE); 551 NULL, NULL, NULL, NULL, NULL, FALSE);
551 552
552 - $this->campoData('data_inicio', 'Data Início', $this->data_inicio, FALSE); 553 + $this->campoData('data_inicio', Portabilis_String_utils::toLatin1('Data Início'), $this->data_inicio, FALSE);
553 $this->campoData('data_fim', 'Data Fim', $this->data_fim, FALSE); 554 $this->campoData('data_fim', 'Data Fim', $this->data_fim, FALSE);
554 555
555 $this->campoOculto('incluir_modulo', ''); 556 $this->campoOculto('incluir_modulo', '');
556 557
557 - $this->campoRotulo('bt_incluir_modulo', 'Módulo', 558 + $this->campoRotulo('bt_incluir_modulo', Portabilis_String_utils::toLatin1('Módulo'),
558 "<a href='#' onclick=\"document.getElementById('incluir_modulo').value = 'S'; document.getElementById('tipoacao').value = ''; acao();\"><img src='imagens/nvp_bot_adiciona.gif' alt='adicionar' title='Incluir' border=0></a>" 559 "<a href='#' onclick=\"document.getElementById('incluir_modulo').value = 'S'; document.getElementById('tipoacao').value = ''; acao();\"><img src='imagens/nvp_bot_adiciona.gif' alt='adicionar' title='Incluir' border=0></a>"
559 ); 560 );
560 561
@@ -632,7 +633,7 @@ class indice extends clsCadastro @@ -632,7 +633,7 @@ class indice extends clsCadastro
632 } 633 }
633 else { 634 else {
634 echo '<!--\nErro\nClasse clsPmieducarTurmaDiaSemana não encontrada\n-->'; 635 echo '<!--\nErro\nClasse clsPmieducarTurmaDiaSemana não encontrada\n-->';
635 - $opcoes = array('' => 'Erro na geração'); 636 + $opcoes = array('' => Portabilis_String_utils::toLatin1('Erro na geração'));
636 } 637 }
637 638
638 $this->campoLista('dia_semana', 'Dia Semana', $opcoes, $this->dia_semana, NULL, 639 $this->campoLista('dia_semana', 'Dia Semana', $opcoes, $this->dia_semana, NULL,
@@ -708,7 +709,7 @@ class indice extends clsCadastro @@ -708,7 +709,7 @@ class indice extends clsCadastro
708 $cadastrou1 = $obj->cadastra(); 709 $cadastrou1 = $obj->cadastra();
709 710
710 if (!$cadastrou1) { 711 if (!$cadastrou1) {
711 - $this->mensagem = 'Cadastro não realizado.'; 712 + $this->mensagem = Portabilis_String_utils::toLatin1('Cadastro não realizado.');
712 echo "<!--\nErro ao cadastrar clsPmieducarTurmaModulo\nvalores obrigatorios\nis_numeric( $cadastrou ) && is_numeric( {$campo["ref_cod_modulo_"]} ) && is_numeric( {$campo["sequencial_"]} ) && is_string( {$campo["data_inicio_"]} ) && is_string( {$campo["data_fim_"]} )\n-->"; 713 echo "<!--\nErro ao cadastrar clsPmieducarTurmaModulo\nvalores obrigatorios\nis_numeric( $cadastrou ) && is_numeric( {$campo["ref_cod_modulo_"]} ) && is_numeric( {$campo["sequencial_"]} ) && is_string( {$campo["data_inicio_"]} ) && is_string( {$campo["data_fim_"]} )\n-->";
713 714
714 return FALSE; 715 return FALSE;
@@ -735,14 +736,14 @@ class indice extends clsCadastro @@ -735,14 +736,14 @@ class indice extends clsCadastro
735 die(); 736 die();
736 } 737 }
737 738
738 - $this->mensagem = 'Cadastro não realizado.'; 739 + $this->mensagem = Portabilis_String_utils::toLatin1('Cadastro não realizado.');
739 echo "<!--\nErro ao cadastrar clsPmieducarTurma\nvalores obrigatorios\nis_numeric( $this->pessoa_logada ) && is_numeric( $this->ref_ref_cod_serie ) && is_numeric( $this->ref_cod_escola ) && is_numeric( $this->ref_cod_infra_predio_comodo ) && is_string( $this->nm_turma ) && is_numeric( $this->max_aluno ) && is_numeric( $this->multiseriada ) && is_numeric( $this->ref_cod_turma_tipo )\n-->"; 740 echo "<!--\nErro ao cadastrar clsPmieducarTurma\nvalores obrigatorios\nis_numeric( $this->pessoa_logada ) && is_numeric( $this->ref_ref_cod_serie ) && is_numeric( $this->ref_cod_escola ) && is_numeric( $this->ref_cod_infra_predio_comodo ) && is_string( $this->nm_turma ) && is_numeric( $this->max_aluno ) && is_numeric( $this->multiseriada ) && is_numeric( $this->ref_cod_turma_tipo )\n-->";
740 741
741 return FALSE; 742 return FALSE;
742 } 743 }
743 744
744 - echo '<script type="text/javascript">alert("É necessário adicionar pelo menos 1 módulo e 1 dia da semana!")</script>';  
745 - $this->mensagem = "Cadastro não realizado."; 745 + echo '<script type="text/javascript">alert(stringUtils.toUtf8("É necessário adicionar pelo menos 1 módulo e 1 dia da semana!"))</script>';
  746 + $this->mensagem = Portabilis_String_utils::toLatin1("Cadastro não realizado.");
746 747
747 return FALSE; 748 return FALSE;
748 } 749 }
@@ -769,7 +770,7 @@ class indice extends clsCadastro @@ -769,7 +770,7 @@ class indice extends clsCadastro
769 die(); 770 die();
770 } 771 }
771 772
772 - $this->mensagem = 'Cadastro não realizado.'; 773 + $this->mensagem = Portabilis_String_utils::toLatin1('Cadastro não realizado.');
773 echo "<!--\nErro ao cadastrar clsPmieducarTurma\nvalores obrigatorios\nis_numeric( $this->pessoa_logada ) && is_numeric( $this->ref_ref_cod_serie ) && is_numeric( $this->ref_cod_escola ) && is_numeric( $this->ref_cod_infra_predio_comodo ) && is_string( $this->nm_turma ) && is_numeric( $this->max_aluno ) && is_numeric( $this->multiseriada ) && is_numeric( $this->ref_cod_turma_tipo )\n-->"; 774 echo "<!--\nErro ao cadastrar clsPmieducarTurma\nvalores obrigatorios\nis_numeric( $this->pessoa_logada ) && is_numeric( $this->ref_ref_cod_serie ) && is_numeric( $this->ref_cod_escola ) && is_numeric( $this->ref_cod_infra_predio_comodo ) && is_string( $this->nm_turma ) && is_numeric( $this->max_aluno ) && is_numeric( $this->multiseriada ) && is_numeric( $this->ref_cod_turma_tipo )\n-->";
774 775
775 return FALSE; 776 return FALSE;
@@ -839,7 +840,7 @@ class indice extends clsCadastro @@ -839,7 +840,7 @@ class indice extends clsCadastro
839 840
840 $cadastrou1 = $obj->cadastra(); 841 $cadastrou1 = $obj->cadastra();
841 if (!$cadastrou1) { 842 if (!$cadastrou1) {
842 - $this->mensagem = 'Edição não realizada.'; 843 + $this->mensagem = Portabilis_String_utils::toLatin1('Edição não realizada.');
843 echo "<!--\nErro ao editar clsPmieducarTurmaModulo\nvalores obrigatorios\nis_numeric( $this->cod_turma ) && is_numeric( {$campo["ref_cod_modulo_"]} ) \n-->"; 844 echo "<!--\nErro ao editar clsPmieducarTurmaModulo\nvalores obrigatorios\nis_numeric( $this->cod_turma ) && is_numeric( {$campo["ref_cod_modulo_"]} ) \n-->";
844 845
845 return FALSE; 846 return FALSE;
@@ -859,7 +860,7 @@ class indice extends clsCadastro @@ -859,7 +860,7 @@ class indice extends clsCadastro
859 $cadastrou2 = $obj->cadastra(); 860 $cadastrou2 = $obj->cadastra();
860 861
861 if (!$cadastrou2) { 862 if (!$cadastrou2) {
862 - $this->mensagem = 'Edição não realizada.'; 863 + $this->mensagem = Portabilis_String_utils::toLatin1('Edição não realizada.');
863 echo "<!--\nErro ao editar clsPmieducarTurmaDiaSemana\nvalores obrigat&oacute;rios\nis_numeric( $this->cod_turma ) && is_numeric( {$campo["dia_semana_"]} ) \n-->"; 864 echo "<!--\nErro ao editar clsPmieducarTurmaDiaSemana\nvalores obrigat&oacute;rios\nis_numeric( $this->cod_turma ) && is_numeric( {$campo["dia_semana_"]} ) \n-->";
864 865
865 return FALSE; 866 return FALSE;
@@ -868,15 +869,15 @@ class indice extends clsCadastro @@ -868,15 +869,15 @@ class indice extends clsCadastro
868 } 869 }
869 } 870 }
870 else { 871 else {
871 - $this->mensagem = 'Edição não realizada.'; 872 + $this->mensagem = Portabilis_String_utils::toLatin1('Edição não realizada.');
872 echo "<!--\nErro ao editar clsPmieducarTurma\nvalores obrigatorios\nis_numeric( $this->pessoa_logada ) && is_numeric( $this->ref_ref_cod_serie ) && is_numeric( $this->ref_cod_escola ) && is_numeric( $this->ref_cod_infra_predio_comodo ) && is_string( $this->nm_turma ) && is_numeric( $this->max_aluno ) && is_numeric( $this->multiseriada ) && is_numeric( $this->ref_cod_turma_tipo )\n-->"; 873 echo "<!--\nErro ao editar clsPmieducarTurma\nvalores obrigatorios\nis_numeric( $this->pessoa_logada ) && is_numeric( $this->ref_ref_cod_serie ) && is_numeric( $this->ref_cod_escola ) && is_numeric( $this->ref_cod_infra_predio_comodo ) && is_string( $this->nm_turma ) && is_numeric( $this->max_aluno ) && is_numeric( $this->multiseriada ) && is_numeric( $this->ref_cod_turma_tipo )\n-->";
873 874
874 return FALSE; 875 return FALSE;
875 } 876 }
876 } 877 }
877 else { 878 else {
878 - echo '<script type="text/javascript">alert("É necessário adicionar pelo menos 1 módulo e 1 dia da semana!")</script>';  
879 - $this->mensagem = 'Edição não realizada.'; 879 + echo '<script type="text/javascript">alert(stringUtils.toUtf8("É necessário adicionar pelo menos 1 módulo e 1 dia da semana!"))</script>';
  880 + $this->mensagem = Portabilis_String_utils::toLatin1('Edição não realizada.');
880 881
881 return FALSE; 882 return FALSE;
882 } 883 }
@@ -907,7 +908,7 @@ class indice extends clsCadastro @@ -907,7 +908,7 @@ class indice extends clsCadastro
907 die(); 908 die();
908 } 909 }
909 else { 910 else {
910 - $this->mensagem = 'Edição não realizada.'; 911 + $this->mensagem = Portabilis_String_utils::toLatin1('Edição não realizada.');
911 echo "<!--\nErro ao editar clsPmieducarTurma\nvalores obrigatorios\nis_numeric( $this->pessoa_logada ) && is_numeric( $this->ref_ref_cod_serie ) && is_numeric( $this->ref_cod_escola ) && is_numeric( $this->ref_cod_infra_predio_comodo ) && is_string( $this->nm_turma ) && is_numeric( $this->max_aluno ) && is_numeric( $this->multiseriada ) && is_numeric( $this->ref_cod_turma_tipo )\n-->"; 912 echo "<!--\nErro ao editar clsPmieducarTurma\nvalores obrigatorios\nis_numeric( $this->pessoa_logada ) && is_numeric( $this->ref_ref_cod_serie ) && is_numeric( $this->ref_cod_escola ) && is_numeric( $this->ref_cod_infra_predio_comodo ) && is_string( $this->nm_turma ) && is_numeric( $this->max_aluno ) && is_numeric( $this->multiseriada ) && is_numeric( $this->ref_cod_turma_tipo )\n-->";
912 913
913 return FALSE; 914 return FALSE;
@@ -954,12 +955,12 @@ class indice extends clsCadastro @@ -954,12 +955,12 @@ class indice extends clsCadastro
954 $excluiu2 = $obj->excluirTodos(); 955 $excluiu2 = $obj->excluirTodos();
955 956
956 if ($excluiu2) { 957 if ($excluiu2) {
957 - $this->mensagem .= 'Exclusão efetuada com sucesso.'; 958 + $this->mensagem .= Portabilis_String_utils::toLatin1('Exclusão efetuada com sucesso.');
958 header('Location: educar_turma_lst.php'); 959 header('Location: educar_turma_lst.php');
959 die(); 960 die();
960 } 961 }
961 else { 962 else {
962 - $this->mensagem = 'Exclusão não realizada.'; 963 + $this->mensagem = Portabilis_String_utils::toLatin1('Exclusão não realizada.');
963 echo "<!--\nErro ao excluir clsPmieducarTurma\nvalores obrigatorios\nif( is_numeric( $this->cod_turma ) && is_numeric( $this->pessoa_logada ) )\n-->"; 964 echo "<!--\nErro ao excluir clsPmieducarTurma\nvalores obrigatorios\nif( is_numeric( $this->cod_turma ) && is_numeric( $this->pessoa_logada ) )\n-->";
964 965
965 return FALSE; 966 return FALSE;
@@ -967,14 +968,14 @@ class indice extends clsCadastro @@ -967,14 +968,14 @@ class indice extends clsCadastro
967 } 968 }
968 else 969 else
969 { 970 {
970 - $this->mensagem = 'Exclusão não realizada.'; 971 + $this->mensagem = Portabilis_String_utils::toLatin1('Exclusão não realizada.');
971 echo "<!--\nErro ao excluir clsPmieducarTurma\nvalores obrigatorios\nif( is_numeric( $this->cod_turma ) && is_numeric( $this->pessoa_logada ) )\n-->"; 972 echo "<!--\nErro ao excluir clsPmieducarTurma\nvalores obrigatorios\nif( is_numeric( $this->cod_turma ) && is_numeric( $this->pessoa_logada ) )\n-->";
972 973
973 return FALSE; 974 return FALSE;
974 } 975 }
975 } 976 }
976 977
977 - $this->mensagem = 'Exclusão não realizada.'; 978 + $this->mensagem = Portabilis_String_utils::toLatin1('Exclusão não realizada.');
978 echo "<!--\nErro ao excluir clsPmieducarTurma\nvalores obrigatorios\nif( is_numeric( $this->cod_turma ) && is_numeric( $this->pessoa_logada ) )\n-->"; 979 echo "<!--\nErro ao excluir clsPmieducarTurma\nvalores obrigatorios\nif( is_numeric( $this->cod_turma ) && is_numeric( $this->pessoa_logada ) )\n-->";
979 980
980 return FALSE; 981 return FALSE;
@@ -1088,7 +1089,7 @@ function atualizaTurmaCad_TipoComodo(xml) @@ -1088,7 +1089,7 @@ function atualizaTurmaCad_TipoComodo(xml)
1088 } 1089 }
1089 else { 1090 else {
1090 campoComodo.length = 1; 1091 campoComodo.length = 1;
1091 - campoComodo.options[0] = new Option('A escola não possui nenhuma Sala', '', false, false); 1092 + campoComodo.options[0] = new Option(stringUtils.toUtf8('A escola não possui nenhuma Sala'), '', false, false);
1092 } 1093 }
1093 } 1094 }
1094 1095
@@ -1122,7 +1123,7 @@ function atualizaTurmaCad_TipoTurma(xml) @@ -1122,7 +1123,7 @@ function atualizaTurmaCad_TipoTurma(xml)
1122 else { 1123 else {
1123 campoTipoTurma.length = 1; 1124 campoTipoTurma.length = 1;
1124 campoTipoTurma.options[0] = new Option( 1125 campoTipoTurma.options[0] = new Option(
1125 - 'A instituição não possui nenhum Tipo de Turma', '', false, false 1126 + stringUtils.toUtf8('A instituição não possui nenhum Tipo de Turma'), '', false, false
1126 ); 1127 );
1127 } 1128 }
1128 } 1129 }
@@ -1160,7 +1161,7 @@ function getModulo_xml(xml) @@ -1160,7 +1161,7 @@ function getModulo_xml(xml)
1160 1161
1161 if (campoModulo.length == 1 && campoInstituicao != '') { 1162 if (campoModulo.length == 1 && campoInstituicao != '') {
1162 campoModulo.options[0] = new Option( 1163 campoModulo.options[0] = new Option(
1163 - 'A Instituição não possui nenhum módulo', '', false, false 1164 + stringUtils.toUtf8('A Instituição não possui nenhum módulo'), '', false, false
1164 ); 1165 );
1165 } 1166 }
1166 } 1167 }
@@ -1335,7 +1336,7 @@ function atualizaMultiSerie(xml) @@ -1335,7 +1336,7 @@ function atualizaMultiSerie(xml)
1335 var campoSerie = document.getElementById('ref_ref_cod_serie'); 1336 var campoSerie = document.getElementById('ref_ref_cod_serie');
1336 1337
1337 campoSerieMult.length = 1; 1338 campoSerieMult.length = 1;
1338 - campoSerieMult.options[0] = new Option('Selecione uma série', '', false, false); 1339 + campoSerieMult.options[0] = new Option(stringUtils.toUtf8('Selecione uma série'), '', false, false);
1339 1340
1340 var multi_serie = xml.getElementsByTagName('serie'); 1341 var multi_serie = xml.getElementsByTagName('serie');
1341 1342
@@ -1348,7 +1349,7 @@ function atualizaMultiSerie(xml) @@ -1348,7 +1349,7 @@ function atualizaMultiSerie(xml)
1348 } 1349 }
1349 1350
1350 if (campoSerieMult.length == 1 && campoCurso != '') { 1351 if (campoSerieMult.length == 1 && campoCurso != '') {
1351 - campoSerieMult.options[0] = new Option('O curso não possui nenhuma série', '', false, false); 1352 + campoSerieMult.options[0] = new Option(stringUtils.toUtf8('O curso não possui nenhuma série'), '', false, false);
1352 } 1353 }
1353 1354
1354 document.getElementById('ref_ref_cod_serie_mult').value = document.getElementById('ref_ref_cod_serie_mult_').value; 1355 document.getElementById('ref_ref_cod_serie_mult').value = document.getElementById('ref_ref_cod_serie_mult_').value;
@@ -1397,8 +1398,8 @@ function parseComponentesCurriculares(xml_disciplina) @@ -1397,8 +1398,8 @@ function parseComponentesCurriculares(xml_disciplina)
1397 if (DOM_array.length) { 1398 if (DOM_array.length) {
1398 conteudo += '<div style="margin-bottom: 10px; float: left">'; 1399 conteudo += '<div style="margin-bottom: 10px; float: left">';
1399 conteudo += ' <span style="display: block; float: left; width: 250px;">Nome</span>'; 1400 conteudo += ' <span style="display: block; float: left; width: 250px;">Nome</span>';
1400 - conteudo += ' <label span="display: block; float: left; width: 100px">Carga horária</span>';  
1401 - conteudo += ' <label span="display: block; float: left">Usar padrão do componente?</span>'; 1401 + conteudo += ' <label span="display: block; float: left; width: 100px">Carga hor&aacute;ria</span>';
  1402 + conteudo += ' <label span="display: block; float: left">Usar padr&atilde;o do componente?</span>';
1402 conteudo += '</div>'; 1403 conteudo += '</div>';
1403 conteudo += '<br style="clear: left" />'; 1404 conteudo += '<br style="clear: left" />';
1404 1405
@@ -1414,7 +1415,7 @@ function parseComponentesCurriculares(xml_disciplina) @@ -1414,7 +1415,7 @@ function parseComponentesCurriculares(xml_disciplina)
1414 } 1415 }
1415 } 1416 }
1416 else { 1417 else {
1417 - campoDisciplinas.innerHTML = 'A série/ano escolar não possui componentes ' 1418 + campoDisciplinas.innerHTML = 'A s&eacute;rie/ano escolar n&atilde;o possui componentes '
1418 + 'curriculares cadastrados.'; 1419 + 'curriculares cadastrados.';
1419 } 1420 }
1420 1421
@@ -1643,7 +1644,7 @@ function valida_xml(xml) @@ -1643,7 +1644,7 @@ function valida_xml(xml)
1643 1644
1644 if (document.getElementById('ref_cod_escola').value) { 1645 if (document.getElementById('ref_cod_escola').value) {
1645 if (!document.getElementById('ref_ref_cod_serie').value) { 1646 if (!document.getElementById('ref_ref_cod_serie').value) {
1646 - alert("Preencha o campo 'Série' corretamente!"); 1647 + alert(stringUtils.toUtf8("Preencha o campo 'Série' corretamente!"));
1647 document.getElementById('ref_ref_cod_serie').focus(); 1648 document.getElementById('ref_ref_cod_serie').focus();
1648 return false; 1649 return false;
1649 } 1650 }
@@ -1651,7 +1652,7 @@ function valida_xml(xml) @@ -1651,7 +1652,7 @@ function valida_xml(xml)
1651 1652
1652 if (document.getElementById('multiseriada').checked) { 1653 if (document.getElementById('multiseriada').checked) {
1653 if (!document.getElementById('ref_ref_cod_serie_mult')){ 1654 if (!document.getElementById('ref_ref_cod_serie_mult')){
1654 - alert("Preencha o campo 'Série Multi-seriada' corretamente!"); 1655 + alert(stringUtils.toUtf8("Preencha o campo 'Série Multi-seriada' corretamente!"));
1655 document.getElementById('ref_ref_cod_serie_mult').focus(); 1656 document.getElementById('ref_ref_cod_serie_mult').focus();
1656 return false; 1657 return false;
1657 } 1658 }
@@ -1674,7 +1675,7 @@ function valida_xml(xml) @@ -1674,7 +1675,7 @@ function valida_xml(xml)
1674 return false; 1675 return false;
1675 } 1676 }
1676 else if (campoHoraInicioIntervalo == '') { 1677 else if (campoHoraInicioIntervalo == '') {
1677 - alert("Preencha o campo 'Hora Início Intervalo' corretamente!"); 1678 + alert(stringUtils.toUtf8("Preencha o campo 'Hora Início Intervalo' corretamente!"));
1678 document.getElementById('hora_inicio_intervalo').focus(); 1679 document.getElementById('hora_inicio_intervalo').focus();
1679 return false; 1680 return false;
1680 } 1681 }
@@ -1689,13 +1690,13 @@ function valida_xml(xml) @@ -1689,13 +1690,13 @@ function valida_xml(xml)
1689 var qtdDiaSemana = document.getElementsByName('dia_semana').length; 1690 var qtdDiaSemana = document.getElementsByName('dia_semana').length;
1690 1691
1691 if (qtdModulo == 1) { 1692 if (qtdModulo == 1) {
1692 - alert("ATENÇÃO!\nÉ necessário incluir um 'Módulo'!"); 1693 + alert(stringUtils.toUtf8("ATENÇÃO!\nÉ necessário incluir um 'Módulo'!"));
1693 document.getElementById('ref_cod_modulo').focus(); 1694 document.getElementById('ref_cod_modulo').focus();
1694 return false; 1695 return false;
1695 } 1696 }
1696 1697
1697 if (qtdDiaSemana == 1) { 1698 if (qtdDiaSemana == 1) {
1698 - alert("ATENÇÂO! \n É necessário incluir um 'Dia da Semana'!"); 1699 + alert(stringUtils.toUtf8("ATENÇÂO! \n É necessário incluir um 'Dia da Semana'!"));
1699 document.getElementById('dia_semana').focus(); 1700 document.getElementById('dia_semana').focus();
1700 return false; 1701 return false;
1701 } 1702 }
@@ -1710,7 +1711,7 @@ function valida_xml(xml) @@ -1710,7 +1711,7 @@ function valida_xml(xml)
1710 (DOM_turma_sala[j].firstChild.nodeValue <= document.getElementById('hora_final').value) && 1711 (DOM_turma_sala[j].firstChild.nodeValue <= document.getElementById('hora_final').value) &&
1711 (document.getElementById('hora_final').value <= DOM_turma_sala[j+1].firstChild.nodeValue) 1712 (document.getElementById('hora_final').value <= DOM_turma_sala[j+1].firstChild.nodeValue)
1712 ) { 1713 ) {
1713 - alert("ATENÇÃO!\nA 'sala' já está alocada nesse horário!\nPor favor, escolha outro horário ou sala."); 1714 + alert(stringUtils.toUtf8("ATENÇÃO!\nA 'sala' já está alocada nesse horário!\nPor favor, escolha outro horário ou sala."));
1714 return false; 1715 return false;
1715 } 1716 }
1716 } 1717 }
@@ -1728,7 +1729,7 @@ function validaCampoServidor() @@ -1728,7 +1729,7 @@ function validaCampoServidor()
1728 if (document.getElementById('ref_cod_instituicao').value) 1729 if (document.getElementById('ref_cod_instituicao').value)
1729 ref_cod_instituicao = document.getElementById('ref_cod_instituicao').value; 1730 ref_cod_instituicao = document.getElementById('ref_cod_instituicao').value;
1730 else { 1731 else {
1731 - alert('Selecione uma instituição'); 1732 + alert(stringUtils.toUtf8('Selecione uma instituição'));
1732 return false; 1733 return false;
1733 } 1734 }
1734 1735
@@ -1736,7 +1737,7 @@ function validaCampoServidor() @@ -1736,7 +1737,7 @@ function validaCampoServidor()
1736 ref_cod_escola = document.getElementById('ref_cod_escola').value; 1737 ref_cod_escola = document.getElementById('ref_cod_escola').value;
1737 } 1738 }
1738 else { 1739 else {
1739 - alert('Selecione uma escola'); 1740 + alert(stringUtils.toUtf8('Selecione uma escola'));
1740 return false; 1741 return false;
1741 } 1742 }
1742 1743
@@ -1766,7 +1767,7 @@ function getEscolaCursoSerie() @@ -1766,7 +1767,7 @@ function getEscolaCursoSerie()
1766 1767
1767 if (campoEscola && campoCurso) { 1768 if (campoEscola && campoCurso) {
1768 campoSerie.disabled = true; 1769 campoSerie.disabled = true;
1769 - campoSerie.options[0].text = 'Carregando séries'; 1770 + campoSerie.options[0].text = stringUtils.toUtf8('Carregando séries');
1770 1771
1771 var xml = new ajax(atualizaLstEscolaCursoSerie); 1772 var xml = new ajax(atualizaLstEscolaCursoSerie);
1772 xml.envia('educar_escola_curso_serie_xml.php?esc=' + campoEscola + '&cur=' + campoCurso); 1773 xml.envia('educar_escola_curso_serie_xml.php?esc=' + campoEscola + '&cur=' + campoCurso);
@@ -1780,7 +1781,7 @@ function atualizaLstEscolaCursoSerie(xml) @@ -1780,7 +1781,7 @@ function atualizaLstEscolaCursoSerie(xml)
1780 { 1781 {
1781 var campoSerie = document.getElementById('ref_ref_cod_serie'); 1782 var campoSerie = document.getElementById('ref_ref_cod_serie');
1782 campoSerie.length = 1; 1783 campoSerie.length = 1;
1783 - campoSerie.options[0].text = 'Selecione uma série'; 1784 + campoSerie.options[0].text = stringUtils.toUtf8('Selecione uma série');
1784 campoSerie.disabled = false; 1785 campoSerie.disabled = false;
1785 1786
1786 series = xml.getElementsByTagName('serie'); 1787 series = xml.getElementsByTagName('serie');
@@ -1793,7 +1794,7 @@ function atualizaLstEscolaCursoSerie(xml) @@ -1793,7 +1794,7 @@ function atualizaLstEscolaCursoSerie(xml)
1793 } 1794 }
1794 } 1795 }
1795 else { 1796 else {
1796 - campoSerie.options[0].text = 'A escola/curso não possui nenhuma série'; 1797 + campoSerie.options[0].text = stringUtils.toUtf8('A escola/curso não possui nenhuma série');
1797 } 1798 }
1798 } 1799 }
1799 </script> 1800 </script>