[5801] | 1 | <% |
---|
| 2 | var specialFolders = { |
---|
| 3 | INBOX: {name:'Caixa de Entrada', classe:'inbox'}, |
---|
| 4 | Inbox: {name:'Caixa de Entrada', classe:'inbox'}, |
---|
| 5 | Trash: {name:'Lixeira', classe:'trash'}, |
---|
| 6 | Drafts:{name:'Rascunhos', classe:'drafts'}, |
---|
| 7 | Spam: {name:'Spam', classe:'spam'}, |
---|
| 8 | Sent: {name:'Enviados', classe:'sent'} |
---|
| 9 | }; |
---|
| 10 | %> |
---|
[5539] | 11 | <form action="filter:detail" method="POST"> |
---|
| 12 | <div class="rule-details-container"> |
---|
[5801] | 13 | <h3><a href="#"><%= get_lang("Criteria")%></a></h3> |
---|
[5539] | 14 | <div> |
---|
| 15 | <fieldset> |
---|
[5801] | 16 | <label class="small"><%= get_lang("Name of the rule")%></label> |
---|
[5539] | 17 | <input type="text" name="name" /> |
---|
| 18 | </fieldset> |
---|
| 19 | <fieldset> |
---|
[5801] | 20 | <label class="small"><%= get_lang("Sender")%></label> |
---|
[5539] | 21 | <select name="criteriaOperator[]"> |
---|
[5801] | 22 | <option value="="><%= get_lang("is equal to")%></option> |
---|
| 23 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
| 24 | <option value="!*"><%= get_lang("doesn't contain the phrase")%></option> |
---|
| 25 | <option value="^"><%= get_lang("starting with")%></option> |
---|
| 26 | <option value="$"><%= get_lang("ends with")%></option> |
---|
[5539] | 27 | |
---|
| 28 | </select> |
---|
| 29 | <input type="text" name="criteriaValue[]" /> |
---|
[5648] | 30 | <input type="hidden" name="criteriaType[]" value="from"/> |
---|
[5539] | 31 | </fieldset> |
---|
| 32 | <fieldset> |
---|
[5801] | 33 | <label class="small"><%= get_lang("Receiver")%></label> |
---|
[5539] | 34 | <select name="criteriaOperator[]"> |
---|
[5801] | 35 | <option value="="><%= get_lang("is equal to")%></option> |
---|
| 36 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
| 37 | <option value="!*"><%= get_lang("doesn't contain the phrase")%></option> |
---|
| 38 | <option value="^"><%= get_lang("starting with")%></option> |
---|
| 39 | <option value="$"><%= get_lang("ends with")%></option> |
---|
[5539] | 40 | </select> |
---|
| 41 | <input type="text" name="criteriaValue[]" /> |
---|
[5648] | 42 | <input type="hidden" name="criteriaType[]" value="to"/> |
---|
[5539] | 43 | </fieldset> |
---|
| 44 | <fieldset> |
---|
[5801] | 45 | <label class="small"><%= get_lang("Subject")%></label> |
---|
[5539] | 46 | <select name="criteriaOperator[]"> |
---|
[5801] | 47 | <option value="="><%= get_lang("is equal to")%></option> |
---|
| 48 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
| 49 | <option value="!*"><%= get_lang("doesn't contain the phrase")%></option> |
---|
| 50 | <option value="^"><%= get_lang("starting with")%></option> |
---|
| 51 | <option value="$"><%= get_lang("ends with")%></option> |
---|
[5539] | 52 | |
---|
| 53 | </select> |
---|
| 54 | <input type="text" name="criteriaValue[]" /> |
---|
| 55 | <input type="hidden" name="criteriaType[]" value="subject"/> |
---|
| 56 | </fieldset> |
---|
| 57 | <fieldset> |
---|
[5801] | 58 | <label class="small"><%= get_lang("Message")%></label> |
---|
[5539] | 59 | <select name="criteriaOperator[]"> |
---|
[5801] | 60 | <option value="="><%= get_lang("is equal to")%></option> |
---|
| 61 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
| 62 | <option value="!*"><%= get_lang("doesn't contain the phrase")%></option> |
---|
| 63 | <option value="^"><%= get_lang("starting with")%></option> |
---|
| 64 | <option value="$"><%= get_lang("ends with")%></option> |
---|
[5539] | 65 | </select> |
---|
| 66 | <input type="text" name="criteriaValue[]" /> |
---|
| 67 | <input type="hidden" name="criteriaType[]" value="body"/> |
---|
| 68 | </fieldset> |
---|
| 69 | <fieldset> |
---|
[5801] | 70 | <label class="small"><%= get_lang("Size")%></label> |
---|
[5539] | 71 | <select name="criteriaOperator[]"> |
---|
[5801] | 72 | <option value=">"><%= get_lang("is under than")%></option> |
---|
| 73 | <option value="<"><%= get_lang("is over than")%></option> |
---|
[5539] | 74 | </select> |
---|
| 75 | <input type="text" name="criteriaValue[]" /> |
---|
| 76 | <input type="hidden" name="criteriaType[]" value="size"/> |
---|
| 77 | </fieldset> |
---|
| 78 | <!-- |
---|
| 79 | <fieldset> |
---|
| 80 | <input type="checkbox" value="hasAttachment" name="hasAttachment" /> |
---|
| 81 | <label>A mensagem possui anexo</label> |
---|
| 82 | </fieldset> |
---|
| 83 | --> |
---|
| 84 | <fieldset class="fields-isexact"> |
---|
| 85 | <fieldset> |
---|
[5591] | 86 | <input type="radio" name="isExact" value="and" checked="checked"/> |
---|
[5801] | 87 | <label><%= get_lang("Attend all the criteria")%></label> |
---|
[5539] | 88 | </fieldset> |
---|
| 89 | <fieldset> |
---|
| 90 | <input type="radio" name="isExact" value="or"/> |
---|
[5801] | 91 | <label><%= get_lang("Attend any of the criteria")%></label> |
---|
[5539] | 92 | </fieldset> |
---|
| 93 | </fieldset> |
---|
| 94 | <div class="menu-container"> |
---|
[5801] | 95 | <a class="button cancel" href="#"><%= get_lang("Cancel")%></a> |
---|
| 96 | <a class="button forth" href="#"><%= get_lang("Continue")%> »</a> |
---|
[5539] | 97 | </div> |
---|
| 98 | </div> |
---|
[5801] | 99 | <h3><a href="#"><%= get_lang("Actions")%></a></h3> |
---|
[5539] | 100 | <div> |
---|
| 101 | <ul class="message-tip-container"> |
---|
[5801] | 102 | <li class="message-tip"><%= get_lang("Actions to be performed on messages that attend the criteria specified above.")%></li> |
---|
| 103 | <li class="message-tip"><%= get_lang("These actions apply only to new messages arriving.")%></li> |
---|
[5539] | 104 | </ul> |
---|
| 105 | <fieldset class="select-folderlist"> |
---|
[5591] | 106 | <input type="radio" name="actionType[]" value="fileinto" checked="checked" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5801] | 107 | <label><%= get_lang("Archive in folder")%></label> |
---|
[5542] | 108 | <!-- |
---|
| 109 | Aguardando o problema do form do DataLayer ser resolvido. |
---|
| 110 | --> |
---|
[5801] | 111 | <select name="valueFileInto" style="width:150px"> |
---|
| 112 | <%for(var i=0; i < data.folders.length; i++){ |
---|
| 113 | var folder_name = specialFolders[data.folders[i].commonName] ? get_lang(data.folders[i].commonName) : data.folders[i].commonName; |
---|
[5542] | 114 | if(/^INBOX/.test(data.folders[i].id)){ %> |
---|
[5801] | 115 | <option value="<%= data.folders[i].id%>"><%= folder_name%></option> |
---|
[5542] | 116 | <% |
---|
[5801] | 117 | }else if(/^user/.test(data.folders[i].id)){ |
---|
| 118 | var user_name = (data.folders[i].parentFolder.split(data.delimiter)[1] ? (data.folders[i].parentFolder.split(data.delimiter)[1] + data.delimiter) : ""); |
---|
| 119 | %> |
---|
| 120 | <option value="<%= data.folders[i].id%>"><%= user_name + folder_name%></option> |
---|
| 121 | <% } |
---|
[5542] | 122 | } |
---|
| 123 | %> |
---|
[5539] | 124 | </select> |
---|
| 125 | <!-- <input type="text" name="actionParameter[]" /> --> |
---|
| 126 | </fieldset> |
---|
| 127 | <fieldset> |
---|
[5591] | 128 | <input type="radio" name="actionType[]" value="redirect" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5801] | 129 | <label><%= get_lang("Forward to the address")%></label> |
---|
[5539] | 130 | <input type="text" name="addressRedirect" /> |
---|
| 131 | </fieldset> |
---|
| 132 | <fieldset> |
---|
[5591] | 133 | <input type="radio" name="actionType[]" value="setflag" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5801] | 134 | <label><%= get_lang("Mark as")%></label> |
---|
[5542] | 135 | <!-- |
---|
| 136 | Aguardando o problema do form do DataLayer ser resolvido. |
---|
| 137 | --> |
---|
[5539] | 138 | <select name="valueSetFlag"> |
---|
[5801] | 139 | <option value="flagged"><%= get_lang("Flagged")%></option> |
---|
| 140 | <option value="seen"><%= get_lang("Seen")%></option> |
---|
[5539] | 141 | </select> |
---|
| 142 | <!-- <input type="text" name="actionParameter[]" /> --> |
---|
| 143 | </fieldset> |
---|
| 144 | <fieldset> |
---|
[5591] | 145 | <input type="radio" name="actionType[]" value="fileintoTrash" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5801] | 146 | <label><%= get_lang("Seen")%></label> |
---|
[5539] | 147 | <input type="hidden" name="actionParameter[]" value="Trash"/> |
---|
| 148 | </fieldset> |
---|
| 149 | <fieldset class="fields-replyto"> |
---|
[5591] | 150 | <input type="radio" name="actionType[]" value="reject" onchange="$('.ui-widget-content :checkbox').parent().addClass(' hidden');"/> |
---|
[5801] | 151 | <label><%= get_lang("Reply with a message automatically")%></label> |
---|
[5539] | 152 | <textarea name="messageReject"></textarea> |
---|
| 153 | </fieldset> |
---|
| 154 | <fieldset> |
---|
| 155 | <input type="checkbox" name="actionType[]" value="fileintoInbox"/> |
---|
[5801] | 156 | <label><%= get_lang("Keep a copy of the message at your Inbox")%></label> |
---|
[5539] | 157 | <input type="hidden" name="actionParameter[]" value="INBOX"/> |
---|
| 158 | </fieldset> |
---|
| 159 | <!-- |
---|
| 160 | <fieldset class="fields-search-messages"> |
---|
| 161 | <label>Clique no botão "Buscar" para verificar se existem mensagens na sua Caixa de Entrada que |
---|
| 162 | atendem aos critérios especificados anteriormente.</label> |
---|
| 163 | <span class="button search">Buscar na caixa de entrada</span> |
---|
| 164 | </fieldset> |
---|
| 165 | <table class="hidden fields-search-messages-grid" id="fields-search-messages-grid"><tr><td/></tr></table> |
---|
| 166 | <div class="hidden fields-search-messages-grid-pager" id="fields-search-messages-grid-pager"></div> |
---|
| 167 | --> |
---|
| 168 | <div class="menu-container"> |
---|
[5801] | 169 | <a class="button back" href="#" >« <%= get_lang("Previous")%></a> |
---|
| 170 | <a class="button cancel" href="#"><%= get_lang("Cancel")%></a> |
---|
| 171 | <a class="button submit" href="#"><%= get_lang("Save")%></a> |
---|
[5539] | 172 | </div> |
---|
| 173 | </div> |
---|
| 174 | </div> |
---|
| 175 | <div class="vacation-details-container hidden"> |
---|
| 176 | <fieldset> |
---|
[5801] | 177 | <label><%= get_lang("Type a reply message")%></label> |
---|
[5539] | 178 | <ul class="message-tip-container"> |
---|
[5801] | 179 | <li class="message-tip"><%= get_lang("All messages will be answered automatically with the message indicated.")%></li> |
---|
[5539] | 180 | </ul> |
---|
| 181 | <textarea class="filter-textarea" name="vacation"></textarea> |
---|
| 182 | </fieldset> |
---|
| 183 | <div class="menu-container"> |
---|
[5801] | 184 | <a class="button back" href="#" title="Cancela e retorna á tela anterior">« <%= get_lang("Previous")%></a> |
---|
| 185 | <a class="button submit" href="#" title="Salva e retorna á tela anterior"><%= get_lang("Save")%></a> |
---|
[5539] | 186 | </div> |
---|
| 187 | </div> |
---|
| 188 | </form> |
---|