50 lines
1.5 KiB
PHP
50 lines
1.5 KiB
PHP
<?php
|
|
|
|
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\' style=\'background-color:#0066cc; color:white;\'>',
|
|
'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() {
|
|
parent::__construct();
|
|
// this is your constructor
|
|
$this->load->helper('form');
|
|
$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'])) {
|
|
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) {
|
|
|
|
}
|
|
|
|
}
|