code.html.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * The code 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. formPanel
  12. (
  13. setID('setCodeForm'),
  14. set::actions(array('submit')),
  15. formRow
  16. (
  17. setClass('set-code-box'),
  18. formGroup
  19. (
  20. set::label($lang->custom->setCode),
  21. radioList
  22. (
  23. set::name('code'),
  24. set::items($lang->custom->conceptOptions->URAndSR),
  25. set::value(isset($config->setCode) ? $config->setCode : 0),
  26. set::inline(true)
  27. )
  28. )
  29. ),
  30. formRow
  31. (
  32. setClass('set-code-tip'),
  33. formGroup
  34. (
  35. set::label(''),
  36. span
  37. (
  38. icon('info text-warning mr-2'),
  39. $lang->custom->notice->readOnlyOfCode
  40. )
  41. )
  42. )
  43. );
  44. /* ====== Render page ====== */
  45. render();