[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[]"> |
---|
[5930] | 22 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
[5894] | 23 | <option value="="><%= get_lang("is equal to")%></option> |
---|
[5801] | 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[]"> |
---|
[5930] | 35 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
[5894] | 36 | <option value="="><%= get_lang("is equal to")%></option> |
---|
[5801] | 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[]"> |
---|
[5930] | 47 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
[5894] | 48 | <option value="="><%= get_lang("is equal to")%></option> |
---|
[5801] | 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[]"> |
---|
[5930] | 60 | <option value="*"><%= get_lang("contains the phrase")%></option> |
---|
[5894] | 61 | <option value="="><%= get_lang("is equal to")%></option> |
---|
[5801] | 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> |
---|
[6001] | 70 | <label class="small"><%= get_lang("Size")%>(KB)</label> |
---|
[5539] | 71 | <select name="criteriaOperator[]"> |
---|
[6000] | 72 | <option value=">"><%= get_lang("is over than")%></option> |
---|
| 73 | <option value="<"><%= get_lang("is under than")%></option> |
---|
[5539] | 74 | </select> |
---|
[6126] | 75 | <input type="text" class="sizeRule" name="criteriaValue[]" /> |
---|
[5539] | 76 | <input type="hidden" name="criteriaType[]" value="size"/> |
---|
| 77 | </fieldset> |
---|
| 78 | <fieldset> |
---|
| 79 | <input type="checkbox" value="hasAttachment" name="hasAttachment" /> |
---|
[6041] | 80 | <label><%= get_lang("The message has attachment")%></label> |
---|
[5539] | 81 | </fieldset> |
---|
| 82 | <fieldset class="fields-isexact"> |
---|
| 83 | <fieldset> |
---|
[5591] | 84 | <input type="radio" name="isExact" value="and" checked="checked"/> |
---|
[5801] | 85 | <label><%= get_lang("Attend all the criteria")%></label> |
---|
[5539] | 86 | </fieldset> |
---|
| 87 | <fieldset> |
---|
| 88 | <input type="radio" name="isExact" value="or"/> |
---|
[5801] | 89 | <label><%= get_lang("Attend any of the criteria")%></label> |
---|
[5539] | 90 | </fieldset> |
---|
| 91 | </fieldset> |
---|
| 92 | <div class="menu-container"> |
---|
[5801] | 93 | <a class="button cancel" href="#"><%= get_lang("Cancel")%></a> |
---|
| 94 | <a class="button forth" href="#"><%= get_lang("Continue")%> »</a> |
---|
[5539] | 95 | </div> |
---|
| 96 | </div> |
---|
[5801] | 97 | <h3><a href="#"><%= get_lang("Actions")%></a></h3> |
---|
[5539] | 98 | <div> |
---|
| 99 | <ul class="message-tip-container"> |
---|
[5801] | 100 | <li class="message-tip"><%= get_lang("Actions to be performed on messages that attend the criteria specified above.")%></li> |
---|
| 101 | <li class="message-tip"><%= get_lang("These actions apply only to new messages arriving.")%></li> |
---|
[5539] | 102 | </ul> |
---|
| 103 | <fieldset class="select-folderlist"> |
---|
[5591] | 104 | <input type="radio" name="actionType[]" value="fileinto" checked="checked" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5801] | 105 | <label><%= get_lang("Archive in folder")%></label> |
---|
[5542] | 106 | <!-- |
---|
| 107 | Aguardando o problema do form do DataLayer ser resolvido. |
---|
| 108 | --> |
---|
[5801] | 109 | <select name="valueFileInto" style="width:150px"> |
---|
| 110 | <%for(var i=0; i < data.folders.length; i++){ |
---|
| 111 | var folder_name = specialFolders[data.folders[i].commonName] ? get_lang(data.folders[i].commonName) : data.folders[i].commonName; |
---|
[5542] | 112 | if(/^INBOX/.test(data.folders[i].id)){ %> |
---|
[5801] | 113 | <option value="<%= data.folders[i].id%>"><%= folder_name%></option> |
---|
[5542] | 114 | <% |
---|
[5801] | 115 | }else if(/^user/.test(data.folders[i].id)){ |
---|
| 116 | var user_name = (data.folders[i].parentFolder.split(data.delimiter)[1] ? (data.folders[i].parentFolder.split(data.delimiter)[1] + data.delimiter) : ""); |
---|
| 117 | %> |
---|
| 118 | <option value="<%= data.folders[i].id%>"><%= user_name + folder_name%></option> |
---|
| 119 | <% } |
---|
[5542] | 120 | } |
---|
| 121 | %> |
---|
[5539] | 122 | </select> |
---|
| 123 | </fieldset> |
---|
| 124 | <fieldset> |
---|
[5591] | 125 | <input type="radio" name="actionType[]" value="redirect" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5801] | 126 | <label><%= get_lang("Forward to the address")%></label> |
---|
[5539] | 127 | <input type="text" name="addressRedirect" /> |
---|
| 128 | </fieldset> |
---|
| 129 | <fieldset> |
---|
[5591] | 130 | <input type="radio" name="actionType[]" value="setflag" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5801] | 131 | <label><%= get_lang("Mark as")%></label> |
---|
[5542] | 132 | <!-- |
---|
| 133 | Aguardando o problema do form do DataLayer ser resolvido. |
---|
| 134 | --> |
---|
[5539] | 135 | <select name="valueSetFlag"> |
---|
[5801] | 136 | <option value="flagged"><%= get_lang("Flagged")%></option> |
---|
| 137 | <option value="seen"><%= get_lang("Seen")%></option> |
---|
[5539] | 138 | </select> |
---|
| 139 | </fieldset> |
---|
| 140 | <fieldset> |
---|
[5591] | 141 | <input type="radio" name="actionType[]" value="fileintoTrash" onchange="$('.ui-widget-content :checkbox').parent().removeClass(' hidden');"/> |
---|
[5862] | 142 | <label><%= get_lang("Trash")%></label> |
---|
[5539] | 143 | <input type="hidden" name="actionParameter[]" value="Trash"/> |
---|
| 144 | </fieldset> |
---|
| 145 | <fieldset class="fields-replyto"> |
---|
[5591] | 146 | <input type="radio" name="actionType[]" value="reject" onchange="$('.ui-widget-content :checkbox').parent().addClass(' hidden');"/> |
---|
[5801] | 147 | <label><%= get_lang("Reply with a message automatically")%></label> |
---|
[5539] | 148 | <textarea name="messageReject"></textarea> |
---|
| 149 | </fieldset> |
---|
| 150 | <fieldset> |
---|
| 151 | <input type="checkbox" name="actionType[]" value="fileintoInbox"/> |
---|
[5801] | 152 | <label><%= get_lang("Keep a copy of the message at your Inbox")%></label> |
---|
[5539] | 153 | <input type="hidden" name="actionParameter[]" value="INBOX"/> |
---|
| 154 | </fieldset> |
---|
| 155 | <div class="menu-container"> |
---|
[5801] | 156 | <a class="button back" href="#" >« <%= get_lang("Previous")%></a> |
---|
| 157 | <a class="button cancel" href="#"><%= get_lang("Cancel")%></a> |
---|
[5930] | 158 | <a class="button forth2" href="#"><%= get_lang("Continue")%> »</a> |
---|
[5801] | 159 | <a class="button submit" href="#"><%= get_lang("Save")%></a> |
---|
[5539] | 160 | </div> |
---|
| 161 | </div> |
---|
[5930] | 162 | |
---|
| 163 | <h3><a href="#"><%= get_lang("Apply filter")%></a></h3> |
---|
| 164 | <div> |
---|
| 165 | <fieldset> |
---|
| 166 | <table class="hidden fields-search-messages-grid" id="fields-search-messages-grid"><tr><td/></tr></table> |
---|
| 167 | <div class="hidden fields-search-messages-grid-pager" id="fields-search-messages-grid-pager"></div> |
---|
| 168 | <fieldset class="fields-search-messages" style="border: none;"> |
---|
[6041] | 169 | <span class="button ui-button-text-only search menu-container"><%= get_lang("Search Inbox")%></span> |
---|
[5930] | 170 | </fieldset> |
---|
| 171 | </fieldset> |
---|
| 172 | <div class="menu-container"> |
---|
| 173 | <a class="button back2" href="#" >« <%= get_lang("Previous")%></a> |
---|
| 174 | <a class="button cancel" href="#"><%= get_lang("Cancel")%></a> |
---|
| 175 | <a class="button submit" href="#"><%= get_lang("Save")%></a> |
---|
| 176 | </div> |
---|
| 177 | </div> |
---|
[5539] | 178 | </div> |
---|
| 179 | <div class="vacation-details-container hidden"> |
---|
| 180 | <fieldset> |
---|
[5801] | 181 | <label><%= get_lang("Type a reply message")%></label> |
---|
[5539] | 182 | <ul class="message-tip-container"> |
---|
[5801] | 183 | <li class="message-tip"><%= get_lang("All messages will be answered automatically with the message indicated.")%></li> |
---|
[5539] | 184 | </ul> |
---|
| 185 | <textarea class="filter-textarea" name="vacation"></textarea> |
---|
| 186 | </fieldset> |
---|
| 187 | <div class="menu-container"> |
---|
[6128] | 188 | <a class="button back" href="#" title="<%= get_lang("Cancel and returns the previous screen")%>">« <%= get_lang("Previous")%></a> |
---|
| 189 | <a class="button submit" href="#" title="<%= get_lang("Save and returns the previous screen")%>"><%= get_lang("Save")%></a> |
---|
[5539] | 190 | </div> |
---|
| 191 | </div> |
---|
| 192 | </form> |
---|