product.html.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * The product 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. include 'sidebar.html.php';
  12. div
  13. (
  14. setClass('flex'),
  15. $sidebarMenu,
  16. formPanel
  17. (
  18. setID('closedProductForm'),
  19. set::actions(array('submit')),
  20. set::actionsClass('w-2/3'),
  21. setClass('flex-auto ml-4'),
  22. span
  23. (
  24. setClass('text-md font-bold'),
  25. $lang->custom->$module->fields['product']
  26. ),
  27. formGroup
  28. (
  29. set::width('2/3'),
  30. setClass('closed-product-box'),
  31. set::label($lang->custom->closedProduct),
  32. radioList
  33. (
  34. set::name('product'),
  35. set::items($lang->custom->CRProduct),
  36. set::value(isset($config->CRProduct) ? $config->CRProduct : 0),
  37. set::inline(true)
  38. )
  39. ),
  40. formGroup
  41. (
  42. set::label(''),
  43. span
  44. (
  45. setClass('flex items-center'),
  46. icon('info text-warning mr-1'),
  47. $lang->custom->notice->readOnlyOfProduct
  48. )
  49. )
  50. )
  51. );
  52. /* ====== Render page ====== */
  53. render();