| Server IP : 162.214.74.102 / Your IP : 216.73.217.114 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/team/application/views/backend/admin/ |
Upload File : |
<div class="row well">
<div class="col-md-2"></div>
<?php echo form_open(base_url() . 'index.php?admin/reload_search_result_body' , array('class' => 'search-form')); ?>
<div class="col-md-7">
<input type="text" id="search_input1" class="form-control input-lg"
placeholder="<?php echo get_phrase('type_something_to_search');?> ..."
name="search_key" value="<?php echo $search_key;?>" onkeyup="submit_search_form()">
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-info btn-lg">
<i class="entypo-search"></i>
</button>
</div>
<?php echo form_close();?>
<div class="col-md-2"></div>
</div>
<br>
<div class="main_data">
<?php include 'search_result.php';?>
</div>
<script>
function submit_search_form(){
var search_char = $('#search_input1').val();
var search_char_length = search_char.length;
if (search_char_length > 2) {
$('.search-form').submit();
}
}
$(document).ready(function () {
var options = {
beforeSubmit: validate_search,
success: show_response_for_search
};
$('.search-form').submit(function () {
$(this).ajaxSubmit(options);
return false;
});
});
function validate_search(formData, jqForm, options) {
var search_char = $('#search_input1').val();
var search_char_length = search_char.length;
if (search_char_length < 2) {
toastr.error("Please enter minimum 2 characters", "Error");
return false;
}
}
function show_response_for_search(responseText, statusText, xhr, $form) {
jQuery('.main_data').html(responseText);
}
</script>