diff --git a/presentation/lookAndFeel/knowledgeTree/subscriptions/subscriptionUI.inc b/presentation/lookAndFeel/knowledgeTree/subscriptions/subscriptionUI.inc index 84bf4d5..b5a1895 100644 --- a/presentation/lookAndFeel/knowledgeTree/subscriptions/subscriptionUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/subscriptions/subscriptionUI.inc @@ -12,6 +12,42 @@ * @package presentation.lookAndFeel.knowledgeTree.subscriptions */ + +/** + * Displays all current subscriptions with remove checkbox + */ +function renderManageSubscriptions() { + global $default; + + // retrieve subscriptions for this user + $aSubscriptionList = SubscriptionManager::listSubscriptions($_SESSION["userID"]); + + $sToRender = "
| \n"; + $sToRender .= "getID() . "\"/>\n"; + if ($aSubscriptionList[$i]->getIsAlerted()) { + $sToRender .= $aSubscriptionList[$i]->getAlertLink() . "\n"; + } else { + $sToRender .= $aSubscriptionList[$i]->getContentLink() . "\n"; + } + $sToRender .= "\t\t | \n"; + $sToRender .= "\t
| rootUrl/control.php?action=removeSubscription&$sContentUrl&fConfirmed=1\"> | \n";
+ $sToRender .= "
| rootUrl/control.php?action=removeSubscription&fRemoveMultiple=1\"> |