* @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 AddDocument 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_AddDocument extends SeedDMS_Blue_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $folder = $this->params['folder']; $enablelargefileupload = $this->params['enablelargefileupload']; $enableadminrevapp = $this->params['enableadminrevapp']; $enableownerrevapp = $this->params['enableownerrevapp']; $enableselfrevapp = $this->params['enableselfrevapp']; $strictformcheck = $this->params['strictformcheck']; $dropfolderdir = $this->params['dropfolderdir']; $folderid = $folder->getId(); $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); $this->globalNavigation($folder); $this->pageNavigation(getFolderPathHTML($folder, true), "view_folder", $folder); ?> contentHeading(getMLText("add_document")); $this->contentContainerStart(); // Retrieve a list of all users and groups that have review / approve // privileges. $docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp); ?>
contentSubHeading(getMLText("document_infos")); ?>
getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_document, SeedDMS_Core_AttributeDefinition::objtype_all)); if($attrdefs) { foreach($attrdefs as $attrdef) { ?>
:
:
:
: printCategoryChooser("form1");?>
: printSequenceChooser($folder->getDocuments());?>
getName()); ?> printAttributeEditField($attrdef, '') ?>
:
printDateChooser(-1, "exp");?>
contentSubHeading(getMLText("version_info")); ?> getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all)); if($attrdefs) { foreach($attrdefs as $attrdef) { ?>
:
:
: printDropFolderChooser("form1");?>
:
getName()); ?> printAttributeEditField($attrdef, '', 'attributes_version') ?>
contentSubHeading(getMLText("assign_reviewers")); ?>
:
    getMandatoryReviewers(); foreach ($docAccess["users"] as $usr) { if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue; $mandatory=false; foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true; if ($mandatory) print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName())."
  • "; else print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $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 (!$enableselfrevapp && $usr->getID()==$user->getID()) continue; $mandatory=false; foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $mandatory=true; if ($mandatory) print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); else print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); } ?>
:
    getID()) $mandatory=true; if ($mandatory) print "
  • ".htmlspecialchars($grp->getName()); else print "
  • ".htmlspecialchars($grp->getName()); } ?>

">

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