diff --git a/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php b/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php index d1beda3..559202f 100644 --- a/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php +++ b/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php @@ -59,9 +59,10 @@ if(checkSession()) { if (!isset($fStartIndex)) { $iStartIndex = 0 ;} else { $iStartIndex = $fStartIndex ;} - $oSearchResults = & new PatternBrowseableSearchResults ($sQuery, 14, $aColumns, $aColumnTypes, $aColumnNames, $aHyperLinkURL, $aQueryStringCols, $aQueryStringVars); + $oSearchResults = & new PatternBrowseableSearchResults ($sQuery, 13, $aColumns, $aColumnTypes, $aColumnNames, $aHyperLinkURL, $aQueryStringCols, $aQueryStringVars); $oSearchResults->setStartIndex($iStartIndex); $oSearchResults->setQueryString("&fDocumentID=$fDocumentID&fForDiscussion=1"); + $oPatternCustom->addHtml(goBack()); $oPatternCustom->addHtml($oSearchResults->render()); // On opening, increment the number of views of current thread & update database diff --git a/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc b/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc index 9b2e828..53a058e 100644 --- a/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc @@ -9,6 +9,11 @@ */ +function goBack(){ + global $default; + return "
graphicsUrl/widgets/back.gif\" onmouseover=\"this.style.cursor='hand'\" onclick=\"javascript: history.go(-1);\" >
"; +} + // If there are no threads to view for a document function getViewFailPage($sMessage) {