timezone.html.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * The timezone view file of custom 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 Shujie Tian<tianshujie@easycorp.ltd>
  7. * @package custom
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. if(!function_exists('date_default_timezone_set'))
  12. {
  13. panel
  14. (
  15. div
  16. (
  17. setClass('alert warning-pale bd bd-warning w-1/3'),
  18. $lang->custom->notice->cannotSetTimezone
  19. )
  20. );
  21. }
  22. else
  23. {
  24. include $this->app->getConfigRoot() . 'timezones.php';
  25. formPanel
  26. (
  27. setID('timezoneForm'),
  28. set::actions(array('submit')),
  29. set::actionsClass('w-1/3'),
  30. formRow
  31. (
  32. set::width('1/3'),
  33. formGroup
  34. (
  35. set::label($lang->custom->timezone),
  36. picker
  37. (
  38. set::name('timezone'),
  39. set::items($timezoneList),
  40. set::value($config->timezone),
  41. set::required(true)
  42. )
  43. )
  44. )
  45. );
  46. }
  47. /* ====== Render page ====== */
  48. render();