percent.html.php 1.3 KB

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