Esempio n. 1
0
 public function view_showUserCompense()
 {
     $OmAccountAct = new OmAccountAct();
     $StatusMenuAct = new StatusMenuAct();
     $uid = $_GET['uid'];
     //var_dump($_POST); exit;
     $showinfo = '';
     if (isset($_POST['action']) && !empty($_POST['action'])) {
         if ($OmAccountAct->act_addUserCompense($_POST)) {
             $showinfo = "<font color='green'>添加权限成功!</font>";
         } else {
             $showinfo = "<font color='red'>添加权限失败!</font>";
         }
         $uid = $_POST['uid'];
     }
     if (empty($uid)) {
         header("location:index.php?mod=user&act=index");
         exit;
     }
     $this->smarty->assign('uid', $uid);
     $this->smarty->assign('showinfo', $showinfo);
     $UserCompenseList = $OmAccountAct->act_getUserCompenseList($uid);
     //echo "<pre>";
     //print_r($UserCompenseList); exit;
     //$visible_platform = array();
     //$visible_account  = array();
     //echo "<pre>";
     //var_dump($UserCompenseList);
     //$visible_platform = $UserCompenseList['visible_platform'];
     //$visible_account  = $UserCompenseList['visible_account'];
     $visible_movefolder = json_decode($UserCompenseList['visible_movefolder'], true);
     //$visible_showfolder = $UserCompenseList['visible_showfolder'];
     //$visible_editorder  = $UserCompenseList['visible_editorder'];
     $visible_platform_account = json_decode($UserCompenseList['visible_platform_account'], true);
     //var_dump($visible_platform_account); exit;
     /*if(empty($visible_movefolder)){
     			echo "=============";
     		}*/
     $key_visible_movefolder = array();
     if (is_array($visible_movefolder)) {
         $key_visible_movefolder = array_keys($visible_movefolder);
     }
     $StatusMenu = $StatusMenuAct->act_getStatusMenuListById('*', ' WHERE groupId != 0 ');
     //var_dump($StatusMenu);
     $statusGroupLists = $StatusMenuAct->act_getMenuGroupList();
     //echo "<pre>"; print_r($statusGroupLists); exit;
     //$all_platform = $UserCompenseList['all_platform'];
     //var_dump($all_platform);
     //$all_account = $UserCompenseList['all_account'];
     //$all_account = $UserCompenseList['all_account'];
     $arr_all_platform_account = $UserCompenseList['arr_all_platform_account'];
     $editorder_options = array(1 => '平台', '账号', '买家ID', '订单号', '下单时间', '付款时间', '产品总金额', '物流费用', '订单金额', 'Transaction ID', '币种', '估算重量', '买家选择发货物流', '跟踪号', 'Full name', 'Street1', 'Street2', 'City', 'State', 'Country	', 'Postcode', 'Tel1', 'Tel2', 'Tel3', '买家邮箱1', '买家邮箱2', '买家邮箱3', '订单备注');
     $this->smarty->assign('editorder_options', $editorder_options);
     //$this->smarty->assign('visible_platform', $visible_platform);
     //$this->smarty->assign('visible_account', $visible_account);
     $this->smarty->assign('visible_platform_account', $visible_platform_account);
     $this->smarty->assign('arr_all_platform_account', $arr_all_platform_account);
     $this->smarty->assign('key_visible_movefolder', $key_visible_movefolder);
     $this->smarty->assign('visible_showfolder', $visible_showfolder);
     $this->smarty->assign('visible_editorder', $visible_editorder);
     //$this->smarty->assign('all_platform', $all_platform);
     //$this->smarty->assign('all_account', $all_account);
     $this->smarty->assign('StatusMenu', $StatusMenu);
     $this->smarty->assign('statusGroupLists', $statusGroupLists);
     $this->smarty->assign('toptitle', '订单系统细颗粒度权限控制');
     $this->smarty->assign('toplevel', 3);
     $this->smarty->assign('secondlevel', '32');
     $this->smarty->display("showUserCompense.htm");
 }
Esempio n. 2
0
 function act_getAllInStatusIds()
 {
     //global $memc_obj; //调用memcache获取sku信息
     //$statusId = isset($_POST['statusId']) ? $_POST['statusId'] : $statusId;
     $addUser = $_SESSION['sysUserId'];
     $OmAccountAct = new OmAccountAct();
     $UserCompenseList = $OmAccountAct->act_getUserCompenseList($addUser);
     //echo "<pre>";
     //var_dump($UserCompenseList);
     //$visible_platform = $UserCompenseList['visible_platform'];
     //$visible_account = $UserCompenseList['visible_account'];
     $visible_movefolder = json_decode($UserCompenseList['visible_movefolder'], true);
     if (!empty($visible_movefolder)) {
         return $visible_movefolder;
     } else {
         return array();
     }
 }