Commit 0d626d4685138ea645d2775c3f686d6bbd998cef
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
Showing
1 changed file
with
6 additions
and
4 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentUI.inc
| @@ -30,7 +30,7 @@ function renderCheckOutPage($oDocument) { | @@ -30,7 +30,7 @@ function renderCheckOutPage($oDocument) { | ||
| 30 | $sToRender .= "</tr>\n"; | 30 | $sToRender .= "</tr>\n"; |
| 31 | $sToRender .= "<tr>\n"; | 31 | $sToRender .= "<tr>\n"; |
| 32 | $sToRender .= "<td><input type=\"image\" border=\"0\" src =\"$default->graphicsUrl/widgets/checkout.gif\" value=\"Submit\"/>\n"; | 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 | $sToRender .= "</tr>\n"; | 34 | $sToRender .= "</tr>\n"; |
| 35 | $sToRender .= "</table>\n"; | 35 | $sToRender .= "</table>\n"; |
| 36 | 36 | ||
| @@ -45,7 +45,9 @@ function renderCheckOutPage($oDocument) { | @@ -45,7 +45,9 @@ function renderCheckOutPage($oDocument) { | ||
| 45 | */ | 45 | */ |
| 46 | function getCheckOutPage($oDocument, $bCheckedOut = false) { | 46 | function getCheckOutPage($oDocument, $bCheckedOut = false) { |
| 47 | global $default; | 47 | global $default; |
| 48 | - | 48 | + |
| 49 | + $sToRender .= renderHeading("Document Detail"); | ||
| 50 | + $sToRender .= renderDocumentPath($oDocument, false) . "\n\n"; | ||
| 49 | if ($bCheckedOut) { | 51 | if ($bCheckedOut) { |
| 50 | $sToRender .= "<table>"; | 52 | $sToRender .= "<table>"; |
| 51 | $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"; | 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,7 +57,7 @@ function getCheckOutPage($oDocument, $bCheckedOut = false) { | ||
| 55 | } else { | 57 | } else { |
| 56 | $sToRender .= renderCheckOutPage($oDocument); | 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 | \ No newline at end of file | 64 | \ No newline at end of file |