Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. http://localhost/admin/modules/cancelled_jobs
  2.  
  3. class Cancelled_jobs extends CIID_Controller {
  4.  
  5.  
  6. public function __construct()
  7.  
  8. {
  9.  
  10. parent::__construct();
  11.  
  12. $this->set_table('job', 'Cancelled Job', 'Cancelled Jobs');
  13.  
  14. $this->allow_delete = false;
  15. $this->allow_cancel = false;
  16. $this->allow_edit = false;
  17. $this->allow_reactivate = true;
  18. $this->allow_add = false;
  19.  
  20. $this->overview
  21. ->add_item('Job No', 'active', 'job_id')
  22. ->add_item('Client', 'active|relationship', 'client.name')
  23. ->add_item('Name', 'active', 'name')
  24. ->add_item('Status', 'active|relationship', 'job_status.name')
  25. ->add_item('Assignee', 'active|relationship', 'team_member.name')
  26. ->add_item('Scheduled Date', 'active', 'scheduled_date')
  27.  
  28. ->where("job.cancel_job = '1'")
  29. ->order_by('job.created_date DESC');
  30.  
  31. $this->init();
  32.  
  33. }
  34.  
  35.  
  36. }
  37.  
  38. class Closed_jobs extends CIID_Controller {
  39.  
  40. http://localhost/admin/modules/closed_jobs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement