diff --git a/module/file/control.php b/module/file/control.php index d3e6d9cdda..9050972c05 100755 --- a/module/file/control.php +++ b/module/file/control.php @@ -530,4 +530,18 @@ class file extends control fclose($handle); } } + + /** + * 关闭升级到企业版提示。 + * Close the biz guide. + * + * @param string $moduleName + * @access public + * @return void + */ + public function ajaxcloseBizGuide($moduleName) + { + $path = "{$this->app->user->account}.{$moduleName}.closeBizGuide@rnd"; + $this->loadModel('setting')->setItem($path, 1); + } } diff --git a/module/file/lang/de.php b/module/file/lang/de.php index b404172b62..390e57d919 100755 --- a/module/file/lang/de.php +++ b/module/file/lang/de.php @@ -72,6 +72,7 @@ $lang->file->errorSuffix = 'Format ist falsch. Nur .zip Dateien!'; $lang->file->errorExtract = 'Entpacken fehlgeschlagen. Die Datei ist vermutlich defekt.'; $lang->file->fileNotFound = 'The file was not found. The physical file might have been deleted!'; $lang->file->fileContentEmpty = 'The file is empty. Check the file and upload it again.'; +$lang->file->bizGuide = 'To utilize Excel import/export, upgrade to ZenTao %s edition on our website'; $lang->file->uploadError[1] = 'The uploaded filesize exceeds the limit. Please change the upload_max_filesize and post_max_size options in php.ini'; $lang->file->uploadError[2] = 'The size of the uploaded file exceeds the value specified by the MAX_FILE_SIZE option in the HTML form'; diff --git a/module/file/lang/en.php b/module/file/lang/en.php index 5f9f14173d..7e3ecc1d3b 100755 --- a/module/file/lang/en.php +++ b/module/file/lang/en.php @@ -72,6 +72,7 @@ $lang->file->errorSuffix = 'Format is incorrect. .zip files ONLY!'; $lang->file->errorExtract = 'Extracting files failed. Files might be damaged or there might be invalid files in the zip package.'; $lang->file->fileNotFound = 'The file was not found. The physical file might have been deleted!'; $lang->file->fileContentEmpty = 'The file is empty. Check the file and upload it again.'; +$lang->file->bizGuide = 'To utilize Excel import/export, upgrade to ZenTao %s edition on our website'; $lang->file->uploadError[1] = 'The uploaded filesize exceeds the limit. Please change the upload_max_filesize and post_max_size options in php.ini'; $lang->file->uploadError[2] = 'The size of the uploaded file exceeds the value specified by the MAX_FILE_SIZE option in the HTML form'; diff --git a/module/file/lang/fr.php b/module/file/lang/fr.php index 47899858ab..6efb1bb2a8 100755 --- a/module/file/lang/fr.php +++ b/module/file/lang/fr.php @@ -72,6 +72,7 @@ $lang->file->errorSuffix = 'Format incorrect. Fichiers .zip SEULEMENT !'; $lang->file->errorExtract = "Echec de l'extraction des fichiers. Les fichiers peuvent être endommagé ou il y a un fichier invalide dans le zip."; $lang->file->fileNotFound = 'Fichier non trouvé. Le fichier physique a peut-être été supprimé par innadvertance !'; $lang->file->fileContentEmpty = 'The file is empty. Check the file and upload it again.'; +$lang->file->bizGuide = 'To utilize Excel import/export, upgrade to ZenTao %s edition on our website'; $lang->file->uploadError[1] = 'The uploaded filesize exceeds the limit. Please change the upload_max_filesize and post_max_size options in php.ini'; $lang->file->uploadError[2] = 'The size of the uploaded file exceeds the value specified by the MAX_FILE_SIZE option in the HTML form'; diff --git a/module/file/lang/zh-cn.php b/module/file/lang/zh-cn.php index 0c91f025bd..9caf7fd3ba 100755 --- a/module/file/lang/zh-cn.php +++ b/module/file/lang/zh-cn.php @@ -72,6 +72,7 @@ $lang->file->errorSuffix = '压缩包格式错误,只能上传zip压缩 $lang->file->errorExtract = '解压缩失败!可能文件已经损坏,或压缩包里含有非法上传文件。'; $lang->file->fileNotFound = '未找到该文件,可能物理文件已被删除!'; $lang->file->fileContentEmpty = '上传文件内容为空,请检查后重新上传。'; +$lang->file->bizGuide = '如需使用EXCEL导入导出功能,可到官网升级到%s'; $lang->file->uploadError[1] = "上传的文件大小超过了限制,请修改 php.ini 中 upload_max_filesize 与 post_max_size 选项限制的值"; $lang->file->uploadError[2] = '上传文件的大小超过了 HTML 表单中 MAX_FILE_SIZE 选项指定的值'; diff --git a/module/file/view/export.html.php b/module/file/view/export.html.php index 26b192db2f..fc6c1604f6 100644 --- a/module/file/view/export.html.php +++ b/module/file/view/export.html.php @@ -22,7 +22,23 @@ #mainContent .c-name {width:120px;} #mainContent .c-fileName {width:300px;} +#mainContent .actionBox {text-align: center;} +edition == 'open' && empty($config->{$this->moduleName}->closeBizGuide)):?> + + + + + export;?>