%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/public_html/dg/application/modules/performance/controllers/
Upload File :
Create Path :
Current File : /home/ugotscom/public_html/dg/application/modules/performance/controllers/Performance.php

<?php
class Performance extends CI_Controller{
  function __construct(){
    parent::__construct();
      if(isset($_SESSION['username'])){
      
    }else{
      redirect('login');
    }
      $this->load->library('datatables'); //load library ignited-dataTable
      $this->load->model('performance_model'); //load model crud_model
  }
  function index(){
      $x['category']=$this->performance_model->get_category();
      $data['totalno']=$this->performance_model->totalno();
      $data['content']='performance_view';
      $this->load->view('common/layout',$data);
      $this->load->view('performance_view',$x);
     
  }

  function get_product_json() { //get product data and encode to be JSON object
      header('Content-Type: application/json');
      echo $this->performance_model->get_all_product();
  }

  function save(){ //insert record method

        
      $this->performance_model->insert_product();
      redirect('performance');
  }

  function update(){ //update record method

      $this->performance_model->update_product();
      redirect('performance');

  }

  function delete(){ //delete record method
      $this->performance_model->delete_product();
      redirect('performance');
  }

  public function edit($id)
  { 

$data['customer'] = $this->performance_model->get_customer($id);
$data['content'] = $this->load->view('edit',$data);
$this->load->view('common/layout',$data);

   
  }
    public function view($id)
  { 

$data['customer'] = $this->performance_model->get_customer($id);
$data['closedleads'] = $this->performance_model->closed_leads($id);
$data['totalleads'] = $this->performance_model->leads($id);
$data['content'] = $this->load->view('view',$data);
$this->load->view('common/layout',$data);

   
  }
public function add()
  { 
    
   $data['locations'] = $this->performance_model->get_location(); 
   $data['category'] = $this->performance_model->get_source();
   $data['content'] = $this->load->view('add',$data);
    $this->load->view('common/layout',$data);
 
    
  }
public function del()
  {                  
    
   
   $data['content'] = $this->load->view('delete');
    $this->load->view('common/layout',$data);
 
    
  }




}

Zerion Mini Shell 1.0