$pv_param = "&pv=" . $pv; } else { $pv_param = ""; } $ret_val .= '<B><span> <A HREF="/forum/forum.php?max_rows=' . $max_rows . '&style=' . $style . '&offset=' . ($offset + $i) . '&forum_id=' . $forum_id . '' . $pv_param . '"> <B>' . $Language->getText('forum_forum', 'next_msg') . ' <IMG SRC="' . util_get_image_theme("t.png") . '" HEIGHT=15 WIDTH=15 BORDER=0 ALIGN=center></A></span>'; } else { $ret_val .= ' '; } $ret_val .= '</TD></TABLE>'; } } echo $ret_val; $crossref_fact = new CrossReferenceFactory($forum_id, ReferenceManager::REFERENCE_NATURE_FORUM, $group_id); $crossref_fact->fetchDatas(); if ($crossref_fact->getNbReferences() > 0) { echo '<b> ' . $Language->getText('cross_ref_fact_include', 'references') . '</b>'; $crossref_fact->DisplayCrossRefs(); } if (!isset($pv) || !$pv) { echo '<P> <P>'; echo '<h3>' . $Language->getText('forum_forum', 'start_new_thread') . ':</H3><a name="start_new_thread"></a>'; show_post_form($forum_id); } forum_footer($params); } else { forum_header(array('title' => $Language->getText('global', 'error'))); echo '<H1' . $Language->getText('forum_forum', 'choose_forum_first') . '</H1>'; forum_footer(array()); }
return 'message not found.\\n'; } $title_arr = array(); $title_arr[] = 'Message: ' . $msg_id; echo html_build_list_table_top($title_arr); echo "<TR><TD BGCOLOR=\"E3E3E3\">\n"; echo "BY: " . db_result($result, 0, "user_name") . "<BR>"; echo "DATE: " . date($sys_datefmt, db_result($result, 0, "date")) . "<BR>"; echo "SUBJECT: " . db_result($result, 0, "subject") . "<P>"; // correct making links with anchor tag - helix 2003-11-19 // echo util_make_links(nl2br(db_result($result,0, 'body'))); echo nl2br(util_make_links(db_result($result, 0, 'body'))); echo "</TD></TR></TABLE>"; /* Show entire thread */ echo '<BR> <P><H3>Thread View</H3>'; //highlight the current message in the thread list $current_message = $msg_id; echo show_thread(db_result($result, 0, 'thread_id')); /* Show post followup form */ echo '<P> <P>'; echo '<CENTER><h3>Post a followup to this message</h3></CENTER>'; show_post_form(db_result($result, 0, 'group_forum_id'), db_result($result, 0, 'thread_id'), $msg_id, db_result($result, 0, 'subject')); } else { forum_header(array('title' => 'Must choose a message first')); echo '<h1>You must choose a message first</H1>'; } forum_footer(array());