This commit is contained in:
Olusesan Ameye
2021-02-17 14:11:45 -05:00
parent ddbb801480
commit 45657aa0b5
4 changed files with 77 additions and 138 deletions
@@ -2,7 +2,26 @@
class Admin_Controller extends MCORE_Controller {
public $template = array(
'table_open' => "<table datatable-scroll-y class='table table-striped table-hover table-bordered table-condensed'>",
'thead_open' => '<thead class=\'bg-indigo\'>',
'thead_close' => '</thead>',
'heading_row_start' => '<tr>',
'heading_row_end' => '</tr>',
'heading_cell_start' => '<th>',
'heading_cell_end' => '</th>',
'tbody_open' => '<tbody>',
'tbody_close' => '</tbody>',
'row_start' => '<tr>',
'row_end' => '</tr>',
'cell_start' => '<td>',
'cell_end' => '</td>',
'row_alt_start' => '<tr>',
'row_alt_end' => '</tr>',
'cell_alt_start' => '<td>',
'cell_alt_end' => '</td>',
'table_close' => '</table>',
);
public $data = array();
function __construct() {
@@ -12,23 +31,19 @@ class Admin_Controller extends MCORE_Controller {
$this->load->helper('url');
// you dont have bussines here if you are not in session
if (!isset($_SESSION['session_id']) or ! isset($_SESSION['backoffice_id']) ) {
if (!isset($_SESSION['session_id']) or ! isset($_SESSION['backoffice_id'])) {
redirect('/logout');
}
}
public function getSessionArray() {
$data["current_date"] = date('l jS \of F Y h:i:s A');
return $data;
}
private function refreshAccountDetail($member_id) {
}
}