score.html.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * The score view file of my 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 Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package my
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('methods', $lang->score->methods);
  12. featureBar(set::current('all'));
  13. $cols = array_values($config->my->score->dtable->fieldList);
  14. $data = array_values($scores);
  15. toolbar
  16. (
  17. span
  18. (
  19. setClass('btn text'),
  20. h::strong
  21. (
  22. $lang->score->current,
  23. ':'
  24. ),
  25. $user->score
  26. ),
  27. hasPriv('score', 'rule') ? btn
  28. (
  29. setClass('btn primary'),
  30. set::url(helper::createLink('score', 'rule')),
  31. $lang->my->scoreRule
  32. ) : null
  33. );
  34. dtable
  35. (
  36. set::cols($cols),
  37. set::data($data),
  38. set::fixedLeftWidth('0.2'),
  39. set::onRenderCell(jsRaw('window.renderCell')),
  40. set::footPager(usePager())
  41. );
  42. render();