Exemplo n.º 1
0
         $date = format_date($item['origtime']);
         $time = format_time($item['origtime']);
         $display = array('0' => $cid, '1' => sprintf('%s %s', $date, $time), '2' => 2, '3' => ' ');
         # Compute icon
         if ($item['folder'] == 'INBOX') {
             $icon = '1';
         } else {
             $icon = '2';
         }
         $object->addEntry($display, '&msg=' . $msg, '&msg=' . $msg, $icon);
     }
     # Next Message
     $index++;
 }
 # Reset menu item base
 $object->resetBase();
 # More than one page?
 if ($last_page != 1) {
     # Menu_set
     if ($set == '1') {
         # Page 1
         $object->addSoftkey('1', Aastra_get_label('Play', $language), $XML_SERVER . '&action=play_message&orig_p=list&set=1');
         if ($page != 1) {
             $object->addSoftkey('2', Aastra_get_label('Previous', $language), $XML_SERVER . '&page=' . ($page - 1) . '&set=1');
         }
         $object->addSoftkey('3', Aastra_get_label('Details', $language), 'SoftKey:Select');
         $object->addSoftkey('4', Aastra_get_label('Delete', $language), $XML_SERVER . '&orig_d=list&action=del_message&set=1');
         if ($page != $last_page) {
             $object->addSoftkey('5', Aastra_get_label('Next', $language), $XML_SERVER . '&page=' . ($page + 1) . '&set=1');
         }
         $object->addSoftkey('6', Aastra_get_label('More', $language), $XML_SERVER . '&page=' . $page . '&set=2');