Previous Topic: |
'.$r[1].' |
';
} else {
if ($r[3]) { /* Moved topic, let's try to find another, */
$nn = 1; continue;
}
$next = '
Next Topic: |
'.$r[1].' |
';
}
}
unset($c);
if ($np) {
$r = db_saq(q_limit('SELECT m.id, m.subject FROM fud30_tv_'. $frm_id .' tv INNER JOIN fud30_thread t ON tv.thread_id=t.id INNER JOIN fud30_msg m ON t.root_msg_id=m.id WHERE tv.seq IN('. ($id - 10) .', '. ($id - 2) .') ORDER BY tv.seq ASC', 1));
$prev = '
Previous Topic: |
'.$r[1].' |
';
}
if ($nn) {
$r = db_saq(q_limit('SELECT m.id, m.subject FROM fud30_tv_'. $frm_id .' tv INNER JOIN fud30_thread t ON tv.thread_id=t.id INNER JOIN fud30_msg m ON t.root_msg_id=m.id WHERE tv.seq IN('. ($id + 2) .', '. ($id + 10) .') ORDER BY tv.seq DESC', 1));
$next = '
Next Topic: |
'.$r[1].' |
';
}
}
?>