upload.html.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * The upload view file of extension module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Tingting Dai <daitingting@easycorp.ltd>
  7. * @package extension
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $app->loadLang('file');
  12. if(!empty($error))
  13. {
  14. div
  15. (
  16. html($error),
  17. btn
  18. (
  19. set('data-load', 'modal'),
  20. set('url', createLink('extension', 'upload')),
  21. set::type('primary'),
  22. $lang->extension->refreshPage
  23. )
  24. );
  25. }
  26. else
  27. {
  28. modalHeader
  29. (
  30. set::title($lang->extension->upload),
  31. set::titleClass('font-bold')
  32. );
  33. form
  34. (
  35. formGroup
  36. (
  37. fileSelector
  38. (
  39. set::multiple(false),
  40. set::limitSize($maxUploadSize . 'B'),
  41. set::exceededSizeHint(sprintf($lang->file->errorFileSize, $maxUploadSize))
  42. )
  43. ),
  44. set::submitBtnText($lang->extension->install)
  45. );
  46. }
  47. render();