diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 0416145..8f801d5 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -2,11 +2,39 @@ namespace App\Controllers; +use function MongoDB\BSON\toJSON; + class Home extends BaseController { + + public function index(): string { + $template = array( + 'table_open' => "", + 'thead_open' => '', + 'thead_close' => '', + 'heading_row_start' => '', + 'heading_row_end' => '', + 'heading_cell_start' => '', + 'tbody_open' => '', + 'tbody_close' => '', + 'row_start' => '', + 'row_end' => '', + 'cell_start' => '', + 'row_alt_start' => '', + 'row_alt_end' => '', + 'cell_alt_start' => '', + 'table_close' => '
', + 'heading_cell_end' => '
', + 'cell_end' => '
', + 'cell_alt_end' => '
' + ); + //$this->load->library('table'); + // $this->table->set_template($template); + $data['label_env'] = $this->what_env(); + $data["hanging_list"] = $this->getProvisionList(20); return view('welcome_message',$data); } @@ -16,6 +44,12 @@ class Home extends BaseController // echo env('CI_ENVIRONMENT'); return $curr_env; } + + private function getProvisionList($limit){ + $mysql ="SELECT * FROM members_products ORDER BY id DESC LIMIT $limit"; + $query = $this->db->query($mysql); + return $query->getResult(); + } // public function provision(): string // { // $public_path = FCPATH; diff --git a/app/Views/welcome_message.php b/app/Views/welcome_message.php index f1348b5..c05f6b9 100644 --- a/app/Views/welcome_message.php +++ b/app/Views/welcome_message.php @@ -21,40 +21,106 @@ crossorigin="anonymous"> - - - MERMS Provision - + + +
+ + MERMS Provision + +
+
+

+ Ongoing Provisions +

+ + + + + + + + + + + + + + + + + + + +
#Default URLAddedProv. Status
id ?>internal_url ?>added ?>status ?>
+
+
+

+ Hanging Provisions +

+ + + + + + + + + + + + + + + + + + + +
#Default URLAddedProv. Status
id ?>internal_url ?>added ?>status ?>
+
+
+

+ Completed Provisions +

+ + + + + + + + + + + + + + + + + + + +
#Default URLAddedProv. Status
id ?>internal_url ?>added ?>status ?>
+
+
+ + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter