Commit 0d626d4685138ea645d2775c3f686d6bbd998cef

Authored by michael
1 parent 0a60a61f

changed links to use getControllerLink function

and refactored page display


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2208 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentUI.inc
... ... @@ -30,7 +30,7 @@ function renderCheckOutPage($oDocument) {
30 30 $sToRender .= "</tr>\n";
31 31 $sToRender .= "<tr>\n";
32 32 $sToRender .= "<td><input type=\"image\" border=\"0\" src =\"$default->graphicsUrl/widgets/checkout.gif\" value=\"Submit\"/>\n";
33   - $sToRender .= "<a href=\"$default->rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "\"><img src=\"$default->graphicsUrl/widgets/cancel.gif\" border=\"0\"></a></td>\n";
  33 + $sToRender .= generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "<img src=\"$default->graphicsUrl/widgets/cancel.gif\" border=\"0\">") . "</td>\n";
34 34 $sToRender .= "</tr>\n";
35 35 $sToRender .= "</table>\n";
36 36  
... ... @@ -45,7 +45,9 @@ function renderCheckOutPage($oDocument) {
45 45 */
46 46 function getCheckOutPage($oDocument, $bCheckedOut = false) {
47 47 global $default;
48   -
  48 +
  49 + $sToRender .= renderHeading("Document Detail");
  50 + $sToRender .= renderDocumentPath($oDocument, false) . "\n\n";
49 51 if ($bCheckedOut) {
50 52 $sToRender .= "<table>";
51 53 $sToRender .= "<tr><td>You have now checked out this document. No one else can make updates to the document while you have it checked out. Click the Download button to get the latest version of the file. Please check it back in, as soon as you finish working on it.</td></tr>\n";
... ... @@ -55,7 +57,7 @@ function getCheckOutPage($oDocument, $bCheckedOut = false) {
55 57 } else {
56 58 $sToRender .= renderCheckOutPage($oDocument);
57 59 }
58   -
59   - return getPage($oDocument, false, $sToRender);
  60 + $sToRender .= renderDocumentData($oDocument, $bEdit);
  61 + return $sToRender;
60 62 }
61 63 ?>
62 64 \ No newline at end of file
... ...