diff --git a/application/controllers/Confg.php b/application/controllers/Confg.php index 9d68229..3818d3c 100644 --- a/application/controllers/Confg.php +++ b/application/controllers/Confg.php @@ -50,7 +50,12 @@ class Confg extends Bko_Controller { case "JOBSKILLTYPE": - echo 'akkfkkg'; + $this->load->library('table'); + $this->table->set_template($this->template); + $mysql = "SELECT * FROM skill_category ORDER BY category ASC"; // temporary + $query = $this->db->query($mysql); + $data['skill_category_table'] = $this->table->generate($query); + $this->load->view('bko/configure/extra/jobskill_form', $data); break; case "AREASON": @@ -123,11 +128,16 @@ class Confg extends Bko_Controller { break; case "FAQSET": + + $mysql2 = " SELECT code,description FROM faq_category"; + $query2 = $this->db->query($mysql2); + $data['faq_category'] = $query2->result(); + $this->load->library('table'); $this->table->set_template($this->template); - $mysql = "SELECT * FROM faq"; // WHERE agent_id = " . $data['agent_id']; + $mysql = "SELECT id,title,dir,msg,flags,added,status FROM faq"; // WHERE agent_id = " . $data['agent_id']; $query = $this->db->query($mysql); - // $this->table->set_heading(array('data' => 'Key', 'style' => 'width:60px'), 'Reason', array('data' => 'Action', 'style' => 'width:100px')); + $data['faq_result'] = $query->result(); $data['faq_table'] = $this->table->generate($query); $this->load->view('bko/configure/extra/faq_form', $data); break; @@ -136,7 +146,9 @@ class Confg extends Bko_Controller { } } } - +public function updatefaq(){ + echo 'got here'; +} public function addSkill() { $data = array(); diff --git a/application/views/bko/configure/extra/faq_form.php b/application/views/bko/configure/extra/faq_form.php index 601d1bd..de3a105 100644 --- a/application/views/bko/configure/extra/faq_form.php +++ b/application/views/bko/configure/extra/faq_form.php @@ -3,6 +3,66 @@