From 0353cd49f174b5d200d067198ca82747bc723c9c Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 4 May 2020 02:24:18 +1000 Subject: [PATCH] new ndis price listed together with old price, using ID to differentiate each --- NdisPrice.php | 14 ++++---------- js/bts_office.js | 2 +- ts.php | 3 ++- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/NdisPrice.php b/NdisPrice.php index 545e54b..b8c26bf 100644 --- a/NdisPrice.php +++ b/NdisPrice.php @@ -6,26 +6,19 @@ class NdisPrice{ private $html = ''; private $ndis_table; private $tos =[]; - private $current_year = 2020; public function __construct(int $year=2019) { global $wpdb; - if ( $year == "2019"){ - $now = new \DateTime(); - //$year = (int)($now->format("Y")); - } - - $this->ndis_table = $wpdb->prefix . 'acare_ndis_price'; - $sql = "SELECT * FROM {$this->ndis_table} WHERE year=$year"; //for this year + $sql = "SELECT * FROM {$this->ndis_table}"; //for this year $results = $wpdb->get_results($sql); $this->tos =[]; $html = '