@@ 554-566 (lines=13) @@ | ||
551 | } |
|
552 | } |
|
553 | ||
554 | function get_reseller_Account_list($flag, $start = 0, $limit = 0, $export = false) { |
|
555 | $this->db_model->build_search('reseller_list_search'); |
|
556 | $where = array('reseller_id' => "0", "deleted" => "0", "type" => "1"); |
|
557 | if ($this->session->userdata('logintype') == 1 || $this->session->userdata('logintype') == 5) { |
|
558 | $where['reseller_id'] = $this->session->userdata["accountinfo"]['id']; |
|
559 | } |
|
560 | if ($flag) { |
|
561 | $query = $this->db_model->select("*", "accounts", $where, "number", "desc", $limit, $start); |
|
562 | } else { |
|
563 | $query = $this->db_model->countQuery("*", "accounts", $where); |
|
564 | } |
|
565 | return $query; |
|
566 | } |
|
567 | ||
568 | function get_provider_Account_list($flag, $start = 0, $limit = 0) { |
|
569 | $this->db_model->build_search('provider_list_search'); |
|
@@ 568-580 (lines=13) @@ | ||
565 | return $query; |
|
566 | } |
|
567 | ||
568 | function get_provider_Account_list($flag, $start = 0, $limit = 0) { |
|
569 | $this->db_model->build_search('provider_list_search'); |
|
570 | $where = array("deleted" => "0", "type" => "3", 'reseller_id' => 0); |
|
571 | if ($this->session->userdata('logintype') == 1 || $this->session->userdata('logintype') == 5) { |
|
572 | $where['reseller_id'] = $this->session->userdata["accountinfo"]['id']; |
|
573 | } |
|
574 | if ($flag) { |
|
575 | $query = $this->db_model->select("*", "accounts", $where, "number", "desc", $limit, $start); |
|
576 | } else { |
|
577 | $query = $this->db_model->countQuery("*", "accounts", $where); |
|
578 | } |
|
579 | return $query; |
|
580 | } |
|
581 | ||
582 | function remove_customer($id) { |
|
583 | $this->db->where("id", $id); |