Changeset 3907
- Timestamp:
- 03/24/11 15:36:48 (12 years ago)
- Location:
- branches/2.2/mobile
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.ui_mobilemail.inc.php
r3829 r3907 229 229 // Mostra o corpo do e-mail 230 230 $this->template->set_var('body', strip_tags($msg['body'], $this->allowed_tags)); // Usa a função strip_tags() para filtrar 231 231 232 232 $operations = array(); 233 233 234 234 if($msg["Draft"] === "X") { 235 235 $operations["edit_draft"]["link"] = "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&type=use_draft"; … … 245 245 $operations["reply_all"]["lang"] = lang("Reply to all"); 246 246 } 247 247 248 248 $operations["delete"]["link"] = "index.php?menuaction=mobile.ui_mobilemail.confirm_delete_msg&msg_number=$msg_number&msg_folder=$msg_folder"; 249 $operations["delete"]["lang"] = lang("Delete"); 250 249 $operations["delete"]["lang"] = lang("Delete"); 250 251 251 foreach($operations as $index=>$operation) { 252 252 $this->template->set_var('operation_link', $operation["link"]); 253 253 $this->template->set_var('operation_id', $index); 254 $this->template->set_var('lang_operation', $operation["lang"]); 255 $this->template->parse('operation_box','operation_block', true); 256 } 257 254 $this->template->set_var('lang_operation', $operation["lang"]); 255 $this->template->parse('operation_box','operation_block', true); 256 } 257 258 258 if (!empty($msg['attachments'])) 259 259 { … … 268 268 } 269 269 } 270 270 271 271 $this->template->parse('attachment_alert_box','attachment_alert_block', true); 272 272 $this->template->set_var('attachment_message', $attachs); -
branches/2.2/mobile/templates/default/new_msg.tpl
r3892 r3907 63 63 <div id="operacao_lista"> 64 64 <div class="margin-rodape"> 65 < a href="index.php?menuaction=mobile.ui_home.index"><button id="cancel" class="btn-generico" >{lang_cancel}</button></a>66 <button id="save_draft" class="btn-generico" onclick="document.getElementById('mail_form').action='index.php?menuaction=mobile.ui_mobilemail.save_draft';document.getElementById('mail_form').submit()" >{lang_save_draft}</button> </a>65 <button onclick="location.href='{href_back}'" id="cancel" class="btn-generico" >{lang_cancel}</button> 66 <button id="save_draft" class="btn-generico" onclick="document.getElementById('mail_form').action='index.php?menuaction=mobile.ui_mobilemail.save_draft';document.getElementById('mail_form').submit()" >{lang_save_draft}</button> 67 67 <button name="action" id="reply_send" class="btn-generico" onclick="document.getElementById('mail_form').submit()">{lang_send}</button> 68 68 </div> -
branches/2.2/mobile/templates/default/view_msg.tpl
r3829 r3907 44 44 45 45 <!-- BEGIN operation_block --> 46 < a href="{operation_link}"><button id="{operation_id}" class="btn-generico" style="margin-top: 1px">{lang_operation}</button></a>46 <button onclick="location.href='{operation_link}'" id="{operation_id}" class="btn-generico" style="margin-top: 1px">{lang_operation}</button> 47 47 <!-- END operation_block -->
Note: See TracChangeset
for help on using the changeset viewer.