* @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.Bootstrap.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_Bootstrap_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']; $enableadminrevapp = $this->params['enableadminrevapp']; $enableownerrevapp = $this->params['enableownerrevapp']; $enableselfrevapp = $this->params['enableselfrevapp']; $dropfolderdir = $this->params['dropfolderdir']; $workflowmode = $this->params['workflowmode']; $documentid = $document->getId(); $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("update_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->htmlEndPage(); exit; } print ""; } if($workflowmode != 'traditional') { $latestContent = $document->getLatestContent(); if($status = $latestContent->getStatus()) { if($status["status"] == S_IN_WORKFLOW) { $this->warningMsg("The current version of this document is in a workflow. This will be interrupted and cannot be completed if you upload a new version."); } } } $msg = getMLText("max_upload_size").": ".ini_get( "upload_max_filesize"); if($enablelargefileupload) { $msg .= "

".sprintf(getMLText('link_alt_updatedocument'), "out.AddMultiDocument.php?folderid=".$folder->getID()."&showtree=".showtree())."

"; } $this->warningMsg($msg); $this->contentContainerStart(); ?>
getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all)); if($attrdefs) { foreach($attrdefs as $attrdef) { ?> getReadAccessList($enableadminrevapp, $enableownerrevapp); ?>
:
: printDropFolderChooser("form1");?>
:
:
getName()); ?>: printAttributeEditField($attrdef, '') ?>
contentSubHeading(getMLText("assign_reviewers")); ?>
:
:
contentSubHeading(getMLText("assign_approvers")); ?>
:
:
:
getMandatoryWorkflow(); if($mandatoryworkflow) { ?> getName(); ?>
warningMsg(getMLText("add_doc_workflow_warning")); ?>
">
contentContainerEnd(); $this->htmlEndPage(); } /* }}} */ } ?>