Ejemplo n.º 1
0
 public function ibox_app_datatable_customize($pagination)
 {
     $search_condition = '';
     $gateway_id = 0;
     $args = get_controller_args();
     if (count($args)) {
         $gateway_id = $args[0];
     }
     foreach ($pagination->where as $column => $search) {
         if ($search_condition) {
             $search_condition .= ' or ' . $column . " like '%" . $search . "%'";
         } else {
             $search_condition .= $column . " like '%" . $search . "%'";
         }
     }
     $pagination->customized_query->query .= " and c.gateway_id='" . $gateway_id . "' ";
     $pagination->customized_query->dbtotal_count_query .= " and c.gateway_id='" . $gateway_id . "' ";
     $pagination->customized_query->total_count_query .= " and c.gateway_id='" . $gateway_id . "' ";
     if ($search_condition) {
         $pagination->customized_query->query .= " and (" . $search_condition . ")";
         $pagination->customized_query->dbtotal_count_query .= " and (" . $search_condition . ")";
         $pagination->customized_query->total_count_query .= " and (" . $search_condition . ")";
     }
     return $pagination;
 }
Ejemplo n.º 2
0
function get_controller_meta()
{
    $action = new Action();
    $action->controller = get_controller_class();
    $action->method = get_controller_method();
    $action->args = get_controller_args();
    return $action;
}
Ejemplo n.º 3
0
 public function user_form()
 {
     $args = get_controller_args();
     if (count($args)) {
         $this->blacklist_model->add2Bakcklist($args[0], explode(',', $this->input->post('ids')));
         $this->addAlert(array('type' => 'info', 'message' => lang('Add the user to blacklist successfully!')));
     }
     $this->init_responsive();
     $this->less('ibox/user_css');
     $this->render('ibox/user');
 }