本文整理汇总了PHP中FormFile::list_of_autoecmfiles方法的典型用法代码示例。如果您正苦于以下问题:PHP FormFile::list_of_autoecmfiles方法的具体用法?PHP FormFile::list_of_autoecmfiles怎么用?PHP FormFile::list_of_autoecmfiles使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormFile
的用法示例。
在下文中一共展示了FormFile::list_of_autoecmfiles方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FormFile
print '<!-- Page called with mode=' . $mode . ' url=' . $_SERVER["PHP_SELF"] . '?' . $_SERVER["QUERY_STRING"] . ' -->' . "\n";
$param = '';
$param .= ($sortfield ? '&sortfield=' . $sortfield : '') . ($sortorder ? '&sortorder=' . $sortorder : '');
$url = DOL_URL_ROOT . '/ecm/index.php';
// Dir scan
if ($type == 'directory') {
$formfile = new FormFile($db);
$maxlengthname = 40;
// Right area. If module is defined, we are in automatic ecm.
if ($module == 'company') {
$upload_dir = $conf->societe->dir_output;
// TODO change for multicompany sharing
$filearray = dol_dir_list($upload_dir, "files", 1, '', array('^SPECIMEN\\.pdf$', '^\\.', '\\.meta$', '^temp$', '^payments$', '^CVS$', '^thumbs$'), $sortfield, strtolower($sortorder) == 'desc' ? SORT_DESC : SORT_ASC, 1);
$param .= '&module=' . $module;
$textifempty = $section ? $langs->trans("NoFileFound") : ($showonrightsize == 'featurenotyetavailable' ? $langs->trans("FeatureNotYetAvailable") : $langs->trans("NoFileFound"));
$formfile->list_of_autoecmfiles($upload_dir, $filearray, $module, $param, 1, '', $user->rights->ecm->upload, 1, $textifempty, $maxlengthname, $url);
} else {
if ($module == 'invoice') {
$upload_dir = $conf->facture->dir_output;
$filearray = dol_dir_list($upload_dir, "files", 1, '', array('^SPECIMEN\\.pdf$', '^\\.', '\\.meta$', '^temp$', '^payments$', '^CVS$', '^thumbs$'), $sortfield, strtolower($sortorder) == 'desc' ? SORT_DESC : SORT_ASC, 1);
$param .= '&module=' . $module;
$textifempty = $section ? $langs->trans("NoFileFound") : ($showonrightsize == 'featurenotyetavailable' ? $langs->trans("FeatureNotYetAvailable") : $langs->trans("NoFileFound"));
$formfile->list_of_autoecmfiles($upload_dir, $filearray, $module, $param, 1, '', $user->rights->ecm->upload, 1, $textifempty, $maxlengthname, $url);
} else {
if ($module == 'invoice_supplier') {
$relativepath = 'facture';
$upload_dir = $conf->fournisseur->dir_output . '/' . $relativepath;
$filearray = dol_dir_list($upload_dir, "files", 1, '', array('^SPECIMEN\\.pdf$', '^\\.', '\\.meta$', '^temp$', '^CVS$', '^thumbs$'), $sortfield, strtolower($sortorder) == 'desc' ? SORT_DESC : SORT_ASC, 1);
$param .= '&module=' . $module;
$textifempty = $section ? $langs->trans("NoFileFound") : ($showonrightsize == 'featurenotyetavailable' ? $langs->trans("FeatureNotYetAvailable") : $langs->trans("NoFileFound"));
$formfile->list_of_autoecmfiles($upload_dir, $filearray, $module, $param, 1, '', $user->rights->ecm->upload, 1, $textifempty, $maxlengthname, $url);