Changeset 3441


Ignore:
Timestamp:
10/29/10 13:14:32 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1290 - Marcação de importante para mensagens na edição de filtros

Location:
branches/2.2/expressoMail1_2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/class.ScriptS.inc.php

    r3438 r3441  
    260260                $rejectused = 0; 
    261261                $notify = 0; 
     262                $flaggedused = 0; 
    262263                $newscriptbody = ""; 
    263264        $continue = 1; 
     
    384385                    $rejectused = 1; 
    385386                } 
    386                  
     387                if (preg_match("/flagged/i",$rule['action'])) 
     388                { 
     389                    $newruletext .= "addflag \"\\\\Flagged\";"; 
     390                    $flaggedused = 1; 
     391                } 
    387392                if (preg_match("/address/i",$rule['action'])) 
    388393                { 
     
    450455                        $newscripthead .= ",\"reject\""; 
    451456                } 
     457                if($flaggedused){ 
     458                        $newscripthead .= ",\"imapflags\""; 
     459                } 
    452460                if($this->newout && $vacation['status'] == 'on'){ 
    453461                    $newscripthead .= ",\"vacation\""; 
     
    481489                unset($regexused); 
    482490                unset($rejectused); 
     491                unset($flaggedused); 
    483492                unset($newscripthead); 
    484493                unset($newscriptbody); 
  • branches/2.2/expressoMail1_2/js/filter.js

    r3438 r3441  
    205205                                        document.getElementById("radio4").checked       = true; 
    206206                                        break; 
     207                                case "flagged": 
     208                                        document.getElementById("radio5").checked       = true; 
     209                                        break; 
    207210                        } 
    208211                        var mark_values = this.values[fields[8]].split(","); 
     
    318321                                                "</tr><tr><td width='50%'><input type='radio' id='radio3' name='radio' value='reject'>"+get_lang('Send a rejection message')+".:</td>"+ 
    319322                                                "<td width='50%'><textarea id='field6' onkeypress='return charCounter(this);' name='field6' rows='3' cols='25'></textarea></td>"+ 
    320                                                 "</tr><tr><td colspan='2'><input type='radio' id='radio4' name='radio' value='discard'>"+get_lang('Erase the message')+"</td>"+ 
     323                                                "</tr><tr id='tr_radio4'><td colspan='2'><input type='radio' id='radio4' name='radio' value='discard'>"+get_lang('Erase the message')+"</td>"+ 
     324                                                "</tr><tr id='tr_radio5'><td colspan='2'><input type='radio' id='radio5' name='radio' value='important'>"+get_lang('Flag as important')+"</td>"+ 
    321325                                                "</tr></table></div><div id='div_vacation' style='display:none'>"+ 
    322326                                                "<table id='table_vacation' border='0' cellpading='0' cellspacing='0' width='100%'>"+ 
     
    607611                                v_checked = true; 
    608612                        } 
     613                        if(Element("radio5").checked){ 
     614                                mount_rule += "flagged&&&&"; 
     615                                v_checked = true; 
     616                        } 
    609617                        if(!v_checked){ 
    610618                                alert(get_lang("No option marked!")); 
  • branches/2.2/expressoMail1_2/js/filters.js

    r3438 r3441  
    4343                form_buttons.style.position = "absolute"; 
    4444                form_buttons.style.display = ""; 
    45                 form_buttons.style.top = "320px"; 
     45                form_buttons.style.top = "347px"; 
    4646                form_buttons.style.left = "5px"; 
    4747                form_buttons.style.width = "655px"; 
     
    5959                form_body.style.top = "5px"; 
    6060                form_body.style.width = "668px"; 
    61                 form_body.style.height = "310px"; 
     61                form_body.style.height = "337px"; 
    6262                form_body.style.borderStyle = "outset"; 
    6363                form_body.style.borderColor = "black"; 
     
    228228                if(! this.filter_Sh[div.id]) { 
    229229                        div.style.width = "680px"; 
    230                         div.style.height = "345px"; 
     230                        div.style.height = "372px"; 
    231231                        div.style.visibility = "hidden"; 
    232232                        div.style.position = "absolute"; 
  • branches/2.2/expressoMail1_2/setup/phpgw_en.lang

    r3407 r3441  
    128128First   expressoMail1_2 en      First 
    129129First Name      expressoMail1_2 en      First Name 
     130Flag as important       expressoMail1_2 en      Flag as important 
    130131Flagged expressoMail1_2 en      Flagged 
    131132Flags   expressoMail1_2 en      Flags 
  • branches/2.2/expressoMail1_2/setup/phpgw_es-es.lang

    r1402 r3441  
    9797First   expressoMail1_2 es-es   Primera 
    9898First Name      expressoMail1_2 pt-br   Primero nombre 
     99Flag as important       expressoMail1_2 es-es   Marcar como Importantes 
    99100Folder  expressoMail1_2 es-es   Carpeta 
    100101Folder Management       expressoMail1_2 es-es   Gerenciar Carpetas 
  • branches/2.2/expressoMail1_2/setup/phpgw_pt-br.lang

    r3414 r3441  
    178178First   expressoMail1_2 pt-br   Primeira 
    179179First Name      expressoMail1_2 pt-br   Primeiro Nome 
     180Flag as important       expressoMail1_2 pt-br   Marcar como Importante 
    180181Flagged expressoMail1_2 pt-br   Importante 
    181182Flags   expressoMail1_2 pt-br   Etiquetas 
Note: See TracChangeset for help on using the changeset viewer.