예제 #1
0
 public function act_showGlobalUser()
 {
     $userid = $_SESSION['sysUserId'];
     //echo($userid); echo "<br>";
     if (!$userid) {
         self::$errCode = "1001";
         self::$errMsg = "用户ID参数过期";
         return false;
     }
     $result = UserCompetenceModel::showCompetenceVisibleAccount($userid);
     self::$errCode = UserCompetenceModel::$errCode;
     self::$errMsg = UserCompetenceModel::$errMsg;
     return $result;
 }
예제 #2
0
 public function view_showUserCompense()
 {
     $shipArr = array();
     $platformAccountList = CommonModel::getPlatformAccountList();
     //获取平台及对应账号
     $shipingtyplist = CommonModel::getShipingTypeList();
     //运输方式列表
     $uid = $_GET['uid'];
     $shipArr = UserCompetenceModel::showCompetenceVisibleShip($uid);
     $powerAccountList = UserCompetenceModel::showCompetenceVisibleAccount($uid);
     //获取权限对应账号
     $powerPlatformList = UserCompetenceModel::getCompetenceVisiblePlat($uid);
     //获取权限对应平台
     $this->smarty->assign('uid', $uid);
     $this->smarty->assign('shipArr', $shipArr);
     $this->smarty->assign('shipingtypelist', $shipingtyplist);
     $this->smarty->assign('platformAccountList', $platformAccountList);
     $this->smarty->assign('powerAccountList', $powerAccountList);
     $this->smarty->assign('powerPlatformList', $powerPlatformList);
     $this->smarty->display("showUserCompense.htm");
 }