* @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ /** * Include parent class */ require_once("class.BlueStyle.php"); /** * Class which outputs the html page for UpdateDocument 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-2012 Uwe Steinmann * @version Release: @package_version@ */ class SeedDMS_View_UpdateDocument extends SeedDMS_Blue_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $folder = $this->params['folder']; $document = $this->params['document']; $strictformcheck = $this->params['strictformcheck']; $enablelargefileupload = $this->params['enablelargefileupload']; $dropfolderdir = $this->params['dropfolderdir']; $documentid = $document->getId(); $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); $this->globalNavigation($folder); $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); ?> contentHeading(getMLText("update_document")); $this->contentContainerStart(); if ($document->isLocked()) { $lockingUser = $document->getLockingUser(); print "
"; printMLText("update_locked_msg", array("username" => htmlspecialchars($lockingUser->getFullName()), "email" => $lockingUser->getEmail())); if ($lockingUser->getID() == $user->getID()) printMLText("unlock_cause_locking_user"); else if ($document->getAccessMode($user) == M_ALL) printMLText("unlock_cause_access_mode_all"); else { printMLText("no_update_cause_locked"); print "
"; $this->contentContainerEnd(); $this->htmlEndPage(); exit; } print "
"; } // Retrieve a list of all users and groups that have review / approve // privileges. $docAccess = $document->getApproversList(); ?>
getID()); ?>

getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all)); if($attrdefs) { foreach($attrdefs as $attrdef) { ?>
:
: printDropFolderChooser("form1");?>
:
: expires()) print " checked";?>>
expires()) print " checked";?>>printDateChooser(-1, "exp");?>
getName()); ?>: printAttributeEditField($attrdef, '') ?>
contentSubHeading(getMLText("assign_reviewers")); ?>
:
    getMandatoryReviewers(); foreach ($docAccess["users"] as $usr) { if ($usr->getID()==$user->getID()) continue; $mandatory=false; foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true; if ($mandatory) print "
  • ". htmlspecialchars($usr->getFullName())."
  • "; else print "
  • ". htmlspecialchars($usr->getFullName())."
  • "; } ?>
:
    getID()) $mandatory=true; if ($mandatory) print "
  • ".htmlspecialchars($grp->getName())."
  • "; else print "
  • ".htmlspecialchars($grp->getName())."
  • "; } ?>
contentSubHeading(getMLText("assign_approvers")); ?>
:
    getMandatoryApprovers(); foreach ($docAccess["users"] as $usr) { if ($usr->getID()==$user->getID()) continue; $mandatory=false; foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $mandatory=true; if ($mandatory) print "
  • ". htmlspecialchars($usr->getFullName())."
  • "; else print "
  • ". htmlspecialchars($usr->getFullName())."
  • "; } ?>
:
    getID()) $mandatory=true; if ($mandatory) print "
  • ".htmlspecialchars($grp->getName()); else print "
  • ".htmlspecialchars($grp->getName()); } ?>
">
contentContainerEnd(); $this->htmlEndPage(); } /* }}} */ } ?>