Skip to content
Snippets Groups Projects
Commit ff8c1c7b authored by rswindell's avatar rswindell
Browse files

Only 2 display options for email: "All" or "Unread".

parent 02a70fa5
No related branches found
No related tags found
No related merge requests found
......@@ -37,23 +37,35 @@ else {
if(new_query.length>0)
new_query+='&';
new_query+='show_messages=';
switch(ShowMsgs) {
case GET_ALL_MESSAGES:
template.show_choice='<a href="'+http_request.virtual_path+'?'+new_query+'Yours">'+show_messages_yours_html+'</a>';
template.show_choice+=show_messages_spacer_html;
template.show_choice+='<a href="'+http_request.virtual_path+'?'+new_query+'YourUnread">'+show_messages_your_unread_html+'</a>';
break;
case GET_MY_MESSAGES:
template.show_choice='<a href="'+http_request.virtual_path+'?'+new_query+'All">'+show_messages_all_html+'</a>';
template.show_choice+=show_messages_spacer_html;
template.show_choice+='<a href="'+http_request.virtual_path+'?'+new_query+'YourUnread">'+show_messages_your_unread_html+'</a>';
break;
case GET_MY_UNREAD_MESSAGES:
template.show_choice='<a href="'+http_request.virtual_path+'?'+new_query+'All">'+show_messages_all_html+'</a>';
template.show_choice+=show_messages_spacer_html;
template.show_choice+='<a href="'+http_request.virtual_path+'?'+new_query+'Yours">'+show_messages_yours_html+'</a>';
break;
}
if(sub=='mail') {
switch(ShowMsgs) {
case GET_ALL_MESSAGES:
case GET_MY_MESSAGES:
template.show_choice='<a href="'+http_request.virtual_path+'?'+new_query+'YourUnread">'+show_messages_your_unread_html+'</a>';
break;
case GET_MY_UNREAD_MESSAGES:
template.show_choice='<a href="'+http_request.virtual_path+'?'+new_query+'All">'+show_messages_all_html+'</a>';
break;
}
} else {
switch(ShowMsgs) {
case GET_ALL_MESSAGES:
template.show_choice='<a href="'+http_request.virtual_path+'?'+new_query+'Yours">'+show_messages_yours_html+'</a>';
template.show_choice+=show_messages_spacer_html;
template.show_choice+='<a href="'+http_request.virtual_path+'?'+new_query+'YourUnread">'+show_messages_your_unread_html+'</a>';
break;
case GET_MY_MESSAGES:
template.show_choice='<a href="'+http_request.virtual_path+'?'+new_query+'All">'+show_messages_all_html+'</a>';
template.show_choice+=show_messages_spacer_html;
template.show_choice+='<a href="'+http_request.virtual_path+'?'+new_query+'YourUnread">'+show_messages_your_unread_html+'</a>';
break;
case GET_MY_UNREAD_MESSAGES:
template.show_choice='<a href="'+http_request.virtual_path+'?'+new_query+'All">'+show_messages_all_html+'</a>';
template.show_choice+=show_messages_spacer_html;
template.show_choice+='<a href="'+http_request.virtual_path+'?'+new_query+'Yours">'+show_messages_yours_html+'</a>';
break;
}
}
}
/* Ensure that offset is an even multiple of max_messages */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment