use formField() instead of table layout

This commit is contained in:
Uwe Steinmann 2018-06-26 06:52:16 +02:00
parent 643e948440
commit 613bf9387c

View File

@ -215,147 +215,153 @@ console.log(element);
$this->contentContainerStart(); $this->contentContainerStart();
?> ?>
<form action="../op/op.UpdateDocument.php" enctype="multipart/form-data" method="post" name="form1" id="form1"> <form class="form-horizontal" action="../op/op.UpdateDocument.php" enctype="multipart/form-data" method="post" name="form1" id="form1">
<?php echo createHiddenFieldWithKey('updatedocument'); ?> <?php echo createHiddenFieldWithKey('updatedocument'); ?>
<input type="hidden" name="documentid" value="<?php print $document->getID(); ?>"> <input type="hidden" name="documentid" value="<?php print $document->getID(); ?>">
<table class="table-condensed">
<tr>
<td><?php printMLText("local_file");?>:</td>
<td>
<?php <?php
if($enablelargefileupload) $this->formField(
$this->printFineUploaderHtml(); getMLText("local_file"),
else $enablelargefileupload ? $this->getFineUploaderHtml() : $this->printFileChooser('userfile', false)
$this->printFileChooser('userfile', false); );
?> if($dropfolderdir) {
</td> $this->formField(
</tr> getMLText("dropfolder_file"),
<?php if($dropfolderdir) { ?> $this->getDropFolderChooserHtml("form1")
<tr> );
<td><?php printMLText("dropfolder_file");?>:</td> }
<td><?php $this->printDropFolderChooserHtml("form1");?></td> $this->formField(
</tr> getMLText("comment"),
<?php } ?> array(
<tr> 'element'=>'textarea',
<td><?php printMLText("comment");?>:</td> 'name'=>'comment',
<td class="standardText"> 'rows'=>4,
<textarea name="comment" rows="4" cols="80"<?php echo $strictformcheck ? ' required' : ''; ?>></textarea> 'cols'=>80
</td> )
</tr> );
<?php if($presetexpiration) {
if($presetexpiration) { if(!($expts = strtotime($presetexpiration)))
if(!($expts = strtotime($presetexpiration)))
$expts = false;
} else {
$expts = false; $expts = false;
} else {
$expts = false;
}
$options = array();
$options[] = array('never', getMLText('does_not_expire'));
$options[] = array('date', getMLText('expire_by_date'), $expts);
$options[] = array('1w', getMLText('expire_in_1w'));
$options[] = array('1m', getMLText('expire_in_1m'));
$options[] = array('1y', getMLText('expire_in_1y'));
$options[] = array('2y', getMLText('expire_in_2y'));
$this->formField(
getMLText("preset_expires"),
array(
'element'=>'select',
'id'=>'presetexpdate',
'name'=>'presetexpdate',
'options'=>$options
)
);
$this->formField(
getMLText("expires"),
$this->getDateChooser(($expts ? date('Y-m-d', $expts) : ''), "expdate", $this->params['session']->getLanguage())
);
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
if($attrdefs) {
foreach($attrdefs as $attrdef) {
$arr = $this->callHook('editDocumentContentAttribute', $document, $attrdef);
if(is_array($arr)) {
if($arr)
$this->formField($arr[0], $arr[1]);
} else {
$presetbtnhtml = '';
if($latestContent->getAttributeValue($attrdef)) {
switch($attrdef->getType()) {
case SeedDMS_Core_AttributeDefinition::type_string:
case SeedDMS_Core_AttributeDefinition::type_date:
case SeedDMS_Core_AttributeDefinition::type_int:
case SeedDMS_Core_AttributeDefinition::type_float:
$presetbtnhtml = $this->getInputPresetButtonHtml('attributes_version_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef), $attrdef->getValueSetSeparator());
break;
case SeedDMS_Core_AttributeDefinition::type_boolean:
$presetbtnhtml = $this->gettCheckboxPresetButtonHtml('attributes_version_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef));
break;
}
}
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, '', 'attributes_version')." ".$presetbtnhtml);
}
} }
?> }
<tr> $arrs = $this->callHook('addDocumentContentAttributes', $folder);
<td><?php printMLText("preset_expires");?>:</td> if(is_array($arrs)) {
<td> foreach($arrs as $arr) {
<select class="span6" name="presetexpdate" id="presetexpdate"> $this->formField($arr[0], $arr[1]);
<option value="never"><?php printMLText('does_not_expire');?></option> }
<option value="date"<?php echo ($expts != '' ? " selected" : ""); ?>><?php printMLText('expire_by_date');?></option> }
<option value="1w"><?php printMLText('expire_in_1w');?></option>
<option value="1m"><?php printMLText('expire_in_1m');?></option> if($workflowmode == 'advanced') {
<option value="1y"><?php printMLText('expire_in_1y');?></option> $mandatoryworkflows = $user->getMandatoryWorkflows();
<option value="2y"><?php printMLText('expire_in_2y');?></option> if($mandatoryworkflows) {
</select> if(count($mandatoryworkflows) == 1) {
</td> $this->formField(
</tr> getMLText("workflow"),
<tr id="control_expdate" <?php echo ($expts == false ? 'style="display: none;"' : ''); ?>> htmlspecialchars($mandatoryworkflows[0]->getName()).'<input type="hidden" name="workflow" value="'.$mandatoryworkflows[0]->getID().'">'
<td><?php printMLText("expires");?>:</td> );
<td class="standardText"> } else {
<span class="input-append date span12" id="expirationdate" data-date="<?php echo ($expts ? date('Y-m-d', $expts) : ''); ?>" data-date-format="yyyy-mm-dd" data-date-language="<?php echo str_replace('_', '-', $this->params['session']->getLanguage()); ?>"> $options = array();
<input class="span6" size="16" name="expdate" type="text" value="<?php echo ($expts ? date('Y-m-d', $expts) : ''); ?>"> $curworkflow = $latestContent->getWorkflow();
<span class="add-on"><i class="icon-calendar"></i></span> foreach ($mandatoryworkflows as $workflow) {
</span> $options[] = array($workflow->getID(), htmlspecialchars($workflow->getName()), $curworkflow && $curworkflow->getID() == $workflow->getID());
</td> }
</tr> $this->formField(
<?php getMLText("workflow"),
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all)); array(
if($attrdefs) { 'element'=>'select',
foreach($attrdefs as $attrdef) { 'id'=>'workflow',
$arr = $this->callHook('editDocumentContentAttribute', $document, $attrdef); 'name'=>'workflow',
if(is_array($arr)) { 'class'=>'chzn-select',
if($arr) { 'attributes'=>array(array('data-placeholder', getMLText('select_workflow'))),
echo "<tr>"; 'options'=>$options
echo "<td>".$arr[0].":</td>"; )
echo "<td>".$arr[1]."</td>"; );
echo "</tr>";
} }
} else { } else {
?> $options = array();
<tr> $options[] = array('', '');
<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td> $workflows=$dms->getAllWorkflows();
<td><?php $this->printAttributeEditField($attrdef, '', 'attributes_version') ?> foreach ($workflows as $workflow) {
<?php $options[] = array($workflow->getID(), htmlspecialchars($workflow->getName()));
if($latestContent->getAttributeValue($attrdef)) {
switch($attrdef->getType()) {
case SeedDMS_Core_AttributeDefinition::type_string:
case SeedDMS_Core_AttributeDefinition::type_date:
case SeedDMS_Core_AttributeDefinition::type_int:
case SeedDMS_Core_AttributeDefinition::type_float:
$this->printInputPresetButtonHtml('attributes_version_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef), $attrdef->getValueSetSeparator());
break;
case SeedDMS_Core_AttributeDefinition::type_boolean:
$this->printCheckboxPresetButtonHtml('attributes_version_'.$attrdef->getID(), $latestContent->getAttributeValue($attrdef));
break;
} }
// print_r($latestContent->getAttributeValue($attrdef)); $this->formField(
getMLText("workflow"),
array(
'element'=>'select',
'id'=>'workflow',
'name'=>'workflow',
'class'=>'chzn-select',
'attributes'=>array(array('data-allow-clear', 'true'), array('data-placeholder', getMLText('select_workflow'))),
'options'=>$options
)
);
} }
?></td> $this->warningMsg(getMLText("add_doc_workflow_warning"));
</tr> } else {
<?php $docAccess = $document->getReadAccessList($enableadminrevapp, $enableownerrevapp);
} if($workflowmode == 'traditional') {
} $this->contentSubHeading(getMLText("assign_reviewers"));
}
$arrs = $this->callHook('addDocumentContentAttributes', $folder);
if(is_array($arrs)) {
foreach($arrs as $arr) {
echo "<tr>";
echo "<td>".$arr[0].":</td>";
echo "<td>".$arr[1]."</td>";
echo "</tr>";
}
}
if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
// Retrieve a list of all users and groups that have review / approve
// privileges.
$docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp);
if($workflowmode != 'traditional_only_approval') {
?>
<tr>
<td colspan="2">
<?php $this->contentSubHeading(getMLText("assign_reviewers")); ?>
</td>
</tr>
<tr>
<td>
<div class="cbSelectTitle"><?php printMLText("individuals");?>:</div>
</td>
<td>
<select id="IndReviewer" class="chzn-select span9" name="indReviewers[]" multiple="multiple" data-placeholder="<?php printMLText('select_ind_reviewers'); ?>" data-no_results_text="<?php printMLText('unknown_owner'); ?>">
<?php
$res=$user->getMandatoryReviewers(); $res=$user->getMandatoryReviewers();
$options = array();
foreach ($docAccess["users"] as $usr) { foreach ($docAccess["users"] as $usr) {
if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue; if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue;
$mandatory=false; $mandatory=false;
foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true; foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true;
if ($mandatory) print "<option disabled=\"disabled\" value=\"".$usr->getID()."\">". htmlspecialchars($usr->getLogin()." - ".$usr->getFullName())."</option>"; $option = array($usr->getID(), htmlspecialchars($usr->getLogin()." - ".$usr->getFullName()), null);
else print "<option value=\"".$usr->getID()."\">". htmlspecialchars($usr->getLogin()." - ".$usr->getFullName())."</option>"; if ($mandatory) $option[] = array(array('disabled', 'disabled'));
$options[] = $option;
} }
?>
</select>
<?php
$tmp = array(); $tmp = array();
foreach($reviewStatus as $r) { foreach($reviewStatus as $r) {
if($r['type'] == 0) { if($r['type'] == 0) {
if($res) { if($res) {
$mandatory=false; $mandatory=false;
foreach ($res as $rr) foreach ($res as $rr)
if ($rr['reviewerUserID']==$r['required']) { if ($rr['reviewerUserID']==$r['required']) {
@ -368,9 +374,24 @@ console.log(element);
} }
} }
} }
$fieldwrap = '';
if($tmp) { if($tmp) {
$this->printSelectPresetButtonHtml("IndReviewer", $tmp); $fieldwrap = array('', $this->getSelectPresetButtonHtml("IndReviewers", $tmp));
} }
$this->formField(
getMLText("individuals"),
array(
'element'=>'select',
'name'=>'indReviewers[]',
'id'=>'IndReviewers',
'class'=>'chzn-select',
'attributes'=>array(array('data-placeholder', getMLText('select_ind_reviewers'))),
'multiple'=>true,
'options'=>$options
),
array('field_wrap'=>$fieldwrap)
);
/* List all mandatory reviewers */ /* List all mandatory reviewers */
if($res) { if($res) {
$tmp = array(); $tmp = array();
@ -386,6 +407,7 @@ console.log(element);
echo "</div>\n"; echo "</div>\n";
} }
} }
/* Check for mandatory reviewer without access */ /* Check for mandatory reviewer without access */
foreach($res as $r) { foreach($res as $r) {
if($r['reviewerUserID']) { if($r['reviewerUserID']) {
@ -396,31 +418,20 @@ console.log(element);
} }
if(!$hasAccess) { if(!$hasAccess) {
$noAccessUser = $dms->getUser($r['reviewerUserID']); $noAccessUser = $dms->getUser($r['reviewerUserID']);
echo "<div class=\"alert alert-warning\">".getMLText("mandatory_reviewer_no_access", array('user'=>htmlspecialchars($noAccessUser->getFullName()." (".$noAccessUser->getLogin().")")))."</div>"; $this->warningMsg(getMLText("mandatory_reviewer_no_access", array('user'=>htmlspecialchars($noAccessUser->getFullName()." (".$noAccessUser->getLogin().")"))));
} }
} }
} }
?> $options = array();
</td>
</tr>
<tr>
<td>
<div class="cbSelectTitle"><?php printMLText("groups");?>:</div>
</td>
<td>
<select id="GrpReviewer" class="chzn-select span9" name="grpReviewers[]" multiple="multiple" data-placeholder="<?php printMLText('select_grp_reviewers'); ?>" data-no_results_text="<?php printMLText('unknown_group'); ?>">
<?php
foreach ($docAccess["groups"] as $grp) { foreach ($docAccess["groups"] as $grp) {
$mandatory=false; $mandatory=false;
foreach ($res as $r) if ($r['reviewerGroupID']==$grp->getID()) $mandatory=true; foreach ($res as $r) if ($r['reviewerGroupID']==$grp->getID()) $mandatory=true;
if ($mandatory || !$grp->getUsers()) print "<option value=\"".$grp->getID()."\" disabled=\"disabled\">".htmlspecialchars($grp->getName())."</option>"; $option = array($grp->getID(), htmlspecialchars($grp->getName()), null);
else print "<option value=\"".$grp->getID()."\">".htmlspecialchars($grp->getName())."</option>"; if ($mandatory || !$grp->getUsers()) $option[] = array(array('disabled', 'disabled'));
$options[] = $option;
} }
?>
</select>
<?php
$tmp = array(); $tmp = array();
foreach($reviewStatus as $r) { foreach($reviewStatus as $r) {
if($r['type'] == 1) { if($r['type'] == 1) {
@ -437,9 +448,24 @@ console.log(element);
} }
} }
} }
$fieldwrap = '';
if($tmp) { if($tmp) {
$this->printSelectPresetButtonHtml("GrpReviewer", $tmp); $fieldwrap = array('', $this->getSelectPresetButtonHtml("GrpReviewers", $tmp));
} }
$this->formField(
getMLText("groups"),
array(
'element'=>'select',
'name'=>'grpReviewers[]',
'id'=>'GrpReviewers',
'class'=>'chzn-select',
'attributes'=>array(array('data-placeholder', getMLText('select_grp_reviewers'))),
'multiple'=>true,
'options'=>$options
),
array('field_wrap'=>$fieldwrap)
);
/* List all mandatory groups of reviewers */ /* List all mandatory groups of reviewers */
if($res) { if($res) {
$tmp = array(); $tmp = array();
@ -455,7 +481,6 @@ console.log(element);
echo "</div>\n"; echo "</div>\n";
} }
} }
/* Check for mandatory reviewer group without access */ /* Check for mandatory reviewer group without access */
foreach($res as $r) { foreach($res as $r) {
if ($r['reviewerGroupID']) { if ($r['reviewerGroupID']) {
@ -466,58 +491,59 @@ console.log(element);
} }
if(!$hasAccess) { if(!$hasAccess) {
$noAccessGroup = $dms->getGroup($r['reviewerGroupID']); $noAccessGroup = $dms->getGroup($r['reviewerGroupID']);
echo "<div class=\"alert alert-warning\">".getMLText("mandatory_reviewergroup_no_access", array('group'=>htmlspecialchars($noAccessGroup->getName())))."</div>"; $this->warningMsg(getMLText("mandatory_reviewergroup_no_access", array('group'=>htmlspecialchars($noAccessGroup->getName()))));
} }
} }
} }
?> }
</td>
</tr>
<?php } ?>
<tr>
<td colspan=2>
<?php $this->contentSubHeading(getMLText("assign_approvers")); ?>
</td>
</tr>
<tr>
<td>
<div class="cbSelectTitle"><?php printMLText("individuals");?>:</div>
</td>
<td>
<select id="IndApprover" class="chzn-select span9" name="indApprovers[]" multiple="multiple" data-placeholder="<?php printMLText('select_ind_approvers'); ?>" data-no_results_text="<?php printMLText('unknown_owner'); ?>">
<?php
$res=$user->getMandatoryApprovers();
foreach ($docAccess["users"] as $usr) {
if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue;
$mandatory=false; $this->contentSubHeading(getMLText("assign_approvers"));
foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $mandatory=true; $options = array();
$res=$user->getMandatoryApprovers();
if ($mandatory) print "<option value=\"". $usr->getID() ."\" disabled='disabled'>". htmlspecialchars($usr->getFullName())."</option>"; foreach ($docAccess["users"] as $usr) {
else print "<option value=\"". $usr->getID() ."\">". htmlspecialchars($usr->getLogin()." - ".$usr->getFullName())."</option>"; if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue;
}
?> $mandatory=false;
</select> foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $mandatory=true;
<?php
$tmp = array(); $option = array($usr->getID(), htmlspecialchars($usr->getLogin()." - ".$usr->getFullName()), null);
foreach($approvalStatus as $r) { if ($mandatory) $option[] = array(array('disabled', 'disabled'));
if($r['type'] == 0) { $options[] = $option;
if($res) { }
$mandatory=false; $tmp = array();
foreach ($res as $rr) foreach($approvalStatus as $r) {
if ($rr['approverUserID']==$r['required']) { if($r['type'] == 0) {
$mandatory=true; if($res) {
} $mandatory=false;
if(!$mandatory) foreach ($res as $rr)
$tmp[] = $r['required']; if ($rr['approverUserID']==$r['required']) {
} else { $mandatory=true;
}
if(!$mandatory)
$tmp[] = $r['required']; $tmp[] = $r['required'];
} } else {
$tmp[] = $r['required'];
} }
} }
if($tmp) { }
$this->printSelectPresetButtonHtml("IndApprover", $tmp); $fieldwrap = '';
} if($tmp) {
$fieldwrap = array('', $this->getSelectPresetButtonHtml("IndApprovers", $tmp));
}
$this->formField(
getMLText("individuals"),
array(
'element'=>'select',
'name'=>'indApprovers[]',
'id'=>'IndApprovers',
'class'=>'chzn-select',
'attributes'=>array(array('data-placeholder', getMLText('select_ind_approvers'))),
'multiple'=>true,
'options'=>$options
),
array('field_wrap'=>$fieldwrap)
);
/* List all mandatory approvers */ /* List all mandatory approvers */
if($res) { if($res) {
$tmp = array(); $tmp = array();
@ -544,31 +570,22 @@ console.log(element);
} }
if(!$hasAccess) { if(!$hasAccess) {
$noAccessUser = $dms->getUser($r['approverUserID']); $noAccessUser = $dms->getUser($r['approverUserID']);
echo "<div class=\"alert alert-warning\">".getMLText("mandatory_approver_no_access", array('user'=>htmlspecialchars($noAccessUser->getFullName()." (".$noAccessUser->getLogin().")")))."</div>"; $this->warningMsg(getMLText("mandatory_approver_no_access", array('user'=>htmlspecialchars($noAccessUser->getFullName()." (".$noAccessUser->getLogin().")"))));
} }
} }
} }
?>
</td> $options = array();
</tr>
<td>
<div class="cbSelectTitle"><?php printMLText("groups");?>:</div>
</td>
<td>
<select id="GrpApprover" class="chzn-select span9" name="grpApprovers[]" multiple="multiple" data-placeholder="<?php printMLText('select_grp_approvers'); ?>" data-no_results_text="<?php printMLText('unknown_group'); ?>">
<?php
foreach ($docAccess["groups"] as $grp) { foreach ($docAccess["groups"] as $grp) {
$mandatory=false; $mandatory=false;
foreach ($res as $r) if ($r['approverGroupID']==$grp->getID()) $mandatory=true; foreach ($res as $r) if ($r['approverGroupID']==$grp->getID()) $mandatory=true;
if ($mandatory || !$grp->getUsers()) print "<option value=\"". $grp->getID() ."\" disabled=\"disabled\">".htmlspecialchars($grp->getName())."</option>"; $option = array($grp->getID(), htmlspecialchars($grp->getName()), null);
else print "<option value=\"". $grp->getID() ."\">".htmlspecialchars($grp->getName())."</option>"; if ($mandatory || !$grp->getUsers()) $option[] = array(array('disabled', 'disabled'));
$options[] = $option;
} }
?>
</select>
<?php
$tmp = array(); $tmp = array();
foreach($approvalStatus as $r) { foreach($approvalStatus as $r) {
if($r['type'] == 1) { if($r['type'] == 1) {
@ -585,9 +602,24 @@ console.log(element);
} }
} }
} }
$fieldwrap = '';
if($tmp) { if($tmp) {
$this->printSelectPresetButtonHtml("GrpApprover", $tmp); $fieldwrap = array('', $this->getSelectPresetButtonHtml("GrpApprovers", $tmp));
} }
$this->formField(
getMLText("groups"),
array(
'element'=>'select',
'name'=>'grpApprovers[]',
'id'=>'GrpApprovers',
'class'=>'chzn-select',
'attributes'=>array(array('data-placeholder', getMLText('select_grp_approvers'))),
'multiple'=>true,
'options'=>$options
),
array('field_wrap'=>$fieldwrap)
);
/* List all mandatory groups of approvers */ /* List all mandatory groups of approvers */
if($res) { if($res) {
$tmp = array(); $tmp = array();
@ -614,77 +646,14 @@ console.log(element);
} }
if(!$hasAccess) { if(!$hasAccess) {
$noAccessGroup = $dms->getGroup($r['approverGroupID']); $noAccessGroup = $dms->getGroup($r['approverGroupID']);
echo "<div class=\"alert alert-warning\">".getMLText("mandatory_approvergroup_no_access", array('group'=>htmlspecialchars($noAccessGroup->getName())))."</div>"; $this->warningMsg(getMLText("mandatory_approvergroup_no_access", array('group'=>htmlspecialchars($noAccessGroup->getName()))));
} }
} }
} }
$this->warningMsg(getMLText("add_doc_reviewer_approver_warning"));
}
$this->formSubmit(getMLText('update_document'));
?> ?>
</td>
</tr>
<tr>
<td colspan="2"><div class="alert"><?php printMLText("add_doc_reviewer_approver_warning")?></div></td>
</tr>
<?php
} else {
?>
<tr>
<td>
<div class="cbSelectTitle"><?php printMLText("workflow");?>:</div>
</td>
<td>
<?php
$mandatoryworkflows = $user->getMandatoryWorkflows();
if($mandatoryworkflows) {
if(count($mandatoryworkflows) == 1) {
?>
<?php echo htmlspecialchars($mandatoryworkflows[0]->getName()); ?>
<input type="hidden" name="workflow" value="<?php echo $mandatoryworkflows[0]->getID(); ?>">
<?php
} else {
?>
<select class="_chzn-select span9" _data-allow-clear="true" name="workflow" data-placeholder="<?php printMLText('select_workflow'); ?>">
<?php
$curworkflow = $latestContent->getWorkflow();
foreach ($mandatoryworkflows as $workflow) {
print "<option value=\"".$workflow->getID()."\"";
if($curworkflow && $curworkflow->getID() == $workflow->getID())
echo " selected=\"selected\"";
print ">". htmlspecialchars($workflow->getName())."</option>";
}
?>
</select>
<?php
}
} else {
?>
<select class="_chzn-select span9" _data-allow-clear="true" name="workflow" data-placeholder="<?php printMLText('select_workflow'); ?>">
<?php
$workflows=$dms->getAllWorkflows();
print "<option value=\"\">"."</option>";
foreach ($workflows as $workflow) {
print "<option value=\"".$workflow->getID()."\"";
print ">". htmlspecialchars($workflow->getName())."</option>";
}
?>
</select>
<?php
}
?>
</td>
</tr>
<tr>
<td colspan="2">
<?php $this->warningMsg(getMLText("add_doc_workflow_warning")); ?>
</td>
</tr>
<?php
}
?>
<tr>
<td></td>
<td><input type="submit" class="btn" value="<?php printMLText("update_document")?>"></td>
</tr>
</table>
</form> </form>
<?php <?php