control.php 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * The control file of score module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  5. * @author Memory <lvtao@cnezsoft.com>
  6. * @package score
  7. * @version $Id: control.php $
  8. * @link https://www.zentao.net
  9. */
  10. class score extends control
  11. {
  12. /**
  13. * 创建积分。
  14. * javascript use : $.get(createLink('score', 'ajax', "method=method"));
  15. *
  16. * @param string $method
  17. * @access public
  18. * @return void
  19. */
  20. public function ajax($method = '')
  21. {
  22. $this->score->create('ajax', $method);
  23. }
  24. /**
  25. * 展示积分规则。
  26. * Show score rule.
  27. *
  28. * @access public
  29. * @return void
  30. */
  31. public function rule()
  32. {
  33. $this->app->loadLang('my');
  34. $this->view->title = $this->lang->my->scoreRule;
  35. $this->view->rules = $this->score->buildRules();
  36. $this->display();
  37. }
  38. }