contentSubHeading(getMLText("document_infos")); ?>
:
:
:
printKeywordChooser("form1");?>
:
getDocumentCategories();
foreach($categories as $category) {
echo "getID()."\"";
echo ">".$category->getName()." ";
}
?>
:
printSequenceChooser($folder->getDocuments('s')); if($orderby != 's') echo " ".getMLText('order_by_sequence_off'); ?>
getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_document, SeedDMS_Core_AttributeDefinition::objtype_all));
if($attrdefs) {
foreach($attrdefs as $attrdef) {
?>
getName()); ?>
printAttributeEditField($attrdef, '') ?>
:
>
contentSubHeading(getMLText("version_info")); ?>
:
:
printFileChooser('userfile[]', false);
?>
:
printDropFolderChooser("form1");?>
:
getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
if($attrdefs) {
foreach($attrdefs as $attrdef) {
?>
getName()); ?>
printAttributeEditField($attrdef, '', 'attributes_version') ?>
:
getMandatoryWorkflows();
if($mandatoryworkflows) {
if(count($mandatoryworkflows) == 1) {
?>
getName()); ?>
getID()."\"";
print ">". htmlspecialchars($workflow->getName())."";
}
?>
getAllWorkflows();
print ""." ";
foreach ($workflows as $workflow) {
print "getID()."\"";
print ">". htmlspecialchars($workflow->getName())." ";
}
?>
warningMsg(getMLText("add_doc_workflow_warning")); ?>
contentSubHeading(getMLText("assign_reviewers")); ?>
:
getMandatoryReviewers();
?>
getID()==$user->getID()) continue;
$mandatory=false;
foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true;
if ($mandatory) print "getID()."\">". htmlspecialchars($usr->getLogin()." - ".$usr->getFullName())." ";
else print "getID()."\">". htmlspecialchars($usr->getLogin()." - ".$usr->getFullName())." ";
}
?>
0) {
$u = $dms->getUser($r['reviewerUserID']);
$tmp[] = htmlspecialchars($u->getFullName().' ('.$u->getLogin().')');
}
}
if($tmp) {
echo ''.getMLText('mandatory_reviewers').': ';
echo implode(', ', $tmp);
echo "
\n";
}
}
/* Check for mandatory reviewer without access */
foreach($res as $r) {
if($r['reviewerUserID']) {
$hasAccess = false;
foreach ($docAccess["users"] as $usr) {
if ($r['reviewerUserID']==$usr->getID())
$hasAccess = true;
}
if(!$hasAccess) {
$noAccessUser = $dms->getUser($r['reviewerUserID']);
echo "".getMLText("mandatory_reviewer_no_access", array('user'=>htmlspecialchars($noAccessUser->getFullName()." (".$noAccessUser->getLogin().")")))."
";
}
}
}
?>
:
getID()) $mandatory=true;
if ($mandatory) print "getID()."\" disabled=\"disabled\">".htmlspecialchars($grp->getName())." ";
else print "getID()."\">".htmlspecialchars($grp->getName())." ";
}
?>
0) {
$u = $dms->getGroup($r['reviewerGroupID']);
$tmp[] = htmlspecialchars($u->getName());
}
}
if($tmp) {
echo ''.getMLText('mandatory_reviewergroups').': ';
echo implode(', ', $tmp);
echo "
\n";
}
}
/* Check for mandatory reviewer group without access */
foreach($res as $r) {
if ($r['reviewerGroupID']) {
$hasAccess = false;
foreach ($docAccess["groups"] as $grp) {
if ($r['reviewerGroupID']==$grp->getID())
$hasAccess = true;
}
if(!$hasAccess) {
$noAccessGroup = $dms->getGroup($r['reviewerGroupID']);
echo "".getMLText("mandatory_reviewergroup_no_access", array('group'=>htmlspecialchars($noAccessGroup->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 "getID() ."\" disabled='disabled'>". htmlspecialchars($usr->getFullName())." ";
else print "getID() ."\">". htmlspecialchars($usr->getLogin()." - ".$usr->getFullName())." ";
}
?>
0) {
$u = $dms->getUser($r['approverUserID']);
$tmp[] = htmlspecialchars($u->getFullName().' ('.$u->getLogin().')');
}
}
if($tmp) {
echo ''.getMLText('mandatory_approvers').': ';
echo implode(', ', $tmp);
echo "
\n";
}
}
/* Check for mandatory approvers without access */
foreach($res as $r) {
if($r['approverUserID']) {
$hasAccess = false;
foreach ($docAccess["users"] as $usr) {
if ($r['approverUserID']==$usr->getID())
$hasAccess = true;
}
if(!$hasAccess) {
$noAccessUser = $dms->getUser($r['approverUserID']);
echo "".getMLText("mandatory_approver_no_access", array('user'=>htmlspecialchars($noAccessUser->getFullName()." (".$noAccessUser->getLogin().")")))."
";
}
}
}
?>
:
getID()) $mandatory=true;
if ($mandatory) print "getID() ."\" disabled=\"disabled\">".htmlspecialchars($grp->getName())." ";
else print "getID() ."\">".htmlspecialchars($grp->getName())." ";
}
?>
0) {
$u = $dms->getGroup($r['approverGroupID']);
$tmp[] = htmlspecialchars($u->getName());
}
}
if($tmp) {
echo ''.getMLText('mandatory_approvergroups').': ';
echo implode(', ', $tmp);
echo "
\n";
}
}
/* Check for mandatory approver groups without access */
foreach($res as $r) {
if ($r['approverGroupID']) {
$hasAccess = false;
foreach ($docAccess["groups"] as $grp) {
if ($r['approverGroupID']==$grp->getID())
$hasAccess = true;
}
if(!$hasAccess) {
$noAccessGroup = $dms->getGroup($r['approverGroupID']);
echo "".getMLText("mandatory_approvergroup_no_access", array('group'=>htmlspecialchars($noAccessGroup->getName())))."
";
}
}
}
?>
contentSubHeading(getMLText("add_document_notify")); ?>
:
getAllUsers($sortusersinlist);
foreach ($allUsers as $userObj) {
if (!$userObj->isGuest() && $folder->getAccessMode($userObj) >= M_READ)
print "getID()."\">" . htmlspecialchars($userObj->getLogin() . " - " . $userObj->getFullName()) . "\n";
}
?>
:
getAllGroups();
foreach ($allGroups as $groupObj) {
if ($folder->getGroupAccessMode($groupObj) >= M_READ)
print "getID()."\">" . htmlspecialchars($groupObj->getName()) . "\n";
}
?>