, Jam Warehouse (Pty) Ltd, South Africa * @package documentmanagement */ /** * Prompts the user for a checkout comment * * @param object the document we're checking out */ function renderCheckOutPage($oDocument) { global $default; $sToRender = "\n"; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "
" . _("Enter a check out comment for the document") . "
getID() . "\"/>
\n"; $sToRender .= generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "") . "
\n"; return $sToRender; } /** * Displays the document view page with additional input controls * for checking out the document * * @param object the document to view and check out */ function getCheckOutPage($oDocument, $bCheckedOut = false) { global $default; $sToRender .= renderHeading(_("Check Out Document")); $sToRender .= renderDocumentPath($oDocument, false) . "\n\n"; if ($bCheckedOut) { $sToRender .= ""; $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "
" . _("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.") . "
rootUrl/control.php?action=downloadDocument&fDocumentID=" . $oDocument->getID() . "\">\n"; $sToRender .= "rootUrl/control.php?action=viewDocument&fDocumentID=" . $oDocument->getID() . "\">
"; } else { $sToRender .= renderCheckOutPage($oDocument); } $sToRender .= renderDocumentData($oDocument, $bEdit); return $sToRender; } ?>