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' => '',
+ 'heading_cell_end' => ' | ',
+ 'tbody_open' => '',
+ 'tbody_close' => '',
+ 'row_start' => '',
+ 'row_end' => '
',
+ 'cell_start' => '',
+ 'cell_end' => ' | ',
+ 'row_alt_start' => '',
+ 'row_alt_end' => '
',
+ 'cell_alt_start' => '',
+ 'cell_alt_end' => ' | ',
+ 'table_close' => '
'
+ );
+ //$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 =$label_env??''?>
-
+
+
+
+
+ MERMS Provision = $label_env ?? '' ?>
+
+
+
+
+ Ongoing Provisions
+
+
+
+
+ | # |
+ Default URL |
+ Added |
+ Prov. Status |
+
+
+
+
+
+ | = $pr->id ?> |
+ = $pr->internal_url ?> |
+ = $pr->added ?> |
+ = $pr->status ?> |
+
+
+
+
+
+
+
+ Hanging Provisions
+
+
+
+
+ | # |
+ Default URL |
+ Added |
+ Prov. Status |
+
+
+
+
+
+ | = $pr->id ?> |
+ = $pr->internal_url ?> |
+ = $pr->added ?> |
+ = $pr->status ?> |
+
+
+
+
+
+
+
+ Completed Provisions
+
+
+
+
+ | # |
+ Default URL |
+ Added |
+ Prov. Status |
+
+
+
+
+
+ | = $pr->id ?> |
+ = $pr->internal_url ?> |
+ = $pr->added ?> |
+ = $pr->status ?> |
+
+
+
+
+
+
+
+
+
-
-
-
- | # |
- First |
- Last |
- Handle |
-
-
-
-
- | 1 |
- Mark |
- Otto |
- @mdo |
-
-
- | 2 |
- Jacob |
- Thornton |
- @fat |
-
-
- | 3 |
- Larry the Bird |
- @twitter |
-
-
-