Changeset 233 for trunk/expressoAdmin1_2/js
- Timestamp:
- 03/19/08 11:59:26 (16 years ago)
- Location:
- trunk/expressoAdmin1_2/js/jscode
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/js/jscode/groups.js
r86 r233 7 7 8 8 if (document.forms[0].cn.value == ''){ 9 alert( 'Campo NOME do grupo está vazio.');9 alert(document.getElementById('group_name_field_is_empty').value); 10 10 return; 11 11 } 12 12 13 13 if (document.forms[0].description.value == ''){ 14 alert( 'Campo DESCRIÇÃO está vazio.');14 alert(document.getElementById('description_field_is_empty').value); 15 15 return; 16 16 } … … 20 20 cn_tmp = document.forms[0].cn.value.split("-"); 21 21 if ( (cn_tmp.length < 3) || ((cn_tmp[0] != 'grupo') && (cn_tmp[0] != 'smb')) ){ 22 alert( 23 'O campo NOME do grupo está incompleto.\n' + 24 'O nome do grupo deve ser formado assim:\n' + 25 'grupo-ORGANIZACAO-NOME_DO_GRUPO.\n' + 26 'Ex: grupo-celepar-rh.'); 22 alert(document.getElementById('field_name_is_incomplete').value); 27 23 return; 28 24 } … … 33 29 34 30 if(!reCn.test(document.forms[0].cn.value)){ 35 alert( 'Campo NOME DO GRUPO comtém caracteres não permitidos.');31 alert(document.getElementById('group_name_not_allowed').value); 36 32 document.forms[0].cn.focus(); 37 33 return; … … 39 35 40 36 if(!reDesc.test(document.forms[0].description.value)){ 41 alert( 'Campo DESCRIÇÃO comtém caracteres não permitidos.');37 alert(document.getElementGroupById('description_field_not_allowed').value); 42 38 document.forms[0].description.focus(); 43 39 return; … … 47 43 if ( (document.forms[0].email.value != '') && (!reEmail.test(document.forms[0].email.value)) ) 48 44 { 49 alert( "Campo E-mail não é válido.");45 alert(document.getElementById('field_name_is_incomplete').value); 50 46 return false; 51 47 } … … 90 86 alert(data.msg); 91 87 else{ 92 alert( 'Grupo criado com êxito!');88 alert(document.getElementById('group_successfully_created').value); 93 89 location.href="./index.php?menuaction=expressoAdmin1_2.uigroups.list_groups"; 94 90 } … … 156 152 if ((recursive) && (document.forms[0].ldap_context.value == document.getElementById('ea_combo_org_groups').value)) 157 153 { 158 alert( 'Nao é possível selecionar todos os usuários da organização raiz.')154 alert(document.getElementById('not_possible_select_all_users').value) 159 155 document.getElementById('ea_check_allUsers').checked = false; 160 156 … … 270 266 function delete_group(cn, gidnumber) 271 267 { 272 if (confirm( "Realmente deletar Grupo "+ cn + " ??"))268 if (confirm(document.getElementById('delete_group').value + cn + " ??")) 273 269 { 274 270 var handler_delete_group = function(data) … … 277 273 alert(data.msg); 278 274 else 279 alert( 'Grupo deletado com êxito!!');275 alert(document.getElementById('group_successfully_deleted').value); 280 276 281 277 location.href="./index.php?menuaction=expressoAdmin1_2.uigroups.list_groups"; -
trunk/expressoAdmin1_2/js/jscode/maillists.js
r208 r233 6 6 7 7 if (document.forms[0].uid.value == ''){ 8 alert( 'Campo LOGIN da lista está vazio.');8 alert(document.getElementById('login_field_has_spaces').value); 9 9 return; 10 10 } 11 11 12 12 if (document.forms[0].cn.value == ''){ 13 alert( 'Campo NOME da lista está vazio.');13 alert(document.getElementById('list_email_field_is_empty').value); 14 14 return; 15 15 } … … 19 19 uid_tmp = document.forms[0].uid.value.split("-"); 20 20 if ((uid_tmp.length < 3) || (uid_tmp[0] != 'lista')){ 21 alert( 22 'O campo LOGIN da lista está incompleto.\n' + 23 'O nome da lista deve ser formado assim:\n' + 24 'lista-ORGANIZACAO-NOME_DA_LISTA.\n' + 25 'Ex: lista-celepar-rh.'); 21 alert(document.getElementById('login_field_incomplete').value); 26 22 return; 27 23 } … … 29 25 30 26 if (document.forms[0].uid.value.split(" ").length > 1){ 31 alert( 'Campo LOGIN comtém espaços.');27 alert(document.getElementById('login_field_has_spaces').value); 32 28 document.forms[0].uid.focus(); 33 29 return; … … 35 31 36 32 if (document.forms[0].mail.value == ''){ 37 alert( 'Campo E-MAIL da lista está vazio.');33 alert(document.getElementById('list_email_field_is_empty').value); 38 34 document.forms[0].mail.focus(); 39 35 return; … … 41 37 var reEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 42 38 if(!reEmail.test(document.forms[0].mail.value)){ 43 alert( "Campo E-mail não é válido.");39 alert(document.getElementById('field_email_is_invalid').value); 44 40 return false; 45 41 } … … 47 43 select_userInMaillist = document.getElementById('ea_select_usersInMaillist'); 48 44 if (select_userInMaillist.options.length == 0){ 49 alert( 'Nenhum usuário faz parte da lista.');45 alert(document.getElementById('no_user_is_part_of_the_list').value); 50 46 return; 51 47 } … … 95 91 alert(data.msg); 96 92 else{ 97 alert( 'Lista de emails criada com êxito!');93 alert(document.getElementById('email_list_successfully_created').value); 98 94 location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 99 95 } … … 112 108 alert(data.msg); 113 109 else{ 114 alert( 'Lista de emails salva com êxito!!');110 alert(document.getElementById('email_list_successfully_saved').value); 115 111 location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 116 112 } … … 137 133 alert(data.msg); 138 134 else 139 alert( 'Sending Control List salva com êxito!!');135 alert(document.getElementById('sending_control_list_successfully_saved').value); 140 136 location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 141 137 return; … … 185 181 if ((recursive) && (document.forms[0].ldap_context.value == document.getElementById('ea_combo_org_maillists').value)) 186 182 { 187 alert('Nao é possível selecionar todos os usuários da organização raiz.')183 alert(document.getElementById('it_is_not_possible_select_users').value); 188 184 document.getElementById('ea_check_allUsers').checked = false; 189 185 … … 358 354 function delete_maillist(uid, uidnumber) 359 355 { 360 if (confirm( "Realmente deletar Lista "+ uid + " ??"))356 if (confirm(document.getElementById('delete_list').value + uid + " ??")) 361 357 { 362 358 var handler_delete_maillist = function(data) … … 365 361 alert(data.msg); 366 362 else 367 alert( 'Lista de email deletada com êxito!!');363 alert(document.getElementById('email_list_successfully_deleted'); 368 364 369 365 location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; -
trunk/expressoAdmin1_2/js/jscode/managers.js
r180 r233 2 2 function copy_manager(manager) 3 3 { 4 var new_manager = prompt( "Digite o login do novo gerente:","");4 var new_manager = prompt(document.getElementById('type_the_new_manager_login').value,""); 5 5 6 6 var handler_copy_manager = function(data) … … 9 9 location.reload(); 10 10 else 11 alert( 'Erro ao copiar gerente.');11 alert(document.getElementById('error_at_copy_manager').value); 12 12 } 13 13 cExecute ('$this.db_functions.copy_manager&manager='+manager+'&new_manager='+new_manager, handler_copy_manager); -
trunk/expressoAdmin1_2/js/jscode/users.js
r208 r233 7 7 document.forms[0].uid.value = document.forms[0].uid.value.toLowerCase(); 8 8 if (document.forms[0].uid.value == ''){ 9 alert( 'Campo LOGIN está vazio.');9 alert(document.getElementById('login_field_empty').value); 10 10 return; 11 11 } 12 12 else if (document.forms[0].uid.value.length < document.forms[0].minimumSizeLogin.value){ 13 alert( 'Campo LOGIN deve ter mais que '+document.forms[0].minimumSizeLogin.value+' caracteres.');13 alert(document.getElementById('login_field_must_have').value + document.forms[0].minimumSizeLogin.value+document.getElementById('characters').value ); 14 14 return; 15 15 } … … 21 21 var reUid = /^([a-zA-Z0-9_\-])+$/; 22 22 if(!reUid.test(document.forms[0].uid.value)){ 23 alert( 'Campo LOGIN comtém caracteres não permitidos.');23 alert(document.getElementById('login_field_contains_not_allowed').value); 24 24 document.forms[0].account_lid.focus(); 25 25 return; … … 28 28 //PASSWORD's 29 29 if (document.forms[0].password1.value == ''){ 30 alert( 'Campo SENHA está vazio.');30 alert(document.getElementById('password_field_empty').value); 31 31 return; 32 32 } 33 33 if (document.forms[0].password2.value == ''){ 34 alert( 'Campo RE-SENHA está vazio.');34 alert(document.getElementById('re-password_field_empty').value); 35 35 return; 36 36 } … … 38 38 39 39 if (document.forms[0].password1.value != document.forms[0].password2.value){ 40 alert( 'Campo SENHA e RE-SENHA são diferentes.');40 alert(document.getElementById('pass_re-pass_diferents').value); 41 41 return; 42 42 } … … 49 49 if(!re_employeenumber.test(document.forms[0].corporative_information_employeenumber.value)) 50 50 { 51 alert( 'Campo matrícula contém caracteres não permitidos. Somente números são permitidos.');51 alert(document.getElementById('register_field_contains_not_allowed').value); 52 52 document.forms[0].corporative_information_employeenumber.focus(); 53 53 return; … … 61 61 if(!re_cpf.test(document.forms[0].corporative_information_cpf.value)) 62 62 { 63 alert( 'Campo cpf contém caracteres não permitidos. Somente números são permitidos');63 alert(document.getElementById('cpf_field_not_allowed').value); 64 64 document.forms[0].corporative_information_employeenumber.focus(); 65 65 return; … … 68 68 if (! validarCPF(document.forms[0].corporative_information_cpf.value) ) 69 69 { 70 alert( "Campo CPF invalido.");70 alert(document.getElementById('cpf_field_invalid').value); 71 71 document.forms[0].corporative_information_cpf.focus(); 72 72 return; … … 77 77 document.forms[0].mail.value = document.forms[0].mail.value.toLowerCase(); 78 78 if (document.forms[0].mail.value == ''){ 79 alert( 'Campo E-MAIL está vazio.');79 alert(document.getElementById('email_field_empty').value); 80 80 return; 81 81 } 82 82 var reEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 83 83 if(!reEmail.test(document.forms[0].mail.value)){ 84 alert( "Campo E-mail não é válido.");84 alert(document.getElementById('email_field_not_valid').value); 85 85 return false; 86 86 } … … 88 88 //FIRSTNAME 89 89 if (document.forms[0].givenname.value == ''){ 90 alert( 'Campo PRIMEIRO NOME está vazio.');90 alert(document.getElementById('first_name_empty').value); 91 91 return; 92 92 } … … 94 94 //LASTNAME 95 95 if (document.forms[0].sn.value == ''){ 96 alert( 'Campo ÚLTIMO NOME está vazio.');96 alert(document.getElementById('last_name_empty').value); 97 97 return; 98 98 } … … 104 104 if (!reg_tel.exec(document.forms[0].telephonenumber.value)) 105 105 { 106 alert( 'Campo Telefone incorreto.');106 alert(document.getElementById('incorrect_telephone_field').value); 107 107 return; 108 108 } … … 111 111 //FORWAR ONLY 112 112 if ((document.forms[0].deliverymode.checked) && (document.forms[0].mailforwardingaddress.value == '')){ 113 alert( 'Campo E-MAIL DE ENCAMINHAMENTO está vazio.');113 alert(document.getElementById('redirect_email_empty').value); 114 114 return; 115 115 } … … 117 117 // Email Quota 118 118 if (document.forms[0].mailquota.value == ''){ 119 alert( 'Usuário sem COTA.');119 alert(document.getElementById('without_quota').value); 120 120 return; 121 121 } … … 123 123 //GROUPS 124 124 if (document.getElementById('ea_select_user_groups').length < 1){ 125 alert( 'Nenhum GRUPO selecionado.');125 alert(document.getElementById('no_group_selected').value); 126 126 return; 127 127 } … … 130 130 if (document.getElementById('tabcontent6').style.display != 'none'){ 131 131 if ((document.forms[0].sambalogonscript.value == '') && (!document.forms[0].sambalogonscript.disabled)){ 132 alert( 'Script de logon do usuário está vazio.');132 alert(document.getElementById('user_logon_script_empty').value); 133 133 return; 134 134 } 135 135 if ((document.forms[0].sambahomedirectory.value == '') && (!document.forms[0].sambahomedirectory.disabled)){ 136 alert( 'Diretório Home do usuário está vazio.');136 alert(document.getElementById('user_home_path_empty').value); 137 137 return; 138 138 } … … 205 205 alert(data.msg); 206 206 else 207 alert( 'Usuário criado com êxito!');207 alert(document.getElementById('user_successfully_created').value); 208 208 209 209 location.href="./index.php?menuaction=expressoAdmin1_2.uiaccounts.list_users"; … … 224 224 } 225 225 else{ 226 alert( 'Usuário salvo com êxito!!');226 alert(document.getElementById('user_successfully_saved').value); 227 227 } 228 228 location.href="./index.php?menuaction=expressoAdmin1_2.uiaccounts.list_users"; … … 447 447 alert(data.msg); 448 448 else 449 alert( 'Senha default cadastrada com êxito!!');449 alert(document.getElementById('default_password_successfully_registered_cadastre').value); 450 450 return; 451 451 } … … 460 460 alert(data.msg); 461 461 else 462 alert( 'Senha do usuário retornado com êxito!!');462 alert(document.getElementById('user_password_returned_with_success').value); 463 463 return; 464 464 } … … 468 468 function delete_user(uid, uidnumber) 469 469 { 470 if (confirm( "Realmente deseja deletar o usuário "+ uid + " ??"))470 if (confirm(document.getElementById('delete_the_user').value + uid + " ??")) 471 471 { 472 472 var handler_delete_user = function(data) … … 475 475 alert(data.msg); 476 476 else 477 alert( 'Usuário deletado com êxito!!');477 alert(document.getElementById('user_deleted_with_success').value); 478 478 479 479 location.href="./index.php?menuaction=expressoAdmin1_2.uiaccounts.list_users"; … … 491 491 var reUid = /^([a-zA-Z0-9_\-])+$/; 492 492 493 new_uid = prompt( "Alterar login do usuário " + uid + " para: ", uid);493 new_uid = prompt(document.getElementById('change_user_login').value + uid + document.getElementById('to').value, uid); 494 494 495 495 if(!reUid.test(new_uid)){ 496 alert( 'Campo LOGIN comtém caracteres não permitidos.');496 alert(document.getElementById('login_field_contains_not_allowed').value); 497 497 document.forms[0].account_lid.focus(); 498 498 return; … … 527 527 alert(data.msg); 528 528 else{ 529 alert( "Usuário renomeado com êxito!\n" + data.exec_return);529 alert(document.getElementById('user_renamed_success').value + "\n" + data.exec_return); 530 530 location.href="./index.php?menuaction=expressoAdmin1_2.uiaccounts.list_users"; 531 531 } … … 543 543 clearTimeout(finderTimeout_maillist); 544 544 var oWait = document.getElementById("ea_span_searching_maillist"); 545 oWait.innerHTML = 'Buscando...';545 oWait.innerHTML = document.getElementById('searching').value; 546 546 finderTimeout_maillist = setTimeout("optionFinder_maillist('"+obj.id+"')",500); 547 547 } … … 577 577 clearTimeout(finderTimeout_group); 578 578 var oWait = document.getElementById("ea_span_searching_group"); 579 oWait.innerHTML = 'Buscando...';579 oWait.innerHTML = document.getElementById('searching').value; 580 580 finderTimeout_group = setTimeout("optionFinder_group('"+obj.id+"')",500); 581 581 } … … 643 643 else{ 644 644 cExecute ('$this.user.write_log_from_ajax&_action='+action+'&userinfo='+uid, handler_write_log); 645 alert( "Esvaziados '" + data.inbox_size + "' MB da caixa postal do usuário");645 alert(document.getElementById('removed').value + data.inbox_size + document.getElementById('mb_from_the_user_mailbox').value); 646 646 document.getElementById('mailquota_used').value = data.mailquota_used; 647 647 }
Note: See TracChangeset
for help on using the changeset viewer.