From e7052ee0a351f196babbfce3c9583182f1dff529 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Tue, 14 Jun 2022 21:58:41 -0400 Subject: [PATCH] FAQ --- application/controllers/Confg.php | 9 +++++++++ .../views/bko/configure/extra/faq_form.php | 20 +++++++++++++++++++ .../bko/configure/view_bko_configure.php | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 application/views/bko/configure/extra/faq_form.php diff --git a/application/controllers/Confg.php b/application/controllers/Confg.php index e93b402..9d68229 100644 --- a/application/controllers/Confg.php +++ b/application/controllers/Confg.php @@ -122,6 +122,15 @@ class Confg extends Bko_Controller { break; + case "FAQSET": + $this->load->library('table'); + $this->table->set_template($this->template); + $mysql = "SELECT * 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_table'] = $this->table->generate($query); + $this->load->view('bko/configure/extra/faq_form', $data); + break; default: echo "Your favorite color is neither red, blue, nor green!"; } diff --git a/application/views/bko/configure/extra/faq_form.php b/application/views/bko/configure/extra/faq_form.php new file mode 100644 index 0000000..601d1bd --- /dev/null +++ b/application/views/bko/configure/extra/faq_form.php @@ -0,0 +1,20 @@ +
+ FAQ +
+
+
+ + + + + + + +
+
+ +
+
+ +
+ diff --git a/application/views/bko/configure/view_bko_configure.php b/application/views/bko/configure/view_bko_configure.php index 994346d..a7649a3 100644 --- a/application/views/bko/configure/view_bko_configure.php +++ b/application/views/bko/configure/view_bko_configure.php @@ -39,7 +39,7 @@