Commit 797434079cba0a24fc062f867847c8520b30efda

Authored by Michael Joseph
1 parent a3caa448

updated header

tidied comments
changed download link


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2181 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc
1 1 <?php
2 2 /**
3   -* viewHistoryBL.php
4   -* Contains HTML information required to build the document history view page.
5   -* Will be used by viewHistoryBL.php
6   -*
7   -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
8   -* @date 12 February 2003
9   -* @package presentation.lookAndFeel.knowledgeTree.documentManager
10   -*/
11   -
12   -/*function renderHeading($sHeading) {
13   - global $default;
14   - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
15   - $sColor = $default->siteMap->getSectionColour($sSectionName, "th");
16   - $sToRender = "<table border=\"0\" width=\"600\">\n";
17   - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">$sHeading</th></tr>\n";
18   - $sToRender .= "<tr/>\n";
19   - $sToRender .= "<tr/>\n";
20   - $sToRender .= "</table>\n";
21   - return $sToRender;
22   -}*/
  3 + * $Id$
  4 + *
  5 + * Contains HTML information required to build the document history view page.
  6 + * Will be used by viewHistoryBL.php
  7 + *
  8 + * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING.
  9 + *
  10 + * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
  11 + * @date 12 February 2003
  12 + * @package presentation.lookAndFeel.knowledgeTree.documentmanagement
  13 + */
23 14  
24 15 function getDocumentPath($iFolderID, $sDocumentName) {
25 16 global $default;
... ... @@ -52,7 +43,7 @@ function getDocumentHistory($iDocumentID) {
52 43 $i = 0;
53 44 while ($sql->next_record()) {
54 45 if ($sql->f("transaction_name") == "Check Out") {
55   - $sVersion = generateControllerLink("viewDocument", "fDocumentID=$iDocumentID&fForDownload=1&fVersion=" . $sql->f("version"), "<strong>" . $sql->f("version") . "</strong>");
  46 + $sVersion = generateControllerLink("downloadDocument", "fDocumentID=$iDocumentID&fVersion=" . $sql->f("version"), "<strong>" . $sql->f("version") . "</strong>");
56 47 } else {
57 48 $sVersion = $sql->f("version");
58 49 }
... ...