Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://localhost/admin/modules/cancelled_jobs
- class Cancelled_jobs extends CIID_Controller {
- public function __construct()
- {
- parent::__construct();
- $this->set_table('job', 'Cancelled Job', 'Cancelled Jobs');
- $this->allow_delete = false;
- $this->allow_cancel = false;
- $this->allow_edit = false;
- $this->allow_reactivate = true;
- $this->allow_add = false;
- $this->overview
- ->add_item('Job No', 'active', 'job_id')
- ->add_item('Client', 'active|relationship', 'client.name')
- ->add_item('Name', 'active', 'name')
- ->add_item('Status', 'active|relationship', 'job_status.name')
- ->add_item('Assignee', 'active|relationship', 'team_member.name')
- ->add_item('Scheduled Date', 'active', 'scheduled_date')
- ->where("job.cancel_job = '1'")
- ->order_by('job.created_date DESC');
- $this->init();
- }
- }
- class Closed_jobs extends CIID_Controller {
- http://localhost/admin/modules/closed_jobs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement