* @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 SetRevisors 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_SetRevisors 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']; $enableadminrevapp = $this->params['enableadminrevapp']; $enableownerrevapp = $this->params['enableownerrevapp']; $enableselfrevapp = $this->params['enableselfrevapp']; $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_assignments")); // Retrieve a list of all users and groups that have review / approve privileges. $docAccess = $document->getReadAccessList($enableadminrevapp, $enableownerrevapp); // Retrieve list of currently assigned revisors, along with // their latest status. $revisionStatus = $content->getRevisionStatus(); $startdate = substr($content->getRevisionDate(), 0, 10); // Index the revision results for easy cross-reference with the revisor list. $revisionIndex = array("i"=>array(), "g"=>array()); foreach ($revisionStatus as $i=>$rs) { if ($rs["type"]==0) { $revisionIndex["i"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i); } elseif ($rs["type"]==1) { $revisionIndex["g"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i); } } ?> contentContainerStart(); ?>
contentSubHeading(getMLText("update_revisors"));?>
">
contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ } ?>