ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/luckymerchan/code/guest/ |
<?php if(!isset($ob_user->user_id) or intval($ob_user->user_id)==0){ header('Location: /login.html'); } $CORE->title_page = 'Xem list số'; $user_id = intval($ob_user->user_id); //update mau $DB->query("UPDATE tb_user_list_so_his INNER JOIN tb_kqloc ON tb_user_list_so_his.kqloc_date = tb_kqloc.kqloc_date AND tb_user_list_so_his.kqloc_so = tb_kqloc.kqloc_so AND tb_user_list_so_his.kqloc_type = tb_kqloc.kqloc_type SET tb_user_list_so_his.mau_text = IF(tb_kqloc.mau_text!='',tb_kqloc.mau_text,tb_user_list_so_his.mau_text), tb_user_list_so_his.mau_bg = IF(tb_kqloc.mau_bg!='', tb_kqloc.mau_bg,tb_user_list_so_his.mau_bg) WHERE tb_user_list_so_his.user_id='$user_id'"); $s = array(); $param_search = ''; $where = " WHERE user_id='$user_id' "; if(isset($CORE->input['s'])){ $s = $CORE->input['s']; foreach ($s as $key=>$val){ if($val!='') { $param_search .= 's['.$key.']='.trim($val).'&'; if($key=='kqloc_excel_date_from'){ if(check_date_input($val)) { $txt_date_from = date('Y-m-d', strtotime($val)); $where .= " AND kqloc_date>='$txt_date_from' "; } } if($key=='kqloc_excel_date_to'){ if(check_date_input($val)) { $txt_date_to = date('Y-m-d', strtotime($val)); $where .= " AND kqloc_date<='$txt_date_to' "; } } if($key=='kqloc_excel_type'){ $where .= " AND kqloc_type='".$val."' "; } } } } $q_his_so = $DB->query("SELECT * FROM tb_user_list_so_his ".$where." ORDER BY kqloc_date DESC,kqloc_type ASC LIMIT 500"); $txt_list = ''; while($r_his_so = $DB->fetch_row($q_his_so)){ $txt_date = date('d-m-Y',strtotime($r_his_so['kqloc_date'])); if($r_his_so['kqloc_type']==1){ $arr_so[$txt_date][1][] = '<span style="padding: 5px;background-color: '.$r_his_so['mau_bg'].';"><span style="color: '.$r_his_so['mau_text'].'">'.$r_his_so['kqloc_so'].'</span></span>'; }else{ $arr_so[$txt_date][6][] = '<span style="padding: 5px;background-color: '.$r_his_so['mau_bg'].'"><span style="color: '.$r_his_so['mau_text'].'">'.$r_his_so['kqloc_so'].'</span></span>';; } } if(isset($arr_so)){ foreach($arr_so as $txt_date=>$arr_type){ if(!empty($arr_type)){ foreach($arr_type as $type=>$arr_so){ if(!empty($arr_so)){ $p = implode(' ',$arr_so); } if($type==1){ $txt_type='List 1 ngà y'; }else{ $txt_type='List 6 ngà y'; } $txt_list .= '<tr><td>'.$txt_date.'</td><td>'.$txt_type.'</td><td class="result"><p>'.$p.'</p></td></tr>'; } } } } /*print_r($arr_time_tinh_phi); if(isset($arr_time_tinh_phi)) { echo '<br>TÃnh phÃ: '; print_r($arr_time_tinh_phi); exit(); }else{ echo 'het gio'; exit(); }*/