Changeset 374 in subversion
- Timestamp:
- Nov 21, 2006 3:02:48 AM (7 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 6 added
- 6 edited
-
program/js/app.js (modified) (5 diffs)
-
program/localization/en_US/labels.inc (modified) (2 diffs)
-
program/steps/mail/show.inc (modified) (4 diffs)
-
skins/default/images/buttons/first_act.png (added)
-
skins/default/images/buttons/first_pas.png (added)
-
skins/default/images/buttons/first_sel.png (added)
-
skins/default/images/buttons/last_act.png (added)
-
skins/default/images/buttons/last_pas.png (added)
-
skins/default/images/buttons/last_sel.png (added)
-
skins/default/templates/addressbook.html (modified) (1 diff)
-
skins/default/templates/mail.html (modified) (1 diff)
-
skins/default/templates/message.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r368 r374 142 142 this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'delete', 'viewsource', 'print', 'load-attachment', true); 143 143 if (this.env.next_uid) 144 { 144 145 this.enable_command('nextmessage', true); 146 this.enable_command('lastmessage', true); 147 } 145 148 if (this.env.prev_uid) 149 { 146 150 this.enable_command('previousmessage', true); 151 this.enable_command('firstmessage', true); 152 } 147 153 } 148 154 … … 479 485 break; 480 486 487 case 'lastpage': 488 this.list_page('last'); 489 break; 490 481 491 case 'previouspage': 482 492 this.list_page('prev'); 493 break; 494 495 case 'firstpage': 496 this.list_page('first'); 483 497 break; 484 498 … … 657 671 break; 658 672 673 case 'lastmessage': 674 if (this.env.last_uid) 675 this.show_message(this.env.last_uid); 676 break; 677 659 678 case 'previousmessage': 660 679 if (this.env.prev_uid) 661 680 this.show_message(this.env.prev_uid); 681 break; 682 683 case 'firstmessage': 684 if (this.env.first_uid) 685 this.show_message(this.env.first_uid); 662 686 break; 663 687 … … 1096 1120 if (page=='next') 1097 1121 page = this.env.current_page+1; 1122 if (page=='last') 1123 page = this.env.pagecount; 1098 1124 if (page=='prev' && this.env.current_page>1) 1099 1125 page = this.env.current_page-1; 1126 if (page=='first' && this.env.current_page>1) 1127 page = 1; 1100 1128 1101 1129 if (page > 0 && page <= this.env.pagecount) … … 2635 2663 { 2636 2664 this.enable_command('nextpage', (this.env.pagecount > this.env.current_page)); 2665 this.enable_command('lastpage', (this.env.pagecount > this.env.current_page)); 2637 2666 this.enable_command('previouspage', (this.env.current_page > 1)); 2667 this.enable_command('firstpage', (this.env.current_page > 1)); 2638 2668 } 2639 2669 -
trunk/roundcubemail/program/localization/en_US/labels.inc
r356 r374 99 99 $labels['printmessage'] = 'Print this message'; 100 100 $labels['previousmessages'] = 'Show previous set of messages'; 101 $labels['firstmessages'] = 'Show first set of messages'; 101 102 $labels['nextmessages'] = 'Show next set of messages'; 103 $labels['lastmessages'] = 'Show last set of messages'; 102 104 $labels['backtolist'] = 'Back to message list'; 103 105 $labels['viewsource'] = 'Show source'; … … 172 174 173 175 $labels['previouspage'] = 'Show previous set'; 176 $labels['firstpage'] = 'Show first set'; 174 177 $labels['nextpage'] = 'Show next set'; 178 $labels['lastpage'] = 'Show last set'; 175 179 176 180 -
trunk/roundcubemail/program/steps/mail/show.inc
r330 r374 61 61 62 62 $next = $prev = -1; 63 // get previous and next message UID63 // get previous, first, next and last message UID 64 64 if (!($_SESSION['sort_col'] == 'date' && $_SESSION['sort_order'] == 'DESC') && 65 65 $IMAP->get_capability('sort')) … … 70 70 $MESSAGE['index'] = array_search((string)$MESSAGE['UID'], $a_msg_index, TRUE); 71 71 $prev = isset($a_msg_index[$MESSAGE['index']-1]) ? $a_msg_index[$MESSAGE['index']-1] : -1 ; 72 $first = count($a_msg_index)>0 ? $a_msg_index[0] : -1; 72 73 $next = isset($a_msg_index[$MESSAGE['index']+1]) ? $a_msg_index[$MESSAGE['index']+1] : -1 ; 74 $last = count($a_msg_index)>0 ? $a_msg_index[count($a_msg_index)-1] : -1; 73 75 } 74 76 else … … 77 79 $seq = $IMAP->get_id($MESSAGE['UID']); 78 80 $prev = $IMAP->get_uid($seq + 1); 81 $first = $IMAP->get_uid($IMAP->messagecount()); 79 82 $next = $IMAP->get_uid($seq - 1); 83 $last = $IMAP->get_uid(1); 80 84 $MESSAGE['index'] = $IMAP->messagecount() - $seq; 81 85 } … … 83 87 if ($prev > 0) 84 88 $javascript .= sprintf("\n%s.set_env('prev_uid', '%s');", $JS_OBJECT_NAME, $prev); 89 if ($first >0) 90 $javascript .= sprintf("\n%s.set_env('first_uid', '%s');", $JS_OBJECT_NAME, $first); 85 91 if ($next > 0) 86 92 $javascript .= sprintf("\n%s.set_env('next_uid', '%s');", $JS_OBJECT_NAME, $next); 93 if ($last >0) 94 $javascript .= sprintf("\n%s.set_env('last_uid', '%s');", $JS_OBJECT_NAME, $last); 87 95 88 96 $OUTPUT->add_script($javascript); -
trunk/roundcubemail/skins/default/templates/addressbook.html
r267 r374 21 21 22 22 <div id="abookcountbar"> 23 <roundcube:button command="firstpage" imageSel="/images/buttons/first_sel.png" imageAct="/images/buttons/first_act.png" imagePas="/images/buttons/first_pas.png" width="11" height="11" title="firstpage" /> 23 24 <roundcube:button command="previouspage" imageSel="/images/buttons/previous_sel.png" imageAct="/images/buttons/previous_act.png" imagePas="/images/buttons/previous_pas.png" width="11" height="11" title="previouspage" /> 24 25 <roundcube:object name="recordsCountDisplay" /> 25 26 <roundcube:button command="nextpage" imageSel="/images/buttons/next_sel.png" imageAct="/images/buttons/next_act.png" imagePas="/images/buttons/next_pas.png" width="11" height="11" title="nextpage" /> 27 <roundcube:button command="lastpage" imageSel="/images/buttons/last_sel.png" imageAct="/images/buttons/last_act.png" imagePas="/images/buttons/last_pas.png" width="11" height="11" title="lastpage" /> 26 28 </div> 27 29 -
trunk/roundcubemail/skins/default/templates/mail.html
r334 r374 26 26 27 27 <div id="messagecountbar"> 28 <roundcube:button command="firstpage" imageSel="/images/buttons/first_sel.png" imageAct="/images/buttons/first_act.png" imagePas="/images/buttons/first_pas.png" width="11" height="11" title="firstmessages" /> 28 29 <roundcube:button command="previouspage" imageSel="/images/buttons/previous_sel.png" imageAct="/images/buttons/previous_act.png" imagePas="/images/buttons/previous_pas.png" width="11" height="11" title="previousmessages" /> 29 30 <roundcube:object name="messageCountDisplay" /> 30 31 <roundcube:button command="nextpage" imageSel="/images/buttons/next_sel.png" imageAct="/images/buttons/next_act.png" imagePas="/images/buttons/next_pas.png" width="11" height="11" title="nextmessages" /> 32 <roundcube:button command="lastpage" imageSel="/images/buttons/last_sel.png" imageAct="/images/buttons/last_act.png" imagePas="/images/buttons/last_pas.png" width="11" height="11" title="lastmessages" /> 31 33 </div> 32 34 -
trunk/roundcubemail/skins/default/templates/message.html
r267 r374 12 12 13 13 <div id="messagecountbar"> 14 <roundcube:button command="firstmessage" imageSel="/images/buttons/first_sel.png" imageAct="/images/buttons/first_act.png" imagePas="/images/buttons/first_pas.png" width="11" height="11" title="firstmessages" /> 14 15 <roundcube:button command="previousmessage" imageSel="/images/buttons/previous_sel.png" imageAct="/images/buttons/previous_act.png" imagePas="/images/buttons/previous_pas.png" width="11" height="11" title="previousmessages" /> 15 16 <roundcube:object name="messageCountDisplay" /> 16 17 <roundcube:button command="nextmessage" imageSel="/images/buttons/next_sel.png" imageAct="/images/buttons/next_act.png" imagePas="/images/buttons/next_pas.png" width="11" height="11" title="nextmessages" /> 18 <roundcube:button command="lastmessage" imageSel="/images/buttons/last_sel.png" imageAct="/images/buttons/last_act.png" imagePas="/images/buttons/last_pas.png" width="11" height="11" title="lastmessages" /> 17 19 </div> 18 20
Note: See TracChangeset
for help on using the changeset viewer.
