Changeset 4231


Ignore:
Timestamp:
05/05/11 17:18:00 (13 years ago)
Author:
airton
Message:

Ticket #1841 - Permitir a troca das mensagens de e-mail impressas

Location:
sandbox/2.2.0.2/expressoMail1_2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/expressoMail1_2/inc/hook_settings.inc.php

    r3995 r4231  
    8686 
    8787create_select_box('What is the maximum number of messages per page?','max_email_per_page',$default,'This is the number of messages shown in your mailbox per page'); 
     88 
     89create_check_box('View the user name in the header of the messages printed?', 'show_name_print_messages', 'Displays the user name in the header print email'); 
    8890 
    8991//$default = 0; 
  • sandbox/2.2.0.2/expressoMail1_2/js/main.js

    r4225 r4231  
    55var autosave_time = 20000; 
    66 
     7var cabecalho = '<h4>ExpressoLivre - ExpressoMail</h4>';  
     8 
    79function init(){ 
    810        if (!is_ie) 
     
    2022 
    2123                preferences = data; 
     24                 
     25                if(preferences.show_name_print_messages == "1") {  
     26                        var getUserName = document.getElementById("user_info");  
     27                        var userName = getUserName.innerHTML;  
     28                        var position = userName.indexOf("-");  
     29                        var userName = userName.substring(3, position);  
     30                        cabecalho = '<h4>' + userName;  
     31                }   
     32                 
    2233                current_folder="INBOX"; 
    2334                 
     
    21502161                try{ 
    21512162                        var html = '<br>'; 
    2152                         html += "<h4>ExpressoLivre - ExpressoMail</h4>"; 
     2163                        html += cabecalho + "</h4><hr>"; 
    21532164                        html += folder+"<hr>"; 
    21542165 
     
    22382249                try{ 
    22392250                        var html ='<body>'; 
    2240                         html += "<h4>ExpressoLivre - ExpressoMail</h4><hr>"; 
     2251                        html += cabecalho + "</h4><hr>"; 
    22412252                        html += '<table><tbody>'; 
    22422253                        if(sender) 
  • sandbox/2.2.0.2/expressoMail1_2/preferences.php

    r1121 r4231  
    2424        $current_config = $c->config_data;     
    2525                 
     26                 
     27                if($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['show_name_print_messages'])  
     28                        $GLOBALS['phpgw']->template->set_var('checked_show_name_print_messages', 'checked');  
     29                else  
     30                        $GLOBALS['phpgw']->template->set_var('checked_show_name_print_messages', '');  
     31                                                         
    2632                 
    2733                if($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['max_email_per_page']) 
     
    196202        else //Save Config 
    197203        { 
     204                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['show_name_print_messages'])  
     205                        $GLOBALS['phpgw']->preferences->change('expressoMail', 'show_name_print_messages', $_POST['show_name_print_messages']);  
     206                else   
     207                        $GLOBALS['phpgw']->preferences->add('expressoMail', 'show_name_print_messages', $_POST['show_name_print_messages']);  
     208                 
    198209                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['max_email_per_page']) 
    199210                        $GLOBALS['phpgw']->preferences->change('expressoMail','max_email_per_page',$_POST['max_emails_per_page']); 
     
    331342        )); 
    332343 
     344        $GLOBALS['phpgw']->template->set_var('lang_name_print_messages', lang('View the user name in the header of the messages printed?'));  
    333345        $GLOBALS['phpgw']->template->set_var('lang_config_expressoMail',lang('Config for ExpressoMail')); 
    334346        $GLOBALS['phpgw']->template->set_var('lang_max_emails_per_page',lang('What is the maximum number of messages per page?')); 
     
    404416                $GLOBALS['phpgw']->template->set_var('checked_use_signature','checked'); 
    405417                $GLOBALS['phpgw']->template->set_var('checked_mainscreen_showmail','checked'); 
     418                $GLOBALS['phpgw']->template->set_var('checked_show_name_print_messages','checked');  
    406419                $save_in_folder_selected = "INBOX".$e_server['imapDelimiter'].$specialFolders["Sent"]; 
    407420        } 
  • sandbox/2.2.0.2/expressoMail1_2/setup/phpgw_es-es.lang

    r3854 r4231  
    596596zip mails to import     expressoMail1_2 es-es   Archivo .zip o .eml: 
    597597Show TO: in place of FROM: only in Automatic SEND folder        expressoMail1_2 es-es   Cambiar remitente por destinatário en la columna QIUEM solamente en la carpeta Enviado 
     598View the user name in the header of the messages printed?       expressoMail1_2 es-es   Ver el nombre de usuario en el encabezado de los mensajes impresos?      
     599Displays the user name in the header print email        expressoMail1_2 es-es   Muestra el nombre de usuario en el correo electrónico imprimir el encabezado     
     600 
  • sandbox/2.2.0.2/expressoMail1_2/setup/phpgw_pt-br.lang

    r4122 r4231  
    656656gears firefox linux url expressoMail1_2 pt-br   URL de instalação do Gears para o Firefox - linux 
    657657gears ie url    expressoMail1_2 pt-br   URL de instalação do Gears para o Internet explorer 
     658View the user name in the header of the messages printed?       expressoMail1_2 pt-br   Exibir o meu nome no cabeçalho das mensagens impressas?          
     659Displays the user name in the header print email        expressoMail1_2 pt-br   Exibe o nome do usuário no cabeçalho de impressão do email  
Note: See TracChangeset for help on using the changeset viewer.