2012-12-14 07:53:13 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Implementation of AddDocument view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2012-12-14 07:53:13 +00:00
|
|
|
* @license GPL 2
|
|
|
|
* @version @version@
|
|
|
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @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
|
|
|
|
*/
|
2021-04-18 05:08:00 +00:00
|
|
|
//require_once("class.Bootstrap.php");
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class which outputs the html page for AddDocument view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2012-12-14 07:53:13 +00:00
|
|
|
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
|
|
|
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
|
|
|
* 2010-2012 Uwe Steinmann
|
|
|
|
* @version Release: @package_version@
|
|
|
|
*/
|
2021-04-18 05:08:00 +00:00
|
|
|
class SeedDMS_View_AddDocument extends SeedDMS_Theme_Style {
|
2012-12-14 07:53:13 +00:00
|
|
|
|
2016-03-16 11:41:17 +00:00
|
|
|
function js() { /* {{{ */
|
2016-03-18 15:39:22 +00:00
|
|
|
$dropfolderdir = $this->params['dropfolderdir'];
|
2017-01-30 12:17:58 +00:00
|
|
|
$partitionsize = $this->params['partitionsize'];
|
2017-03-15 15:40:41 +00:00
|
|
|
$maxuploadsize = $this->params['maxuploadsize'];
|
2017-01-30 12:17:58 +00:00
|
|
|
$enablelargefileupload = $this->params['enablelargefileupload'];
|
2017-04-27 04:51:16 +00:00
|
|
|
$enablemultiupload = $this->params['enablemultiupload'];
|
2016-03-16 11:41:17 +00:00
|
|
|
header('Content-Type: application/javascript; charset=UTF-8');
|
2012-12-14 07:53:13 +00:00
|
|
|
|
2021-05-27 19:57:12 +00:00
|
|
|
parent::jsTranslations(array('js_form_error', 'js_form_errors'));
|
2017-04-27 04:51:16 +00:00
|
|
|
if($enablelargefileupload) {
|
2022-06-09 14:00:38 +00:00
|
|
|
$this->printFineUploaderJs('../op/op.UploadChunks.php', $partitionsize, $maxuploadsize, $enablemultiupload, 'userfile', 'adddocform');
|
2017-04-27 04:51:16 +00:00
|
|
|
}
|
2017-01-30 12:17:58 +00:00
|
|
|
?>
|
2014-05-16 07:19:36 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
$('#new-file').click(function(event) {
|
2017-04-28 11:11:49 +00:00
|
|
|
tttttt = $("#userfile-upload-file").clone().appendTo("#userfile-upload-files").removeAttr("id");
|
|
|
|
tttttt.children('div').children('input').val('');
|
|
|
|
tttttt.children('div').children('span').children('input').val('');
|
2014-05-16 07:19:36 +00:00
|
|
|
});
|
2016-08-30 05:59:03 +00:00
|
|
|
jQuery.validator.addMethod("alternatives", function(value, element, params) {
|
|
|
|
if(value == '' && params.val() == '')
|
|
|
|
return false;
|
|
|
|
return true;
|
|
|
|
}, "<?php printMLText("js_no_file");?>");
|
2017-01-30 12:17:58 +00:00
|
|
|
/* The fineuploader validation is actually checking all fields that can contain
|
|
|
|
* a file to be uploaded. First checks if an alternative input field is set,
|
|
|
|
* second loops through the list of scheduled uploads, checking if at least one
|
2021-07-08 12:16:13 +00:00
|
|
|
* file will be submitted. param[0] is the fineuploader, param[1] is the
|
|
|
|
* field from the dropfolder
|
2017-01-30 12:17:58 +00:00
|
|
|
*/
|
|
|
|
jQuery.validator.addMethod("fineuploader", function(value, element, params) {
|
2021-07-08 12:16:13 +00:00
|
|
|
console.log(params);
|
2017-01-30 12:17:58 +00:00
|
|
|
if(params[1].val() != '')
|
|
|
|
return true;
|
|
|
|
uploader = params[0];
|
|
|
|
arr = uploader.getUploads();
|
|
|
|
for(var i in arr) {
|
|
|
|
if(arr[i].status == 'submitted')
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}, "<?php printMLText("js_no_file");?>");
|
2021-02-16 13:35:16 +00:00
|
|
|
$("#adddocform").validate({
|
2017-01-30 12:17:58 +00:00
|
|
|
debug: false,
|
|
|
|
ignore: ":hidden:not(.do_validate)",
|
|
|
|
<?php
|
|
|
|
if($enablelargefileupload) {
|
|
|
|
?>
|
|
|
|
submitHandler: function(form) {
|
2017-05-04 11:49:01 +00:00
|
|
|
/* fileuploader may not have any files if drop folder is used */
|
|
|
|
if(userfileuploader.getUploads().length)
|
|
|
|
userfileuploader.uploadStoredFiles();
|
|
|
|
else
|
|
|
|
form.submit();
|
2017-01-30 12:17:58 +00:00
|
|
|
},
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2016-08-29 07:44:49 +00:00
|
|
|
rules: {
|
2017-01-30 12:17:58 +00:00
|
|
|
<?php
|
|
|
|
if($enablelargefileupload) {
|
|
|
|
?>
|
2017-04-27 04:51:16 +00:00
|
|
|
'userfile-fine-uploader-uuids': {
|
2021-02-16 13:35:16 +00:00
|
|
|
fineuploader: [ userfileuploader, $('#dropfolderfileadddocform') ]
|
2017-01-30 12:17:58 +00:00
|
|
|
}
|
|
|
|
<?php
|
|
|
|
} else {
|
|
|
|
?>
|
2016-08-30 05:59:03 +00:00
|
|
|
'userfile[]': {
|
2021-07-08 12:16:13 +00:00
|
|
|
require_from_group: [1, ".fileupload-group"]
|
|
|
|
// alternatives: $('#dropfolderfileadddocform')
|
2016-08-30 05:59:03 +00:00
|
|
|
},
|
2021-02-16 13:35:16 +00:00
|
|
|
dropfolderfileadddocform: {
|
2021-07-08 12:16:13 +00:00
|
|
|
require_from_group: [1, ".fileupload-group"]
|
|
|
|
// alternatives: $("#userfile")
|
2016-08-29 07:44:49 +00:00
|
|
|
}
|
2017-01-30 12:17:58 +00:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2016-08-29 07:44:49 +00:00
|
|
|
},
|
|
|
|
messages: {
|
|
|
|
name: "<?php printMLText("js_no_name");?>",
|
|
|
|
comment: "<?php printMLText("js_no_comment");?>",
|
|
|
|
keywords: "<?php printMLText("js_no_keywords");?>"
|
|
|
|
},
|
|
|
|
errorPlacement: function( error, element ) {
|
|
|
|
if ( element.is( ":file" ) ) {
|
|
|
|
error.appendTo( element.parent().parent().parent());
|
|
|
|
} else {
|
|
|
|
error.appendTo( element.parent());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2017-04-05 20:00:54 +00:00
|
|
|
$('#presetexpdate').on('change', function(ev){
|
|
|
|
if($(this).val() == 'date')
|
|
|
|
$('#control_expdate').show();
|
|
|
|
else
|
|
|
|
$('#control_expdate').hide();
|
|
|
|
});
|
2014-05-16 07:19:36 +00:00
|
|
|
});
|
2016-03-16 11:41:17 +00:00
|
|
|
<?php
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->printKeywordChooserJs("adddocform");
|
2018-09-05 11:35:44 +00:00
|
|
|
if($dropfolderdir) {
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->printDropFolderChooserJs("adddocform");
|
2018-09-05 11:35:44 +00:00
|
|
|
}
|
|
|
|
$this->printFileChooserJs();
|
2016-03-16 11:41:17 +00:00
|
|
|
} /* }}} */
|
2014-05-16 07:19:36 +00:00
|
|
|
|
2016-03-16 11:41:17 +00:00
|
|
|
function show() { /* {{{ */
|
|
|
|
$dms = $this->params['dms'];
|
|
|
|
$user = $this->params['user'];
|
|
|
|
$folder = $this->params['folder'];
|
|
|
|
$enablelargefileupload = $this->params['enablelargefileupload'];
|
2017-04-27 04:51:16 +00:00
|
|
|
$enablemultiupload = $this->params['enablemultiupload'];
|
2020-05-07 12:03:00 +00:00
|
|
|
$maxuploadsize = $this->params['maxuploadsize'];
|
2016-03-16 11:41:17 +00:00
|
|
|
$enableadminrevapp = $this->params['enableadminrevapp'];
|
|
|
|
$enableownerrevapp = $this->params['enableownerrevapp'];
|
|
|
|
$enableselfrevapp = $this->params['enableselfrevapp'];
|
|
|
|
$strictformcheck = $this->params['strictformcheck'];
|
2019-12-19 08:03:59 +00:00
|
|
|
$nodocumentformfields = $this->params['nodocumentformfields'];
|
2016-03-16 11:41:17 +00:00
|
|
|
$dropfolderdir = $this->params['dropfolderdir'];
|
2017-08-01 05:56:31 +00:00
|
|
|
$dropfolderfile = $this->params['dropfolderfile'];
|
2016-03-16 11:41:17 +00:00
|
|
|
$workflowmode = $this->params['workflowmode'];
|
|
|
|
$presetexpiration = $this->params['presetexpiration'];
|
|
|
|
$sortusersinlist = $this->params['sortusersinlist'];
|
|
|
|
$orderby = $this->params['orderby'];
|
|
|
|
$folderid = $folder->getId();
|
2012-12-14 07:53:13 +00:00
|
|
|
|
2020-08-27 05:52:52 +00:00
|
|
|
$this->htmlAddHeader('<script type="text/javascript" src="../views/'.$this->theme.'/vendors/jquery-validation/jquery.validate.js"></script>'."\n", 'js');
|
2021-07-08 12:16:13 +00:00
|
|
|
$this->htmlAddHeader('<script type="text/javascript" src="../views/'.$this->theme.'/vendors/jquery-validation/additional-methods.js"></script>'."\n", 'js');
|
2021-05-27 19:57:12 +00:00
|
|
|
$this->htmlAddHeader('<script type="text/javascript" src="../views/'.$this->theme.'/styles/validation-default.js"></script>'."\n", 'js');
|
2017-03-15 15:40:41 +00:00
|
|
|
if($enablelargefileupload) {
|
2020-08-27 05:52:52 +00:00
|
|
|
$this->htmlAddHeader('<script type="text/javascript" src="../views/'.$this->theme.'/vendors/fine-uploader/jquery.fine-uploader.min.js"></script>'."\n", 'js');
|
2017-03-15 15:40:41 +00:00
|
|
|
$this->htmlAddHeader($this->getFineUploaderTemplate(), 'js');
|
|
|
|
}
|
2016-08-29 07:44:49 +00:00
|
|
|
|
2016-03-16 11:41:17 +00:00
|
|
|
$this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))));
|
|
|
|
$this->globalNavigation($folder);
|
|
|
|
$this->contentStart();
|
|
|
|
$this->pageNavigation($this->getFolderPathHTML($folder, true), "view_folder", $folder);
|
|
|
|
|
2022-04-29 16:30:46 +00:00
|
|
|
$msg = getMLText("max_upload_size").": ".SeedDMS_Core_File::format_filesize($maxuploadsize);
|
2012-12-19 10:27:35 +00:00
|
|
|
$this->warningMsg($msg);
|
2012-12-14 07:53:13 +00:00
|
|
|
$this->contentHeading(getMLText("add_document"));
|
2021-02-16 13:35:16 +00:00
|
|
|
|
2012-12-14 07:53:13 +00:00
|
|
|
// Retrieve a list of all users and groups that have review / approve
|
|
|
|
// privileges.
|
2013-02-27 16:15:36 +00:00
|
|
|
$docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp);
|
2018-10-23 09:20:34 +00:00
|
|
|
|
|
|
|
$txt = $this->callHook('addDocumentPreForm');
|
|
|
|
if(is_string($txt))
|
|
|
|
echo $txt;
|
2012-12-14 07:53:13 +00:00
|
|
|
?>
|
2021-02-16 13:35:16 +00:00
|
|
|
<form class="form-horizontal" action="../op/op.AddDocument.php" enctype="multipart/form-data" method="post" id="adddocform" name="adddocform">
|
2012-12-14 07:53:13 +00:00
|
|
|
<?php echo createHiddenFieldWithKey('adddocument'); ?>
|
|
|
|
<input type="hidden" name="folderid" value="<?php print $folderid; ?>">
|
|
|
|
<input type="hidden" name="showtree" value="<?php echo showtree();?>">
|
2017-04-05 20:00:54 +00:00
|
|
|
<?php
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->rowStart();
|
|
|
|
$this->columnStart(6);
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->contentSubHeading(getMLText("document_infos"));
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->contentContainerStart();
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
|
|
|
getMLText("name"),
|
|
|
|
array(
|
|
|
|
'element'=>'input',
|
|
|
|
'type'=>'text',
|
|
|
|
'id'=>'name',
|
|
|
|
'name'=>'name',
|
2019-07-30 04:33:18 +00:00
|
|
|
'required'=>false
|
2018-06-21 07:28:31 +00:00
|
|
|
)
|
|
|
|
);
|
2019-12-19 08:03:59 +00:00
|
|
|
if(!$nodocumentformfields || !in_array('comment', $nodocumentformfields))
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
|
|
|
getMLText("comment"),
|
|
|
|
array(
|
|
|
|
'element'=>'textarea',
|
|
|
|
'name'=>'comment',
|
|
|
|
'rows'=>4,
|
|
|
|
'cols'=>80,
|
|
|
|
'required'=>$strictformcheck
|
|
|
|
)
|
|
|
|
);
|
2019-12-19 08:03:59 +00:00
|
|
|
if(!$nodocumentformfields || !in_array('keywords', $nodocumentformfields))
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
|
|
|
getMLText("keywords"),
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->getKeywordChooserHtml('adddocform')
|
2018-06-21 07:28:31 +00:00
|
|
|
);
|
|
|
|
$categories = $dms->getDocumentCategories();
|
2021-12-03 10:31:37 +00:00
|
|
|
if($categories) {
|
|
|
|
if(!$nodocumentformfields || !in_array('categories', $nodocumentformfields)) {
|
|
|
|
$options = array();
|
|
|
|
foreach($categories as $category) {
|
2022-09-21 12:29:39 +00:00
|
|
|
$options[] = array($category->getID(), htmlspecialchars($category->getName()));
|
2021-12-03 10:31:37 +00:00
|
|
|
}
|
|
|
|
$this->formField(
|
|
|
|
getMLText("categories"),
|
|
|
|
array(
|
|
|
|
'element'=>'select',
|
|
|
|
'class'=>'chzn-select',
|
|
|
|
'name'=>'categories[]',
|
|
|
|
'multiple'=>true,
|
|
|
|
'attributes'=>array(array('data-placeholder', getMLText('select_category'), array('data-no_results_text', getMLText('unknown_document_category')))),
|
|
|
|
'options'=>$options
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2019-12-19 08:03:59 +00:00
|
|
|
}
|
|
|
|
if(!$nodocumentformfields || !in_array('sequence', $nodocumentformfields)) {
|
|
|
|
$this->formField(getMLText("sequence"), $this->getSequenceChooser($folder->getDocuments('s')).($orderby != 's' ? "<br />".getMLText('order_by_sequence_off') : ''));
|
2019-12-19 09:03:24 +00:00
|
|
|
} else {
|
|
|
|
$minmax = $folder->getDocumentsMinMax();
|
|
|
|
if($this->params['defaultposition'] == 'start') {
|
|
|
|
$seq = $minmax['min'] - 1;
|
|
|
|
} else {
|
|
|
|
$seq = $minmax['max'] + 1;
|
|
|
|
}
|
|
|
|
$this->formField(
|
|
|
|
null,
|
|
|
|
array(
|
|
|
|
'element'=>'input',
|
|
|
|
'type'=>'hidden',
|
|
|
|
'name'=>'sequence',
|
2021-05-11 15:20:08 +00:00
|
|
|
'value'=>(string) $seq,
|
2019-12-19 09:03:24 +00:00
|
|
|
)
|
|
|
|
);
|
2019-12-19 08:03:59 +00:00
|
|
|
}
|
|
|
|
if(!$nodocumentformfields || !in_array('expires', $nodocumentformfields)) {
|
2018-06-26 05:02:12 +00:00
|
|
|
if($presetexpiration) {
|
|
|
|
if(!($expts = strtotime($presetexpiration)))
|
2017-04-05 20:00:54 +00:00
|
|
|
$expts = false;
|
2018-06-26 05:02:12 +00:00
|
|
|
} else {
|
|
|
|
$expts = false;
|
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
$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"),
|
2020-12-17 12:41:00 +00:00
|
|
|
$this->getDateChooser(($expts ? getReadableDate($expts) : ''), "expdate", $this->params['session']->getLanguage())
|
2018-06-21 07:28:31 +00:00
|
|
|
);
|
2019-12-19 08:03:59 +00:00
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
if($user->isAdmin()) {
|
|
|
|
$options = array();
|
|
|
|
$allUsers = $dms->getAllUsers($sortusersinlist);
|
|
|
|
foreach ($allUsers as $currUser) {
|
|
|
|
if (!$currUser->isGuest())
|
2021-03-01 17:37:49 +00:00
|
|
|
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin().' - '.$currUser->getFullName()), ($currUser->getID()==$user->getID()), array(array('data-subtitle', htmlspecialchars($currUser->getEmail()))));
|
2018-06-21 07:28:31 +00:00
|
|
|
}
|
|
|
|
$this->formField(
|
|
|
|
getMLText("owner"),
|
|
|
|
array(
|
|
|
|
'element'=>'select',
|
|
|
|
'id'=>'ownerid',
|
|
|
|
'name'=>'ownerid',
|
|
|
|
'class'=>'chzn-select',
|
|
|
|
'options'=>$options
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_document, SeedDMS_Core_AttributeDefinition::objtype_all));
|
|
|
|
if($attrdefs) {
|
|
|
|
foreach($attrdefs as $attrdef) {
|
|
|
|
$arr = $this->callHook('addDocumentAttribute', null, $attrdef);
|
|
|
|
if(is_array($arr)) {
|
|
|
|
if($arr) {
|
2021-03-19 09:49:51 +00:00
|
|
|
$this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null);
|
2015-04-27 06:27:19 +00:00
|
|
|
}
|
2019-10-23 07:05:04 +00:00
|
|
|
} elseif(is_string($arr)) {
|
|
|
|
echo $arr;
|
2018-06-21 07:28:31 +00:00
|
|
|
} else {
|
|
|
|
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, ''));
|
2012-12-14 07:53:13 +00:00
|
|
|
}
|
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
}
|
2020-08-28 05:39:16 +00:00
|
|
|
$arrs = $this->callHook('addDocumentAttributes', null);
|
2018-06-21 07:28:31 +00:00
|
|
|
if(is_array($arrs)) {
|
|
|
|
foreach($arrs as $arr) {
|
2021-03-19 09:49:51 +00:00
|
|
|
$this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null);
|
2017-04-27 04:51:16 +00:00
|
|
|
}
|
2020-07-21 05:28:15 +00:00
|
|
|
} elseif(is_string($arrs)) {
|
|
|
|
echo $arrs;
|
2017-01-30 12:17:58 +00:00
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->contentContainerEnd();
|
2021-04-22 12:47:38 +00:00
|
|
|
if(!$nodocumentformfields || !in_array('notification', $nodocumentformfields)) {
|
|
|
|
$this->contentSubHeading(getMLText("add_document_notify"));
|
|
|
|
$this->contentContainerStart();
|
|
|
|
|
|
|
|
$options = array();
|
|
|
|
$allUsers = $dms->getAllUsers($sortusersinlist);
|
|
|
|
foreach ($allUsers as $userObj) {
|
|
|
|
if (!$userObj->isGuest() && $folder->getAccessMode($userObj) >= M_READ)
|
|
|
|
$options[] = array($userObj->getID(), htmlspecialchars($userObj->getLogin() . " - " . $userObj->getFullName()));
|
|
|
|
}
|
|
|
|
$this->formField(
|
|
|
|
getMLText("individuals"),
|
|
|
|
array(
|
|
|
|
'element'=>'select',
|
|
|
|
'name'=>'notification_users[]',
|
|
|
|
'class'=>'chzn-select',
|
|
|
|
'attributes'=>array(array('data-placeholder', getMLText('select_ind_notification'))),
|
|
|
|
'multiple'=>true,
|
|
|
|
'options'=>$options
|
|
|
|
)
|
|
|
|
);
|
|
|
|
$options = array();
|
|
|
|
$allGroups = $dms->getAllGroups();
|
|
|
|
foreach ($allGroups as $groupObj) {
|
|
|
|
if ($folder->getGroupAccessMode($groupObj) >= M_READ)
|
|
|
|
$options[] = array($groupObj->getID(), htmlspecialchars($groupObj->getName()));
|
|
|
|
}
|
|
|
|
$this->formField(
|
|
|
|
getMLText("groups"),
|
|
|
|
array(
|
|
|
|
'element'=>'select',
|
|
|
|
'name'=>'notification_groups[]',
|
|
|
|
'class'=>'chzn-select',
|
|
|
|
'attributes'=>array(array('data-placeholder', getMLText('select_grp_notification'))),
|
|
|
|
'multiple'=>true,
|
|
|
|
'options'=>$options
|
|
|
|
)
|
|
|
|
);
|
|
|
|
$this->contentContainerEnd();
|
|
|
|
}
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->columnEnd();
|
|
|
|
$this->columnStart(6);
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->contentSubHeading(getMLText("version_info"));
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->contentContainerStart();
|
2020-01-16 12:08:48 +00:00
|
|
|
if(!$nodocumentformfields || !in_array('version', $nodocumentformfields)) {
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
|
|
|
getMLText("version"),
|
|
|
|
array(
|
|
|
|
'element'=>'input',
|
|
|
|
'type'=>'text',
|
|
|
|
'id'=>'reqversion',
|
|
|
|
'name'=>'reqversion',
|
|
|
|
'value'=>1
|
|
|
|
)
|
|
|
|
);
|
2020-01-16 12:08:48 +00:00
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
|
|
|
getMLText("local_file"),
|
2019-07-30 04:33:18 +00:00
|
|
|
$enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile[]', $enablemultiupload).($enablemultiupload ? '<a class="" id="new-file"><?php printMLtext("add_multiple_files") ?></a>' : '')
|
2018-06-21 07:28:31 +00:00
|
|
|
);
|
|
|
|
if($dropfolderdir) {
|
|
|
|
$this->formField(
|
|
|
|
getMLText("dropfolder_file"),
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->getDropFolderChooserHtml("adddocform", $dropfolderfile)
|
2018-06-21 07:28:31 +00:00
|
|
|
);
|
|
|
|
}
|
2022-04-14 15:00:44 +00:00
|
|
|
if($arr = $this->callHook('addDocumentContentFile', 'add')) {
|
2021-11-09 08:33:54 +00:00
|
|
|
foreach($arr as $ar)
|
|
|
|
if(is_array($ar)) {
|
|
|
|
$this->formField($ar[0], $ar[1], isset($ar[2]) ? $ar[2] : null);
|
|
|
|
} elseif(is_string($ar)) {
|
|
|
|
echo $ar;
|
|
|
|
}
|
2021-07-08 12:16:13 +00:00
|
|
|
}
|
2019-12-19 15:08:10 +00:00
|
|
|
if(!$nodocumentformfields || !in_array('version_comment', $nodocumentformfields)) {
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
|
|
|
getMLText("comment_for_current_version"),
|
|
|
|
array(
|
|
|
|
'element'=>'textarea',
|
|
|
|
'name'=>'version_comment',
|
|
|
|
'rows'=>4,
|
|
|
|
'cols'=>80
|
|
|
|
)
|
|
|
|
);
|
|
|
|
$this->formField(
|
|
|
|
getMLText("use_comment_of_document"),
|
|
|
|
array(
|
|
|
|
'element'=>'input',
|
|
|
|
'type'=>'checkbox',
|
|
|
|
'name'=>'use_comment',
|
|
|
|
'value'=>1
|
|
|
|
)
|
|
|
|
);
|
2019-12-19 15:08:10 +00:00
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
|
|
|
|
if($attrdefs) {
|
|
|
|
foreach($attrdefs as $attrdef) {
|
|
|
|
$arr = $this->callHook('addDocumentContentAttribute', null, $attrdef);
|
|
|
|
if(is_array($arr)) {
|
2021-03-19 09:49:51 +00:00
|
|
|
$this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null);
|
2019-10-23 07:05:04 +00:00
|
|
|
} elseif(is_string($arr)) {
|
|
|
|
echo $arr;
|
2018-06-21 07:28:31 +00:00
|
|
|
} else {
|
|
|
|
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, '', 'attributes_version'));
|
2012-12-14 07:53:13 +00:00
|
|
|
}
|
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
}
|
2017-04-27 15:21:24 +00:00
|
|
|
|
2018-06-21 07:28:31 +00:00
|
|
|
$arrs = $this->callHook('addDocumentContentAttributes', $folder);
|
|
|
|
if(is_array($arrs)) {
|
|
|
|
foreach($arrs as $arr) {
|
2021-03-19 09:49:51 +00:00
|
|
|
$this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null);
|
2017-04-27 15:21:24 +00:00
|
|
|
}
|
2020-07-21 05:28:15 +00:00
|
|
|
} elseif(is_string($arrs)) {
|
|
|
|
echo $arrs;
|
2018-06-21 07:28:31 +00:00
|
|
|
}
|
2017-04-27 15:21:24 +00:00
|
|
|
|
2015-03-17 10:19:55 +00:00
|
|
|
if($workflowmode == 'advanced') {
|
2018-06-26 05:02:12 +00:00
|
|
|
$mandatoryworkflows = $user->getMandatoryWorkflows();
|
|
|
|
if($mandatoryworkflows) {
|
|
|
|
if(count($mandatoryworkflows) == 1) {
|
|
|
|
$this->formField(
|
|
|
|
getMLText("workflow"),
|
|
|
|
htmlspecialchars($mandatoryworkflows[0]->getName()).'<input type="hidden" name="workflow" value="'.$mandatoryworkflows[0]->getID().'">'
|
|
|
|
);
|
2013-08-06 12:21:40 +00:00
|
|
|
} else {
|
2018-06-21 07:28:31 +00:00
|
|
|
$options = array();
|
2018-06-26 05:02:12 +00:00
|
|
|
foreach ($mandatoryworkflows as $workflow) {
|
2018-06-21 07:28:31 +00:00
|
|
|
$options[] = array($workflow->getID(), htmlspecialchars($workflow->getName()));
|
2013-08-06 12:21:40 +00:00
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
2018-06-26 05:02:12 +00:00
|
|
|
getMLText("workflow"),
|
2018-06-21 07:28:31 +00:00
|
|
|
array(
|
|
|
|
'element'=>'select',
|
|
|
|
'id'=>'workflow',
|
|
|
|
'name'=>'workflow',
|
2018-06-22 14:38:52 +00:00
|
|
|
'class'=>'chzn-select',
|
2018-06-26 05:02:12 +00:00
|
|
|
'attributes'=>array(array('data-placeholder', getMLText('select_workflow'))),
|
2018-06-21 07:28:31 +00:00
|
|
|
'options'=>$options
|
|
|
|
)
|
|
|
|
);
|
2013-08-06 12:21:40 +00:00
|
|
|
}
|
2018-06-26 05:02:12 +00:00
|
|
|
} else {
|
|
|
|
$options = array();
|
|
|
|
$options[] = array('', '');
|
|
|
|
$workflows=$dms->getAllWorkflows();
|
|
|
|
foreach ($workflows as $workflow) {
|
|
|
|
$options[] = array($workflow->getID(), htmlspecialchars($workflow->getName()));
|
|
|
|
}
|
|
|
|
$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
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
$this->warningMsg(getMLText("add_doc_workflow_warning"));
|
2019-12-19 15:08:10 +00:00
|
|
|
} elseif($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
|
2015-03-17 10:19:55 +00:00
|
|
|
if($workflowmode == 'traditional') {
|
2023-03-30 10:26:35 +00:00
|
|
|
$this->contentContainerEnd();
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->contentSubHeading(getMLText("assign_reviewers"));
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->contentContainerStart();
|
2018-06-27 20:13:38 +00:00
|
|
|
|
|
|
|
/* List all mandatory reviewers */
|
|
|
|
$res=$user->getMandatoryReviewers();
|
2018-08-20 16:12:19 +00:00
|
|
|
$tmp = array();
|
2018-06-27 20:13:38 +00:00
|
|
|
if($res) {
|
|
|
|
foreach ($res as $r) {
|
|
|
|
if($r['reviewerUserID'] > 0) {
|
|
|
|
$u = $dms->getUser($r['reviewerUserID']);
|
|
|
|
$tmp[] = htmlspecialchars($u->getFullName().' ('.$u->getLogin().')');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-21 07:28:31 +00:00
|
|
|
$options = array();
|
2012-12-14 07:53:13 +00:00
|
|
|
foreach ($docAccess["users"] as $usr) {
|
2013-02-27 16:15:36 +00:00
|
|
|
if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue;
|
2012-12-14 07:53:13 +00:00
|
|
|
$mandatory=false;
|
|
|
|
foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true;
|
|
|
|
|
2018-06-21 07:28:31 +00:00
|
|
|
$option = array($usr->getID(), htmlspecialchars($usr->getLogin()." - ".$usr->getFullName()), null);
|
|
|
|
if ($mandatory) $option[] = array(array('disabled', 'disabled'));
|
|
|
|
$options[] = $option;
|
2012-12-14 07:53:13 +00:00
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
|
|
|
getMLText("individuals"),
|
|
|
|
array(
|
|
|
|
'element'=>'select',
|
|
|
|
'name'=>'indReviewers[]',
|
|
|
|
'class'=>'chzn-select',
|
|
|
|
'attributes'=>array(array('data-placeholder', getMLText('select_ind_reviewers'))),
|
|
|
|
'multiple'=>true,
|
|
|
|
'options'=>$options
|
2018-06-27 20:13:38 +00:00
|
|
|
),
|
|
|
|
array('field_wrap'=>array('', ($tmp ? '<div class="mandatories"><span>'.getMLText('mandatory_reviewers').':</span> '.implode(', ', $tmp).'</div>' : '')))
|
2018-06-21 07:28:31 +00:00
|
|
|
);
|
|
|
|
|
2014-03-03 13:46:16 +00:00
|
|
|
/* 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']);
|
2018-06-21 07:35:45 +00:00
|
|
|
$this->warningMsg(getMLText("mandatory_reviewer_no_access", array('user'=>htmlspecialchars($noAccessUser->getFullName()." (".$noAccessUser->getLogin().")"))));
|
2014-03-03 13:46:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-06-27 20:13:38 +00:00
|
|
|
|
|
|
|
/* List all mandatory groups of reviewers */
|
2018-08-20 16:12:19 +00:00
|
|
|
$tmp = array();
|
2018-06-27 20:13:38 +00:00
|
|
|
if($res) {
|
|
|
|
foreach ($res as $r) {
|
|
|
|
if($r['reviewerGroupID'] > 0) {
|
|
|
|
$u = $dms->getGroup($r['reviewerGroupID']);
|
|
|
|
$tmp[] = htmlspecialchars($u->getName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
$options = array();
|
|
|
|
foreach ($docAccess["groups"] as $grp) {
|
|
|
|
|
|
|
|
$mandatory=false;
|
|
|
|
foreach ($res as $r) if ($r['reviewerGroupID']==$grp->getID()) $mandatory=true;
|
2012-12-14 07:53:13 +00:00
|
|
|
|
2018-06-21 07:28:31 +00:00
|
|
|
$option = array($grp->getID(), htmlspecialchars($grp->getName()), null);
|
|
|
|
if ($mandatory || !$grp->getUsers()) $option[] = array(array('disabled', 'disabled'));
|
|
|
|
$options[] = $option;
|
|
|
|
}
|
|
|
|
$this->formField(
|
|
|
|
getMLText("groups"),
|
|
|
|
array(
|
|
|
|
'element'=>'select',
|
|
|
|
'name'=>'grpReviewers[]',
|
|
|
|
'class'=>'chzn-select',
|
|
|
|
'attributes'=>array(array('data-placeholder', getMLText('select_grp_reviewers'))),
|
|
|
|
'multiple'=>true,
|
|
|
|
'options'=>$options
|
2018-06-27 20:13:38 +00:00
|
|
|
),
|
|
|
|
array('field_wrap'=>array('', ($tmp ? '<div class="mandatories"><span>'.getMLText('mandatory_reviewergroups').':</span> '.implode(', ', $tmp).'</div>' : '')))
|
2018-06-21 07:28:31 +00:00
|
|
|
);
|
2014-03-03 13:46:16 +00:00
|
|
|
/* 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']);
|
2018-06-21 07:35:45 +00:00
|
|
|
$this->warningMsg(getMLText("mandatory_reviewergroup_no_access", array('group'=>htmlspecialchars($noAccessGroup->getName()))));
|
2014-03-03 13:46:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->contentContainerEnd();
|
2018-06-21 07:28:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$this->contentSubHeading(getMLText("assign_approvers"));
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->contentContainerStart();
|
2012-12-14 07:53:13 +00:00
|
|
|
$res=$user->getMandatoryApprovers();
|
2018-06-27 20:13:38 +00:00
|
|
|
/* List all mandatory approvers */
|
2018-08-20 16:12:19 +00:00
|
|
|
$tmp = array();
|
2018-06-27 20:13:38 +00:00
|
|
|
if($res) {
|
|
|
|
foreach ($res as $r) {
|
|
|
|
if($r['approverUserID'] > 0) {
|
|
|
|
$u = $dms->getUser($r['approverUserID']);
|
|
|
|
$tmp[] = htmlspecialchars($u->getFullName().' ('.$u->getLogin().')');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$options = array();
|
2012-12-14 07:53:13 +00:00
|
|
|
foreach ($docAccess["users"] as $usr) {
|
2013-02-27 16:15:36 +00:00
|
|
|
if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue;
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
$mandatory=false;
|
|
|
|
foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $mandatory=true;
|
|
|
|
|
2018-06-21 07:28:31 +00:00
|
|
|
$option = array($usr->getID(), htmlspecialchars($usr->getLogin()." - ".$usr->getFullName()), null);
|
|
|
|
if ($mandatory) $option[] = array(array('disabled', 'disabled'));
|
|
|
|
$options[] = $option;
|
2012-12-14 07:53:13 +00:00
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
|
|
|
getMLText("individuals"),
|
|
|
|
array(
|
|
|
|
'element'=>'select',
|
|
|
|
'name'=>'indApprovers[]',
|
|
|
|
'class'=>'chzn-select',
|
|
|
|
'attributes'=>array(array('data-placeholder', getMLText('select_ind_approvers'))),
|
|
|
|
'multiple'=>true,
|
|
|
|
'options'=>$options
|
2018-06-27 20:13:38 +00:00
|
|
|
),
|
|
|
|
array('field_wrap'=>array('', ($tmp ? '<div class="mandatories"><span>'.getMLText('mandatory_approvers').':</span> '.implode(', ', $tmp).'</div>' : '')))
|
2018-06-21 07:28:31 +00:00
|
|
|
);
|
|
|
|
|
2018-06-27 20:13:38 +00:00
|
|
|
/* 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;
|
2014-06-17 16:11:09 +00:00
|
|
|
}
|
2018-06-27 20:13:38 +00:00
|
|
|
if(!$hasAccess) {
|
|
|
|
$noAccessUser = $dms->getUser($r['approverUserID']);
|
|
|
|
$this->warningMsg(getMLText("mandatory_approver_no_access", array('user'=>htmlspecialchars($noAccessUser->getFullName()." (".$noAccessUser->getLogin().")"))));
|
2014-06-17 16:11:09 +00:00
|
|
|
}
|
|
|
|
}
|
2018-06-27 20:13:38 +00:00
|
|
|
}
|
2014-06-17 16:11:09 +00:00
|
|
|
|
2018-06-27 20:13:38 +00:00
|
|
|
/* List all mandatory groups of approvers */
|
2018-08-20 16:12:19 +00:00
|
|
|
$tmp = array();
|
2018-06-27 20:13:38 +00:00
|
|
|
if($res) {
|
|
|
|
foreach ($res as $r) {
|
|
|
|
if($r['approverGroupID'] > 0) {
|
|
|
|
$u = $dms->getGroup($r['approverGroupID']);
|
|
|
|
$tmp[] = htmlspecialchars($u->getName());
|
2014-03-03 13:46:16 +00:00
|
|
|
}
|
|
|
|
}
|
2018-06-27 20:13:38 +00:00
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
$options = array();
|
2012-12-14 07:53:13 +00:00
|
|
|
foreach ($docAccess["groups"] as $grp) {
|
|
|
|
|
|
|
|
$mandatory=false;
|
|
|
|
foreach ($res as $r) if ($r['approverGroupID']==$grp->getID()) $mandatory=true;
|
|
|
|
|
2018-06-21 07:28:31 +00:00
|
|
|
$option = array($grp->getID(), htmlspecialchars($grp->getName()), null);
|
|
|
|
if ($mandatory || !$grp->getUsers()) $option[] = array(array('disabled', 'disabled'));
|
2012-12-14 07:53:13 +00:00
|
|
|
|
2018-06-21 07:28:31 +00:00
|
|
|
$options[] = $option;
|
2012-12-14 07:53:13 +00:00
|
|
|
}
|
2018-06-21 07:28:31 +00:00
|
|
|
$this->formField(
|
|
|
|
getMLText("groups"),
|
|
|
|
array(
|
|
|
|
'element'=>'select',
|
|
|
|
'name'=>'grpApprovers[]',
|
|
|
|
'class'=>'chzn-select',
|
|
|
|
'attributes'=>array(array('data-placeholder', getMLText('select_grp_approvers'))),
|
|
|
|
'multiple'=>true,
|
|
|
|
'options'=>$options
|
2018-06-27 20:13:38 +00:00
|
|
|
),
|
|
|
|
array('field_wrap'=>array('', ($tmp ? '<div class="mandatories"><span>'.getMLText('mandatory_approvergroups').':</span> '.implode(', ', $tmp).'</div>' : '')))
|
2018-06-21 07:28:31 +00:00
|
|
|
);
|
2014-06-17 16:11:09 +00:00
|
|
|
|
2014-03-03 13:46:16 +00:00
|
|
|
/* 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']);
|
2018-06-21 07:35:45 +00:00
|
|
|
$this->warningMsg(getMLText("mandatory_approvergroup_no_access", array('group'=>htmlspecialchars($noAccessGroup->getName()))));
|
2014-03-03 13:46:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->contentContainerEnd();
|
2018-06-21 07:35:45 +00:00
|
|
|
$this->warningMsg(getMLText("add_doc_reviewer_approver_warning"));
|
2023-03-30 10:26:35 +00:00
|
|
|
} else {
|
|
|
|
$this->contentContainerEnd();
|
2013-01-24 09:36:30 +00:00
|
|
|
}
|
2021-02-16 13:35:16 +00:00
|
|
|
$this->columnEnd();
|
|
|
|
$this->rowEnd();
|
2020-08-27 05:52:52 +00:00
|
|
|
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('add_document'));
|
2015-03-27 16:32:51 +00:00
|
|
|
?>
|
2012-12-14 07:53:13 +00:00
|
|
|
</form>
|
|
|
|
<?php
|
2018-10-23 09:20:34 +00:00
|
|
|
$txt = $this->callHook('addDocumentPostForm');
|
|
|
|
if(is_string($txt))
|
|
|
|
echo $txt;
|
2016-03-15 07:30:53 +00:00
|
|
|
$this->contentEnd();
|
2012-12-14 07:53:13 +00:00
|
|
|
$this->htmlEndPage();
|
|
|
|
|
|
|
|
} /* }}} */
|
|
|
|
}
|
|
|
|
?>
|