JSFiddle - React, Tailwind, and code Playground
JavaScript
// если поиск не по всем колонкам
$count_input_tags = $param['iColumns'];
$current_input_tag = 0;
while ($current_input_tag < $count_input_tags) {
if($param['sSearch_'.$current_input_tag] != '' ){
if(in_array($this->thead[$current_input_tag]['class'], array('text'))){
$like[$this->thead[$current_input_tag]['targetTable'].".".$this->thead[$current_input_tag]['nameField']] = $param['sSearch_'.$current_input_tag];
}elseif(in_array($this->thead[$current_input_tag]['class'], array('select_status1','select_status2','select_status3'))){
$where[$this->thead[$current_input_tag]['targetTable'].".".$this->thead[$current_input_tag]['nameField']] = $param['sSearch_'.$current_input_tag];
}elseif($this->thead[$current_input_tag]['class']=='date') {
$unixTime = strtotime($param['sSearch_'.$current_input_tag].':00');
$humanDate = unix_to_human($unixTime, TRUE, 'eu');
// echo mdate('%H:%i', $unixTime); die();
if(mdate('%H:%i', $unixTime) == '00:00'){
if($this->thead[$current_input_tag]['nameField'] == 'Date'){
$date_filter[$this->thead[$current_input_tag]['targetTable'].".".$this->thead[$current_input_tag]['nameField']." >="] = $humanDate;
}else{
$date_filter[$this->thead[$current_input_tag]['targetTable'].".".$this->thead[$current_input_tag]['nameField']." <="] = $humanDate;
}
}else{
$date_filter[$this->thead[$current_input_tag]['targetTable'].".".$this->thead[$current_input_tag]['nameField']] = $humanDate;
}
}
}
$current_input_tag++;
}
}