libreoffice.html.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * The steps view file of deploy module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2025 禅道软件(青岛)有限公司(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 Yidong Wang<yidong@easycorp.ltd>
  7. * @package custom
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. if($config->requestType != 'PATH_INFO') unset($lang->custom->typeList['collabora']);
  12. formPanel
  13. (
  14. setID('setOfficeForm'),
  15. set::title($lang->custom->libreOffice),
  16. set::actions(array('submit')),
  17. formGroup
  18. (
  19. set::label($lang->custom->libreOfficeTurnon),
  20. radioList(set::name('libreOfficeTurnon'), set::items($lang->custom->turnonList), set::value($config->file->libreOfficeTurnon), set::inline(true))
  21. ),
  22. formGroup
  23. (
  24. set::label($lang->custom->type),
  25. on::change('[name=convertType]', 'togglePathBoxByType'),
  26. radioList(set::name('convertType'), set::items($lang->custom->typeList), set::value(zget($config->file, 'convertType', 'libreoffice')), set::inline(true))
  27. ),
  28. formRow
  29. (
  30. setClass('libreofficeBox'),
  31. formGroup
  32. (
  33. set::label($lang->custom->libreOfficePath),
  34. input(set::name('sofficePath'), set::value(zget($config->file, 'sofficePath', '')), set::autocomplete('off'), set::placeholder($lang->custom->sofficePlaceholder))
  35. )
  36. ),
  37. formRow
  38. (
  39. setClass('collaboraBox hidden'),
  40. formGroup
  41. (
  42. set::label($lang->custom->collaboraPath),
  43. input(set::name('collaboraPath'), set::value(zget($config->file, 'collaboraPath', '')), set::autocomplete('off'), set::placeholder($lang->custom->collaboraPlaceholder))
  44. )
  45. )
  46. );