Faq page
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user