Skip to content
Snippets Groups Projects
Commit 9d169d59 authored by deuce's avatar deuce
Browse files

Generate next and prev links.

parent 7cecc5fd
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,14 @@ if(msg.attachments!=undefined) { ...@@ -54,6 +54,14 @@ if(msg.attachments!=undefined) {
if(template.hdr != null) { if(template.hdr != null) {
template.title="Message: "+template.hdr.subject; template.title="Message: "+template.hdr.subject;
} }
var tmp=find_np_message(template.hdr.offset,true);
if(tmp!=undefined)
template.nextlink='<a href="msg.ssjs?msg_sub='+sub+'&amp;message='+tmp+'">'+next_msg_html+'</a>';
var tmp=find_np_message(template.hdr.offset,false);
if(tmp!=undefined)
template.prevlink='<a href="msg.ssjs?msg_sub='+sub+'&amp;message='+tmp+'">'+prev_msg_html+'</a>';
write_template("header.inc"); write_template("header.inc");
write_template("msgs/msg.inc"); write_template("msgs/msg.inc");
write_template("footer.inc"); write_template("footer.inc");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment