From 702ade26897a0ff88ac0212361f12d279e314e5d Mon Sep 17 00:00:00 2001 From: mukhtar Date: Fri, 7 Mar 2003 09:24:43 +0000 Subject: [PATCH] moved checkout button to the front --- presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc index 93a6e0b..1fe3337 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc @@ -193,6 +193,15 @@ function getEditPage($oDocument) { $sToRender .= "\n"; $sToRender .= "\n"; $sToRender .= "\n"; + + // display the check in button if the document is checked out and you checked the document out + if ($oDocument->getIsCheckedOut() && ($oDocument->getCheckedOutUserID() == $_SESSION["userID"])) { + $sToRender .= "\n"; + // otherwise display the check out button + } else { + $sToRender .= "\n"; + } + if ($default->phpSniff->property("browser") == "ie") { $sToRender .= "\n"; } else { @@ -202,14 +211,7 @@ function getEditPage($oDocument) { $sToRender .= "\n"; $sToRender .= "\n"; - // display the check in button if the document is checked out and you checked the document out - if ($oDocument->getIsCheckedOut() && ($oDocument->getCheckedOutUserID() == $_SESSION["userID"])) { - $sToRender .= "\n"; - // otherwise display the check out button - } else { - $sToRender .= "\n"; - } - + // display the unsubscribe button if the user is subscribed to the document if (Subscription::exists($_SESSION["userID"], $oDocument->getID(), SubscriptionConstants::subscriptionType("DocumentSubscription"))) { $sToRender .= "\n"; -- libgit2 0.21.4
graphicsUrl/widgets/checkin.gif\" border=\"0\" />graphicsUrl/widgets/checkout.gif\" border=\"0\" />serverName . $_SERVER["PHP_SELF"] . "?fDocumentID=" . $oDocument->getID() . "&fForDownload=1\">graphicsUrl/widgets/download.gif\" border=\"0\" />graphicsUrl/widgets/delete.gif\" border=\"0\" />graphicsUrl/widgets/history.gif\" border=\"0\" />graphicsUrl/widgets/checkin.gif\" border=\"0\" />graphicsUrl/widgets/checkout.gif\" border=\"0\" />graphicsUrl/widgets/unsubscribe.gif\" border=\"0\" />