UserConfigController.php 652 B

1234567891011121314151617181920212223
  1. <?php
  2. class UserConfigController extends AdminController{
  3. public function actionIndex()
  4. {
  5. $this->render('index');
  6. }
  7. public function actionList(){
  8. $score_action = Yii::app()->params['score_action'];
  9. $show_array = array();
  10. foreach ($score_action as $key => $name) {
  11. $row['key'] = $key;
  12. $row['name'] = $name;
  13. $row['value'] = Service::factory('VariableService')->getVariable($key)?Service::factory('VariableService')->getVariable($key):0;
  14. $show_array[] = $row;
  15. }
  16. echo CommonFn::composeDatagridData($show_array,count($show_array));
  17. }
  18. }