From 1c4ab83d32796e2f4e07aafc936e2bb85bb6c1d3 Mon Sep 17 00:00:00 2001 From: h3ct0r Date: Thu, 10 Mar 2016 12:55:00 -0300 Subject: [PATCH] Fixed css bug; Added support for case insensitive search for clients and search by notes too! --- src/application/controllers/backend_api.php | 16 +++++++++------- src/application/views/backend/calendar.php | 17 ++++++++--------- src/assets/css/backend.css | 4 ++-- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/application/controllers/backend_api.php b/src/application/controllers/backend_api.php index f793d9ea..304745b9 100644 --- a/src/application/controllers/backend_api.php +++ b/src/application/controllers/backend_api.php @@ -410,15 +410,17 @@ class Backend_api extends CI_Controller { $this->load->model('customers_model'); $key = $this->db->escape_str($_POST['key']); + $key = strtoupper($key); $where_clause = - '(first_name LIKE "%' . $key . '%" OR ' . - 'last_name LIKE "%' . $key . '%" OR ' . - 'email LIKE "%' . $key . '%" OR ' . - 'phone_number LIKE "%' . $key . '%" OR ' . - 'address LIKE "%' . $key . '%" OR ' . - 'city LIKE "%' . $key . '%" OR ' . - 'zip_code LIKE "%' . $key . '%")'; + '(first_name LIKE upper("%' . $key . '%") OR ' . + 'last_name LIKE upper("%' . $key . '%") OR ' . + 'email LIKE upper("%' . $key . '%") OR ' . + 'phone_number LIKE upper("%' . $key . '%") OR ' . + 'address LIKE upper("%' . $key . '%") OR ' . + 'city LIKE upper("%' . $key . '%") OR ' . + 'zip_code LIKE upper("%' . $key . '%") OR ' . + 'notes LIKE upper("%' . $key . '%"))'; $customers = $this->customers_model->get_batch($where_clause); diff --git a/src/application/views/backend/calendar.php b/src/application/views/backend/calendar.php index 3c816b20..9cf6634e 100644 --- a/src/application/views/backend/calendar.php +++ b/src/application/views/backend/calendar.php @@ -294,15 +294,14 @@ - - - diff --git a/src/assets/css/backend.css b/src/assets/css/backend.css index 67cde975..3387f5e8 100644 --- a/src/assets/css/backend.css +++ b/src/assets/css/backend.css @@ -168,12 +168,12 @@ body .modal.full-screen .modal-content { body .modal.full-screen .wrapper { min-height: 100%; - margin-bottom: -67px; /* modal-footer height */ + /*margin-bottom: -67px;*/ /* modal-footer height */ } body .modal.full-screen .modal-footer { background-color: #f5f5f5; - position: absolute; + /*position: absolute;*/ bottom: 0; width: 100%; height: 67px;