Changeset 3462 for branches/2.2/mobile/inc
- Timestamp:
- 11/04/10 13:44:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.ui_mobilemail.inc.php
r3349 r3462 461 461 // Cria a lista de e-mails 462 462 $mail_rows = ''; 463 $unread_msg_count = 0; 463 464 if ($this->number_of_messages != 0) 464 465 { 466 $unread_msg_count = 0; 465 467 foreach ($messages as $index => $msg) 466 468 { … … 473 475 $p->set_block('mobilemail_t', 'mail_row'); 474 476 $p->set_block('mobilemail_t', 'end_strong'); 475 $p->set_block('mobilemail_t', 'begin_strong'); 476 $p->set_var('unseen_bkg', "#FFFFFF"); 477 $p->set_block('mobilemail_t', 'begin_strong'); 478 $p->set_var('unseen_bkg', "#FFFFFF"); 479 $p->set_var('itememail_access_key', "0"); 480 $p->set_var('str_new_message', ""); 477 481 478 482 if (is_numeric($index)) … … 480 484 !empty($msg['from']['name']) ? $from = $msg['from']['name'] : $from = $msg['from']['email']; 481 485 !empty($msg['subject']) ? $subject = $msg['subject'] : $subject = lang('[empty subject]'); 482 if ($msg['Unseen'] == 'U'){ //Setando as mensagens nao lidas 483 $p->set_var('strong_unseen_begin', trim($p->fp('mobilemail_t', 'begin_strong'))); 484 $p->set_var('strong_unseen_end', trim($p->fp('mobilemail_t', 'end_strong'))); 485 $p->set_var('unseen_bkg', "#E0ECFF"); 486 //$p->set_var('unseen_bkg', "#E8EEF7"); 487 } 486 if ($msg['Unseen'] == 'U') 487 { //Setando as mensagens nao lidas 488 $p->set_var('strong_unseen_begin', trim($p->fp('mobilemail_t', 'begin_strong'))); 489 $p->set_var('strong_unseen_end', trim($p->fp('mobilemail_t', 'end_strong'))); 490 $p->set_var('unseen_bkg', "#E0ECFF"); 491 $p->set_var('itememail_access_key', "9"); 492 $unread_msg_count = $unread_msg_count + 1; 493 $p->set_var('str_new_message', lang("New message")); 494 } 488 495 $p->set_var('from', $from); 489 496 $p->set_var('subject', $subject); … … 505 512 $p->set_block('mobilemail_t', 'mail_list'); 506 513 $p->set_var('mail_rows', $mail_rows); 507 514 $p->set_var('messages_total', $this->number_of_messages); 515 $p->set_var('unread_messages_total', $unread_msg_count); 516 if ($unread_msg_count) 517 { 518 $p->set_var('(unread_messages_total)', '('.$unread_msg_count.')'); 519 } 520 508 521 //$p->pfp('out', 'mail_list'); 509 522 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out', 'mail_list')); … … 708 721 709 722 if($params) 723 { 710 724 $msg = $this->imap_functions->get_info_msg($params); 711 725 } 712 726 713 727 $p->set_block('new_msg_t', 'msg_header');
Note: See TracChangeset
for help on using the changeset viewer.