| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * The control file of score module of ZenTaoPMS.
- * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
- * @author Memory <lvtao@cnezsoft.com>
- * @package score
- * @version $Id: control.php $
- * @link https://www.zentao.net
- */
- class score extends control
- {
- /**
- * 创建积分。
- * javascript use : $.get(createLink('score', 'ajax', "method=method"));
- *
- * @param string $method
- * @access public
- * @return void
- */
- public function ajax($method = '')
- {
- $this->score->create('ajax', $method);
- }
- /**
- * 展示积分规则。
- * Show score rule.
- *
- * @access public
- * @return void
- */
- public function rule()
- {
- $this->app->loadLang('my');
- $this->view->title = $this->lang->my->scoreRule;
- $this->view->rules = $this->score->buildRules();
- $this->display();
- }
- }
|