Commit 841cbf696a675881b0a8f1b8b77316a47088d28b

Authored by omar
1 parent 0fc8f40c

Some tweaking with the BACK button


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1863 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php
@@ -59,9 +59,10 @@ if(checkSession()) { @@ -59,9 +59,10 @@ if(checkSession()) {
59 if (!isset($fStartIndex)) { $iStartIndex = 0 ;} 59 if (!isset($fStartIndex)) { $iStartIndex = 0 ;}
60 else { $iStartIndex = $fStartIndex ;} 60 else { $iStartIndex = $fStartIndex ;}
61 61
62 - $oSearchResults = & new PatternBrowseableSearchResults ($sQuery, 14, $aColumns, $aColumnTypes, $aColumnNames, $aHyperLinkURL, $aQueryStringCols, $aQueryStringVars); 62 + $oSearchResults = & new PatternBrowseableSearchResults ($sQuery, 13, $aColumns, $aColumnTypes, $aColumnNames, $aHyperLinkURL, $aQueryStringCols, $aQueryStringVars);
63 $oSearchResults->setStartIndex($iStartIndex); 63 $oSearchResults->setStartIndex($iStartIndex);
64 $oSearchResults->setQueryString("&fDocumentID=$fDocumentID&fForDiscussion=1"); 64 $oSearchResults->setQueryString("&fDocumentID=$fDocumentID&fForDiscussion=1");
  65 + $oPatternCustom->addHtml(goBack());
65 $oPatternCustom->addHtml($oSearchResults->render()); 66 $oPatternCustom->addHtml($oSearchResults->render());
66 67
67 // On opening, increment the number of views of current thread & update database 68 // On opening, increment the number of views of current thread & update database
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
@@ -9,6 +9,11 @@ @@ -9,6 +9,11 @@
9 */ 9 */
10 10
11 11
  12 +function goBack(){
  13 + global $default;
  14 + return "<table width=100%><tr><td align=right><img src=\"$default->graphicsUrl/widgets/back.gif\" onmouseover=\"this.style.cursor='hand'\" onclick=\"javascript: history.go(-1);\" ></td></tr></table>";
  15 +}
  16 +
12 // If there are no threads to view for a document 17 // If there are no threads to view for a document
13 function getViewFailPage($sMessage) 18 function getViewFailPage($sMessage)
14 { 19 {