Ignore:
Timestamp:
Nov 4, 2014 4:50:55 PM (11 years ago)
Author:
quyenla
Message:

collaborator

File:
1 edited

Legend:

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

    r401 r402  
    110110        {
    111111            unset($input['passwd2']);
     112            $input['passwd']=md5($input['activated']);
    112113            $input['activated']=1;
    113114            $input['created_time']=date("Y-m-d H:i:s");
     
    135136        $this->load->view('collaborator/editUser',$data);
    136137    }
     138    public function dodeleteUser()
     139    {
     140        $input=$this->input->post();
     141        $id=$input['id'];
     142        $this->load->model('collabolator_model');
     143        $data=$this->collabolator_model->delete($id);
     144        $result['success']=1;
     145        echo json_encode($result);
     146    }
     147    public function deleteUser()
     148    {
     149        $id=$this->uri->segment(4);
     150        $this->load->model('collabolator_model');
     151        $data=$this->collabolator_model->getCollaborator($id);
     152        $this->load->view('collaborator/deleteUser',$data);
     153    }
    137154    public function updateUser()
    138155    {
     
    177194        {
    178195            unset($input['passwd2']);
    179             $input['activated']=1;
     196            $input['passwd']=md5($input['activated']);
    180197            $input['updated_time']=date("Y-m-d H:i:s");
    181198            $this->load->model('collabolator_model');
Note: See TracChangeset for help on using the changeset viewer.