Changeset 771


Ignore:
Timestamp:
Mar 2, 2015 12:48:54 PM (10 years ago)
Author:
quyenla
Message:

admin roles

Location:
pro-violet-viettel/sourcecode/application/modules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/controllers/reportprovince.php

    r761 r771  
    102102        $writer->save('php://output');
    103103    }
    104    
     104    public function test()
     105    {
     106        $input['date']=1;
     107        $input['month']=1;
     108        $input['year']=2014;
     109        $input['to_month']=1;
     110        $input['to_year']=2015;
     111        $input['to_date']=15;
     112        $data=$this->reportmodel->exportPackage($input);
     113        echo "<pre>";
     114        print_r ($data);
     115        echo "</pre>";
     116    }
    105117}
  • pro-violet-viettel/sourcecode/application/modules/ajax/controllers/privatecontent.php

    r686 r771  
    3939       
    4040        public function getContent () {
    41                 $xmlData = $this->vservices->getPrivateTree();
    42  
    43                 $this->xml->parse($xmlData);
     41                $xmlData = $this->vservices->getPrivateTree(); 
     42                //echo $xmlData;die();
     43                $this->xml->parse($xmlData);
    4444               
    4545                $aryDirs = array();
     
    7171                        if (is_array($this->xml->tree->filelist->file)) {
    7272                                foreach($this->xml->tree->filelist->file as $key=>$value){
    73                                         $aryFiles[] = array('id' => $value->_param['id'], 'name' => $value->_value, 'parentID' => $value->_param['parentid'] == -1 ? 0:$value->_param['parentid'], 'minetype' => $value->_param['filetype']);
     73                                        $aryFiles[] = array('fileurl' => $value->_param['fileurl'], 'id' => $value->_param['id'], 'name' => $value->_value, 'parentID' => $value->_param['parentid'] == -1 ? 0:$value->_param['parentid'], 'minetype' => $value->_param['filetype']);
    7474                                }
    7575                        }else {
    7676                                $file = $this->xml->tree->filelist->file;
    77                                 $aryFiles[] = array('id' => $file->_param['id'], 'name' => $file->_value,'parentID' => $file->_param['parentid'] == -1 ? 0:$file->_param['parentid'], 'minetype' => $file->_param['filetype']);
     77                                $aryFiles[] = array('fileurl' => $value->_param['fileurl'],'id' => $file->_param['id'], 'name' => $file->_value,'parentID' => $file->_param['parentid'] == -1 ? 0:$file->_param['parentid'], 'minetype' => $file->_param['filetype']);
    7878                        }
    7979                }
  • pro-violet-viettel/sourcecode/application/modules/frontend/controllers/user.php

    r765 r771  
    412412            $data['user']=  array_merge($user,$local);       
    413413            $this->lang->load('messages', 'message');
     414            $admin=$this->session->userdata('adminInfo');
     415            $roles=array();
     416            foreach ($admin['roles'] as $role)
     417            {
     418                $roles[]=$role['role_name'];
     419            }
     420            $data['roles']=$roles;
    414421            $data['provinces'] = lang('_PROVINCES_');
    415422            $result['modal']=$this->load->view('frontend/user_infor', $data, TRUE);               
Note: See TracChangeset for help on using the changeset viewer.