"
",
'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' => '
'
);
var $template_nohead = 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' => '
'
);
public $data = array();
function __construct() {
parent::__construct();
}
protected function smart_htmlspecialchars($str) {
if (substr($str, 0, 1) == '<')
return $str;
return htmlspecialchars($str);
}
protected function sql_escape_func($inp) {
if (is_array($inp)) {
return array_map(__METHOD__, $inp);
}
if (!empty($inp) && is_string($inp)) {
return str_replace(array('\\', "\0", "\n", "\r", "'", '"', "\x1a"), array('\\\\', '\\0', '\\n', '\\r', "\\'", '\\"', '\\Z'), $inp);
}
return $inp;
}
protected function medtrans_api($in, $out) {
global $mobideliv;
$ret = -1;
$in['pid'] = 115;
/* if (!array_key_exists('mobideliv', $GLOBALS)) {
$USER = $_SERVER['SCRIPT_FILENAME'];
$USER = str_replace('/home', '', $USER);
$USER = strtok($USER, '/');
if ($USER == 'opt') {
$USER = 'root';
}
// Load API class
$mobideliv_class = 'mobideliv_api_' . $USER . '\\MobiDeliv';
// $mobideliv_class = 'mobideliv_api\\MobiDeliv';
$mobideliv = new $mobideliv_class();
}*/
$ret = $mobideliv->mobideliv_api($in, $out);
return $ret;
}
function formatedMesage($msgType,$theMessage)
{
return "";
}
protected function renderAdminPage($page_name, $data) {
$this->load->view('admin/view_admin_header',$data);
$this->load->view('admin/'.$page_name,$data);
$this->load->view('admin/view_admin_footer',$data);
}
}