mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 01:52:22 +03:00
Fixed css bug; Added support for case insensitive search for clients and search by notes too!
This commit is contained in:
parent
58c996a839
commit
1c4ab83d32
3 changed files with 19 additions and 18 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -294,15 +294,14 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer footer">
|
||||
<button id="save-appointment" class="btn btn-primary">
|
||||
<?php echo $this->lang->line('save'); ?>
|
||||
</button>
|
||||
<button id="cancel-appointment" class="btn btn-default" data-dismiss="modal">
|
||||
<?php echo $this->lang->line('cancel'); ?>
|
||||
</button>
|
||||
<div class="modal-footer footer">
|
||||
<button id="save-appointment" class="btn btn-primary">
|
||||
<?php echo $this->lang->line('save'); ?>
|
||||
</button>
|
||||
<button id="cancel-appointment" class="btn btn-default" data-dismiss="modal">
|
||||
<?php echo $this->lang->line('cancel'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue