public function index()
 {
     $map['status'] = array('gt', -1);
     $list = $this->lists('public_output', $map);
     int_to_string($list);
     foreach ($list as $key => $value) {
         $model_id = get_document_field($value['model'], "name", "id");
         $list[$key]['model_id'] = $model_id ? $model_id : 0;
     }
     $this->assign('info', $list);
     $this->display();
 }
 /**
  * 行为日志列表
  * @author Rocks
  */
 public function actionLog()
 {
     //获取列表数据
     $map['status'] = array('gt', -1);
     $list = $this->lists('ActionLog', $map);
     int_to_string($list);
     foreach ($list as $key => $value) {
         $model_id = get_document_field($value['model'], "name", "id");
         $list[$key]['model_id'] = $model_id ? $model_id : 0;
     }
     $this->assign('_list', $list);
     $this->meta_title = '行为日志';
     $this->display();
 }
 /**
  * 行为日志列表
  * @author huajie <*****@*****.**>
  */
 public function actionLog()
 {
     //获取列表数据
     $aUid = I('get.uid', 0, 'intval');
     if ($aUid) {
         $map['user_id'] = $aUid;
     }
     $map['status'] = array('gt', -1);
     $list = $this->lists('ActionLog', $map);
     int_to_string($list);
     foreach ($list as $key => $value) {
         $model_id = get_document_field($value['model'], "name", "id");
         $list[$key]['model_id'] = $model_id ? $model_id : 0;
     }
     $this->assign('_list', $list);
     $this->meta_title = L('_BEHAVIOR_LOG_');
     $this->display();
 }
 /**
  * 行为日志列表
  * @author huajie <*****@*****.**>
  */
 public function actionLog()
 {
     //获取列表数据
     $model = 'ActionLog';
     //模型名称
     //查询过滤条件
     $map['status'] = array('gt', -1);
     //使用后台排序
     //$list   =   $this->lists($model, $map);
     //使用前台排序
     $list = M($model)->where($map)->select();
     int_to_string($list);
     foreach ($list as $key => $value) {
         $model_id = get_document_field($value['model'], "name", "id");
         $list[$key]['model_id'] = $model_id ? $model_id : 0;
     }
     $this->assign('_list', $list);
     $this->meta_title = '行为日志';
     $this->display();
 }