, Jam Warehouse (Pty) Ltd, South Africa * @package presentation.lookAndFeel.knowledgeTree.subscriptions */ /** * Confirms the users subscription deletion * * @param object the subscription */ function renderSubscriptionRemoveConfirmationPage($oSubscription) { global $default; $sContentType = $oSubscription->getSubscriptionTypeName(); if ($sContentType == "folder") { $sContentName = Folder::getFolderName($oSubscription->getExternalID()); $sContentUrl = "fFolderID=" . $oSubscription->getExternalID(); } else { $sContentName = Document::getDocumentName($oSubscription->getExternalID()); $sContentUrl = "fDocumentID=" . $oSubscription->getExternalID(); } $sToRender = "
| You have chosen to delete the your $sContentType subscription to '$sContentName'. | \n"; $sToRender .= "
| Select 'Unsubscribe' to confirm the deletion, or 'Cancel' to cancel it | \n"; $sToRender .= "\n"; $sToRender .= "
| rootUrl/control.php?action=removeSubscription&$sContentUrl&fConfirmed=1\"> | \n";
$sToRender .= "
| You have chosen to subscribe to the $sContentType entitled '$sContentName'. | \n"; $sToRender .= "
| Select 'Subscribe' to confirm the subscription, or 'Cancel' to cancel it | \n"; $sToRender .= "
| rootUrl/control.php?action=addSubscription&$sContentUrl&fConfirmed=1\"> | \n";
$sToRender .= "
$sErrorMessage
\n" . "