当前位置: 首页>>代码示例>>PHP>>正文


PHP FormFile::list_of_autoecmfiles方法代码示例

本文整理汇总了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);
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:ajaxdirpreview.php


注:本文中的FormFile::list_of_autoecmfiles方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。