public function sportitemBaseComment()
 {
     //接收传过来的数据
     //sportitem_base_id
     $sportitem_base_id = isset($_POST['sportitem_base_id']) ? trim($_POST['sportitem_base_id']) : null;
     //auditreply
     $auditreply = isset($_POST['auditreply']) ? trim($_POST['auditreply']) : null;
     $jsondata = array();
     $cp = new CommonPRM();
     $btbSportitemBasePRM = new BtbSportitemBasePRM();
     $btbSportitemBasePRM->id = $sportitem_base_id;
     //大纲List
     $sportitemBaseList = BtbSportitemBaseBLL::getSportitemBaseList($cp, $btbSportitemBasePRM);
     if (count($sportitemBaseList) > 0) {
         $dataSportitemBase = array();
         $dataSportitemBase['id'] = $sportitem_base_id;
         $dataSportitemBase['auditreply'] = $auditreply;
         $rowsSportitemBase = BtbSportitemBaseBLL::btbSportitemBaseUpdate($dataSportitemBase);
         if ($rowsSportitemBase > 0) {
             //$flag = 1;
             $jsondata['code'] = 1;
             $jsondata['msg'] = '保存批注成功';
         } else {
             //$flag = 0;
             $jsondata['code'] = -1;
             $jsondata['msg'] = '保存批注失败';
         }
     }
     //$this->ajaxReturn($flag);
     $this->ajaxReturn($jsondata);
 }
 public function index()
 {
     //接收sportitem_base_id
     $sportitem_base_id = SessionData::getPageData('SportitemBaseDetail', 'sportitem_base_id');
     //查看1,编辑2
     $actiontype = SessionData::getPageData('SportitemBaseDetail', 'actiontype');
     $cp = new CommonPRM();
     $btbSportitemBasePRM = new BtbSportitemBasePRM();
     $btbSportitemBasePRM->id = $sportitem_base_id;
     $sportitemBaseList = BtbSportitemBaseBLL::getSportitemBaseList($cp, $btbSportitemBasePRM);
     $sportitemBaseList = $sportitemBaseList[0];
     //获取登录者的信息
     $user = $this->getLoginInfo();
     //要点数组
     //$content = explode(',', $sportitemBaseList['content']);
     $this->assign('actiontype', $actiontype);
     //$this->assign('content',$content);
     $this->assign('sportitemBaseList', $sportitemBaseList);
     //menu动作库
     $this->assign('headtype', 2);
     //课程管理1还是课程审核页面0
     $this->assign('coachtype', $user['type']);
     //$this->display('SportitemBaseDetail/index');
     $this->display('SportitemBase/sportitemBaseDetail');
 }
 public function index()
 {
     //当前页码
     $nowpage = isset($_GET['pageIndex']) ? trim($_GET['pageIndex']) : 1;
     //审核状态
     $auditstatus = isset($_GET['auditstatus']) ? trim($_GET['auditstatus']) : null;
     $cp = new CommonPRM();
     $pageInfo = new PageInfo();
     $pageInfo->nowpage = $nowpage;
     $pageInfo->pagesize = 10;
     $cp->pageinfo = $pageInfo;
     $btbSportitemBasePRM = new BtbSportitemBasePRM();
     $btbSportitemBasePRM->order_by = ' id DESC ';
     if (!is_null($auditstatus)) {
         if (is_numeric($auditstatus)) {
             //auditstatus不为空赋予查询条件
             $btbSportitemBasePRM->auditstatus = $auditstatus;
             //分页跳转的时候保证查询条件
             $urlPrefix = 'SportitemBaseList/index?auditstatus=' . $auditstatus;
         }
     } else {
         $urlPrefix = 'SportitemBaseList/index';
     }
     //获取登录者的信息
     $user = $this->getLoginInfo();
     $btbSportitemBasePRM->obj_createuser = $user['id'];
     //echo $user['id'];
     //exit;
     //动作库List
     $sportitemBaseList = BtbSportitemBaseBLL::getSportitemBaseList($cp, $btbSportitemBasePRM);
     $page = new CLinkPager($pageInfo->totalcount, $pageInfo->pagesize, $urlPrefix);
     $show = $page->show();
     $this->assign('auditstatus', $auditstatus);
     $this->assign('totalcount', $pageInfo->totalcount);
     $this->assign('page', $show);
     $this->assign('sportitemBaseList', $sportitemBaseList);
     //menu动作库
     $this->assign('headtype', 2);
     //课程管理1还是课程审核页面0
     $this->assign('coachtype', $user['type']);
     //$this->display("SportitemBaseList/index");
     $this->display("SportitemBase/index");
 }
 public function index()
 {
     //接收sportitem_base_id
     $sportitem_base_id = isset($_GET['id']) ? trim($_GET['id']) : null;
     $cp = new CommonPRM();
     $btbSportitemBasePRM = new BtbSportitemBasePRM();
     $btbSportitemBasePRM->id = $sportitem_base_id;
     $sportitemBaseList = BtbSportitemBaseBLL::getSportitemBaseList($cp, $btbSportitemBasePRM);
     $sportitemBaseList = $sportitemBaseList[0];
     //目标部位targetbodypart
     //$targetbodypart = str_replace(',','/',$sportitemBaseList['targetbodypart']);
     //获取登录者的信息
     $user = $this->getLoginInfo();
     $this->assign('sportitemBaseList', $sportitemBaseList);
     //menu动作库
     $this->assign('headtype', 2);
     //课程管理1还是课程审核页面0
     $this->assign('coachtype', $user['type']);
     //动作审核后台审核通过,推荐页面
     //$this->assign('addtype',4);
     //$this->assign('targetbodypart',$targetbodypart);
     //$this->display('SportitemBaseCheckDetailUpdate/index');
     $this->display('SportitemBaseCheck/sportitemBaseCheckDetailUpdate');
 }