Commit 705e08daca60299423c678d3217ea880b54fa925
1 parent
49938372
removing action buttons from checkin/checkout pages
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1290 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
0 additions
and
48 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| @@ -291,30 +291,6 @@ function getCheckOutEditPage($oDocument, $bCheckedOut = false) { | @@ -291,30 +291,6 @@ function getCheckOutEditPage($oDocument, $bCheckedOut = false) { | ||
| 291 | $sToRender .= "</td>\n"; | 291 | $sToRender .= "</td>\n"; |
| 292 | $sToRender .= "</tr>\n"; | 292 | $sToRender .= "</tr>\n"; |
| 293 | $sToRender .= "</table>"; | 293 | $sToRender .= "</table>"; |
| 294 | - $sToRender .= "<table>\n"; | ||
| 295 | - $sToRender .= "<tr>\n"; | ||
| 296 | - $sToRender .= "<td><a href=\"" . $_SERVER["PHP_SELF"] . "?fDocumentID=" . $oDocument->getID() . "&fForDownload=1\"><img src=\"$default->graphicsUrl/widgets/download.gif\" border=\"0\" /></a></td>\n"; | ||
| 297 | - $sToRender .= "<td><a href=\"" . generateControllerLink("emailDocument", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/email.gif\" border=\"0\" /></a></td>\n"; | ||
| 298 | - $sToRender .= "<td><a href=\"" . generateControllerLink("viewHistory", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/history.gif\" border=\"0\" /></a></td>\n"; | ||
| 299 | - | ||
| 300 | - // display the check in button if the document is checked out | ||
| 301 | - if ($oDocument->getIsCheckedOut()) { | ||
| 302 | - $sToRender .= "<td><a href=\"" . generateControllerLink("checkInDocument", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/checkin.gif\" border=\"0\" /></a></td>\n"; | ||
| 303 | - // otherwise display the check out button | ||
| 304 | - } else { | ||
| 305 | - $sToRender .= "<td><a href=\"" . generateControllerLink("checkOutDocument", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/checkout.gif\" border=\"0\" /></a></td>\n"; | ||
| 306 | - } | ||
| 307 | - | ||
| 308 | - // display the unsubscribe button if the user is subscribed to the document | ||
| 309 | - if (Subscription::exists($_SESSION["userID"], $oDocument->getID(), SubscriptionConstants::subscriptionType("DocumentSubscription"))) { | ||
| 310 | - $sToRender .= "<td><a href=\"" . generateControllerLink("removeSubscription", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/unsubscribe.gif\" border=\"0\" /></a></td>\n"; | ||
| 311 | - // otherwise display the subscribe button | ||
| 312 | - } else { | ||
| 313 | - $sToRender .= "<td><a href=\"" . generateControllerLink("addSubscription", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/subscribe.gif\" border=\"0\" /></a></td>\n"; | ||
| 314 | - } | ||
| 315 | - | ||
| 316 | - $sToRender .= "</tr>\n"; | ||
| 317 | - $sToRender .= "</table>\n"; | ||
| 318 | 294 | ||
| 319 | return $sToRender; | 295 | return $sToRender; |
| 320 | } | 296 | } |
| @@ -355,30 +331,6 @@ function getCheckInEditPage($oDocument) { | @@ -355,30 +331,6 @@ function getCheckInEditPage($oDocument) { | ||
| 355 | $sToRender .= "</td>\n"; | 331 | $sToRender .= "</td>\n"; |
| 356 | $sToRender .= "</tr>\n"; | 332 | $sToRender .= "</tr>\n"; |
| 357 | $sToRender .= "</table>"; | 333 | $sToRender .= "</table>"; |
| 358 | - $sToRender .= "<table>\n"; | ||
| 359 | - $sToRender .= "<tr>\n"; | ||
| 360 | - $sToRender .= "<td><a href=\"" . $_SERVER["PHP_SELF"] . "?fDocumentID=" . $oDocument->getID() . "&fForDownload=1\"><img src=\"$default->graphicsUrl/widgets/download.gif\" border=\"0\" /></a></td>\n"; | ||
| 361 | - $sToRender .= "<td><a href=\"" . generateControllerLink("emailDocument", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/email.gif\" border=\"0\" /></a></td>\n"; | ||
| 362 | - $sToRender .= "<td><a href=\"" . generateControllerLink("viewHistory", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/history.gif\" border=\"0\" /></a></td>\n"; | ||
| 363 | - | ||
| 364 | - // display the check in button if the document is checked out | ||
| 365 | - if ($oDocument->getIsCheckedOut()) { | ||
| 366 | - $sToRender .= "<td><a href=\"" . generateControllerLink("checkInDocument", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/checkin.gif\" border=\"0\" /></a></td>\n"; | ||
| 367 | - // otherwise display the check out button | ||
| 368 | - } else { | ||
| 369 | - $sToRender .= "<td><a href=\"" . generateControllerLink("checkOutDocument", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/checkout.gif\" border=\"0\" /></a></td>\n"; | ||
| 370 | - } | ||
| 371 | - | ||
| 372 | - // display the unsubscribe button if the user is subscribed to the document | ||
| 373 | - if (Subscription::exists($_SESSION["userID"], $oDocument->getID(), SubscriptionConstants::subscriptionType("DocumentSubscription"))) { | ||
| 374 | - $sToRender .= "<td><a href=\"" . generateControllerLink("removeSubscription", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/unsubscribe.gif\" border=\"0\" /></a></td>\n"; | ||
| 375 | - // otherwise display the subscribe button | ||
| 376 | - } else { | ||
| 377 | - $sToRender .= "<td><a href=\"" . generateControllerLink("addSubscription", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/subscribe.gif\" border=\"0\" /></a></td>\n"; | ||
| 378 | - } | ||
| 379 | - | ||
| 380 | - $sToRender .= "</tr>\n"; | ||
| 381 | - $sToRender .= "</table>\n"; | ||
| 382 | 334 | ||
| 383 | return $sToRender; | 335 | return $sToRender; |
| 384 | } | 336 | } |