* @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2015 Uwe Steinmann * @version Release: @package_version@ */ /** * Include parent class */ require_once("class.Bootstrap.php"); /** * Class which outputs the html page for SetRecipients view * * @category DMS * @package SeedDMS * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann * @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2015 Uwe Steinmann * @version Release: @package_version@ */ class SeedDMS_View_SetRecipients extends SeedDMS_Bootstrap_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $folder = $this->params['folder']; $document = $this->params['document']; $content = $this->params['version']; $enableownerreceipt = $this->params['enableownerreceipt']; $enableadminreceipt = $this->params['enableadminreceipt']; $overallStatus = $content->getStatus(); $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); $this->globalNavigation($folder); $this->contentStart(); $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document); $this->contentHeading(getMLText("change_recipients")); // Retrieve a list of all users and groups that have receipt privileges. $docAccess = $document->getReadAccessList($enableadminreceipt, $enableownerreceipt); // Retrieve list of currently assigned recipients, along with // their latest status. $receiptStatus = $content->getReceiptStatus(); // Index the receipt results for easy cross-reference with the recipient list. $receiptIndex = array("i"=>array(), "g"=>array()); foreach ($receiptStatus as $i=>$rs) { if ($rs["type"]==0) { $receiptIndex["i"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i); } elseif ($rs["type"]==1) { $receiptIndex["g"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i); } } ?> contentContainerStart(); ?>
contentSubHeading(getMLText("update_recipients"));?>
:
:
:

">

contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ } ?>