fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user