[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"> |
---|
[6348] | 12 | <input type="hidden" class="imapDelimiter" value="<%= data.delimiter %>"></input> |
---|
[5539] | 13 | <div class="rule-details-container"> |
---|
[5801] | 14 | <h3><a href="#"><%= get_lang("Criteria")%></a></h3> |
---|
[5539] | 15 | <div> |
---|
| 16 | <fieldset> |
---|
[5801] | 17 | <label class="small"><%= get_lang("Name of the rule")%></label> |
---|
[5539] | 18 | <input type="text" name="name" /> |
---|
| 19 | </fieldset> |
---|
| 20 | <fieldset> |
---|
[5801] | 21 | <label class="small"><%= get_lang("Sender")%></label> |
---|
[5539] | 22 | <select name="criteriaOperator[]"> |
---|
[5930] | 23 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
[5894] | 24 | <option value="="><%= get_lang("is equal to")%></option> |
---|
[5801] | 25 | <option value="!*"><%= get_lang("doesn't contain the phrase")%></option> |
---|
| 26 | <option value="^"><%= get_lang("starting with")%></option> |
---|
| 27 | <option value="$"><%= get_lang("ends with")%></option> |
---|
[5539] | 28 | |
---|
| 29 | </select> |
---|
| 30 | <input type="text" name="criteriaValue[]" /> |
---|
[5648] | 31 | <input type="hidden" name="criteriaType[]" value="from"/> |
---|
[5539] | 32 | </fieldset> |
---|
| 33 | <fieldset> |
---|
[5801] | 34 | <label class="small"><%= get_lang("Receiver")%></label> |
---|
[5539] | 35 | <select name="criteriaOperator[]"> |
---|
[5930] | 36 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
[5894] | 37 | <option value="="><%= get_lang("is equal to")%></option> |
---|
[5801] | 38 | <option value="!*"><%= get_lang("doesn't contain the phrase")%></option> |
---|
| 39 | <option value="^"><%= get_lang("starting with")%></option> |
---|
| 40 | <option value="$"><%= get_lang("ends with")%></option> |
---|
[5539] | 41 | </select> |
---|
| 42 | <input type="text" name="criteriaValue[]" /> |
---|
[5648] | 43 | <input type="hidden" name="criteriaType[]" value="to"/> |
---|
[5539] | 44 | </fieldset> |
---|
| 45 | <fieldset> |
---|
[5801] | 46 | <label class="small"><%= get_lang("Subject")%></label> |
---|
[5539] | 47 | <select name="criteriaOperator[]"> |
---|
[5930] | 48 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
[5894] | 49 | <option value="="><%= get_lang("is equal to")%></option> |
---|
[5801] | 50 | <option value="!*"><%= get_lang("doesn't contain the phrase")%></option> |
---|
| 51 | <option value="^"><%= get_lang("starting with")%></option> |
---|
| 52 | <option value="$"><%= get_lang("ends with")%></option> |
---|
[5539] | 53 | |
---|
| 54 | </select> |
---|
| 55 | <input type="text" name="criteriaValue[]" /> |
---|
| 56 | <input type="hidden" name="criteriaType[]" value="subject"/> |
---|
| 57 | </fieldset> |
---|
| 58 | <fieldset> |
---|
[5801] | 59 | <label class="small"><%= get_lang("Message")%></label> |
---|
[5539] | 60 | <select name="criteriaOperator[]"> |
---|
[5930] | 61 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
[5894] | 62 | <option value="="><%= get_lang("is equal to")%></option> |
---|
[5801] | 63 | <option value="!*"><%= get_lang("doesn't contain the phrase")%></option> |
---|
| 64 | <option value="^"><%= get_lang("starting with")%></option> |
---|
| 65 | <option value="$"><%= get_lang("ends with")%></option> |
---|
[5539] | 66 | </select> |
---|
| 67 | <input type="text" name="criteriaValue[]" /> |
---|
| 68 | <input type="hidden" name="criteriaType[]" value="body"/> |
---|
| 69 | </fieldset> |
---|
| 70 | <fieldset> |
---|
[6001] | 71 | <label class="small"><%= get_lang("Size")%>(KB)</label> |
---|
[5539] | 72 | <select name="criteriaOperator[]"> |
---|
[6000] | 73 | <option value=">"><%= get_lang("is over than")%></option> |
---|
| 74 | <option value="<"><%= get_lang("is under than")%></option> |
---|
[5539] | 75 | </select> |
---|
[6126] | 76 | <input type="text" class="sizeRule" name="criteriaValue[]" /> |
---|
[5539] | 77 | <input type="hidden" name="criteriaType[]" value="size"/> |
---|
| 78 | </fieldset> |
---|
| 79 | <fieldset> |
---|
[6348] | 80 | <input type="hidden" name="criteriaOperator[]" value="^"></input> |
---|
| 81 | <input type="checkbox" name="criteriaValue[]" value="*.*" class="hasAttachment"/> |
---|
| 82 | <input type="hidden" name="criteriaType[]" value="hasAttachment"/> |
---|
[6041] | 83 | <label><%= get_lang("The message has attachment")%></label> |
---|
[5539] | 84 | </fieldset> |
---|
| 85 | <fieldset class="fields-isexact"> |
---|
| 86 | <fieldset> |
---|
[5591] | 87 | <input type="radio" name="isExact" value="and" checked="checked"/> |
---|
[5801] | 88 | <label><%= get_lang("Attend all the criteria")%></label> |
---|
[5539] | 89 | </fieldset> |
---|
| 90 | <fieldset> |
---|
| 91 | <input type="radio" name="isExact" value="or"/> |
---|
[5801] | 92 | <label><%= get_lang("Attend any of the criteria")%></label> |
---|
[5539] | 93 | </fieldset> |
---|
| 94 | </fieldset> |
---|
| 95 | <div class="menu-container"> |
---|
[5801] | 96 | <a class="button cancel" href="#"><%= get_lang("Cancel")%></a> |
---|
| 97 | <a class="button forth" href="#"><%= get_lang("Continue")%> »</a> |
---|
[5539] | 98 | </div> |
---|
| 99 | </div> |
---|
[5801] | 100 | <h3><a href="#"><%= get_lang("Actions")%></a></h3> |
---|
[5539] | 101 | <div> |
---|
| 102 | <ul class="message-tip-container"> |
---|
[5801] | 103 | <li class="message-tip"><%= get_lang("Actions to be performed on messages that attend the criteria specified above.")%></li> |
---|
| 104 | <li class="message-tip"><%= get_lang("These actions apply only to new messages arriving.")%></li> |
---|
[5539] | 105 | </ul> |
---|
| 106 | <fieldset class="select-folderlist"> |
---|
[5591] | 107 | <input type="radio" name="actionType[]" value="fileinto" checked="checked" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5801] | 108 | <label><%= get_lang("Archive in folder")%></label> |
---|
[5542] | 109 | <!-- |
---|
| 110 | Aguardando o problema do form do DataLayer ser resolvido. |
---|
| 111 | --> |
---|
[5801] | 112 | <select name="valueFileInto" style="width:150px"> |
---|
| 113 | <%for(var i=0; i < data.folders.length; i++){ |
---|
| 114 | var folder_name = specialFolders[data.folders[i].commonName] ? get_lang(data.folders[i].commonName) : data.folders[i].commonName; |
---|
[5542] | 115 | if(/^INBOX/.test(data.folders[i].id)){ %> |
---|
[5801] | 116 | <option value="<%= data.folders[i].id%>"><%= folder_name%></option> |
---|
[5542] | 117 | <% |
---|
[5801] | 118 | }else if(/^user/.test(data.folders[i].id)){ |
---|
| 119 | var user_name = (data.folders[i].parentFolder.split(data.delimiter)[1] ? (data.folders[i].parentFolder.split(data.delimiter)[1] + data.delimiter) : ""); |
---|
| 120 | %> |
---|
| 121 | <option value="<%= data.folders[i].id%>"><%= user_name + folder_name%></option> |
---|
| 122 | <% } |
---|
[5542] | 123 | } |
---|
| 124 | %> |
---|
[5539] | 125 | </select> |
---|
| 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 | </fieldset> |
---|
| 143 | <fieldset> |
---|
[5591] | 144 | <input type="radio" name="actionType[]" value="fileintoTrash" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5862] | 145 | <label><%= get_lang("Trash")%></label> |
---|
[5539] | 146 | <input type="hidden" name="actionParameter[]" value="Trash"/> |
---|
| 147 | </fieldset> |
---|
| 148 | <fieldset class="fields-replyto"> |
---|
[5591] | 149 | <input type="radio" name="actionType[]" value="reject" onchange="$('.ui-widget-content :checkbox').parent().addClass(' hidden');"/> |
---|
[5801] | 150 | <label><%= get_lang("Reply with a message automatically")%></label> |
---|
[5539] | 151 | <textarea name="messageReject"></textarea> |
---|
| 152 | </fieldset> |
---|
| 153 | <fieldset> |
---|
| 154 | <input type="checkbox" name="actionType[]" value="fileintoInbox"/> |
---|
[5801] | 155 | <label><%= get_lang("Keep a copy of the message at your Inbox")%></label> |
---|
[5539] | 156 | <input type="hidden" name="actionParameter[]" value="INBOX"/> |
---|
| 157 | </fieldset> |
---|
| 158 | <div class="menu-container"> |
---|
[5801] | 159 | <a class="button back" href="#" >« <%= get_lang("Previous")%></a> |
---|
| 160 | <a class="button cancel" href="#"><%= get_lang("Cancel")%></a> |
---|
[5930] | 161 | <a class="button forth2" href="#"><%= get_lang("Continue")%> »</a> |
---|
[5801] | 162 | <a class="button submit" href="#"><%= get_lang("Save")%></a> |
---|
[5539] | 163 | </div> |
---|
| 164 | </div> |
---|
[5930] | 165 | |
---|
| 166 | <h3><a href="#"><%= get_lang("Apply filter")%></a></h3> |
---|
| 167 | <div> |
---|
| 168 | <fieldset> |
---|
[6387] | 169 | <div id="filtergrid-container" class="empty-container"> |
---|
| 170 | <span class="message"><%= 'nenhuma mensagem pesquisada' %></span> |
---|
| 171 | </div> |
---|
[5930] | 172 | <fieldset class="fields-search-messages" style="border: none;"> |
---|
[6041] | 173 | <span class="button ui-button-text-only search menu-container"><%= get_lang("Search Inbox")%></span> |
---|
[5930] | 174 | </fieldset> |
---|
| 175 | </fieldset> |
---|
| 176 | <div class="menu-container"> |
---|
| 177 | <a class="button back2" href="#" >« <%= get_lang("Previous")%></a> |
---|
| 178 | <a class="button cancel" href="#"><%= get_lang("Cancel")%></a> |
---|
| 179 | <a class="button submit" href="#"><%= get_lang("Save")%></a> |
---|
| 180 | </div> |
---|
| 181 | </div> |
---|
[5539] | 182 | </div> |
---|
| 183 | <div class="vacation-details-container hidden"> |
---|
| 184 | <fieldset> |
---|
[5801] | 185 | <label><%= get_lang("Type a reply message")%></label> |
---|
[5539] | 186 | <ul class="message-tip-container"> |
---|
[5801] | 187 | <li class="message-tip"><%= get_lang("All messages will be answered automatically with the message indicated.")%></li> |
---|
[5539] | 188 | </ul> |
---|
| 189 | <textarea class="filter-textarea" name="vacation"></textarea> |
---|
| 190 | </fieldset> |
---|
| 191 | <div class="menu-container"> |
---|
[6128] | 192 | <a class="button back" href="#" title="<%= get_lang("Cancel and returns the previous screen")%>">« <%= get_lang("Previous")%></a> |
---|
| 193 | <a class="button submit" href="#" title="<%= get_lang("Save and returns the previous screen")%>"><%= get_lang("Save")%></a> |
---|
[5539] | 194 | </div> |
---|
| 195 | </div> |
---|
| 196 | </form> |
---|