���� 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/admin.adimi/code/management/customer/ |
<?php $v_customer_id = 0; if(isset($CORE->input['id']) && $CORE->input['id']>0){ $v_customer_id = $CORE->input['id']; } if($v_customer_id==0) { $row_check = $DB->get_colum_tb('tb_customer'); $row_check['customer_cmnd_ngaycap'] = date('d-m-Y'); $row_check['customer_ngaysinhnguoilienhe'] = date('d-m-Y'); $row_check['customer_ngaykyniemcongty'] = date('d-m-Y'); }else{ if(is_admin()){ $row_check = $DB->fetch_row($DB->query("SELECT * FROM tb_customer WHERE customer_id='$v_customer_id' ")); }else { $row_check = $DB->fetch_row($DB->query("SELECT * FROM tb_customer WHERE customer_id='$v_customer_id' AND user_post='" . $ob_user->user_name . "' ")); } $row_check['customer_cmnd_ngaycap'] = date('d-m-Y',strtotime($row_check['customer_cmnd_ngaycap'])); $row_check['customer_ngaysinhnguoilienhe'] = date('d-m-Y',strtotime($row_check['customer_ngaysinhnguoilienhe'])); $row_check['customer_ngaykyniemcongty'] = date('d-m-Y',strtotime($row_check['customer_ngaykyniemcongty'])); } if(isset($CORE->input['submitbt'])){ $f = $CORE->input['f']; $fullname = trim($f['customer_fullname']); $v_name_order = $func->generate_pupil_order($fullname); $cmnd_ngaycap= date('Y-m-d',strtotime($f['customer_cmnd_ngaycap'])); $f['customer_ngaysinhnguoilienhe'] = date('Y-m-d',strtotime($f['customer_ngaysinhnguoilienhe'])); $f['customer_ngaykyniemcongty'] = date('Y-m-d',strtotime($f['customer_ngaykyniemcongty'])); $txt_nhatky_hoso = ''; if(isset($CORE->input['nhatky_hoso'])) { $nhatky_hoso = $CORE->input['nhatky_hoso']; $txt_nhatky_hoso = implode('@', $nhatky_hoso); } if($f['customer_id']>0){ $DB->query("UPDATE tb_customer SET customer_fullname='".$f['customer_fullname']."',customer_lastname='".$f['customer_lastname']."',customer_gender='".$f['customer_gender']."',customer_company='".$f['customer_company']."',customer_chucvu='".$f['customer_chucvu']."',customer_address='".$f['customer_address']."',customer_email='".$f['customer_email']."',customer_mobile='".$f['customer_mobile']."',customer_sotaikhoan='".$f['customer_sotaikhoan']."',customer_nganhang='".$f['customer_nganhang']."',customer_masothue='".$f['customer_masothue']."',customer_status='".$f['customer_status']."',customer_order='$v_name_order',city_id='".intval($f['city_id'])."',time_update=NOW(),user_update='".$ob_user->user_name."',customer_cmnd='".$f['customer_cmnd']."',customer_cmnd_ngaycap='".$cmnd_ngaycap."',customer_cmnd_noicap='".$f['customer_cmnd_noicap']."', customer_sodt2='".$f['customer_sodt2']."',customer_nguoilienhe='".$f['customer_nguoilienhe']."',customer_chucvunguoilienhe='".$f['customer_chucvunguoilienhe']."',customer_ngaysinhnguoilienhe='".$f['customer_ngaysinhnguoilienhe']."',customer_ngaykyniemcongty='".$f['customer_ngaykyniemcongty']."',customer_ngaykyniemcongtynote='".$f['customer_ngaykyniemcongtynote']."',customer_ghichucongty='".$f['customer_ghichucongty']."',customer_nhatky='$txt_nhatky_hoso',customer_nhatky_note='".trim($f['customer_nhatky_note'])."' WHERE customer_id='".$f['customer_id']."' "); $v_customer_id = $f['customer_id']; }else{ $arr_insert = array('customer_fullname'=>$f['customer_fullname'],'customer_lastname'=>$f['customer_lastname'],'customer_gender'=>$f['customer_gender'],'customer_company'=>$f['customer_company'],'customer_chucvu'=>$f['customer_chucvu'],'customer_address'=>$f['customer_address'],'customer_email'=>$f['customer_email'],'customer_mobile'=>$f['customer_mobile'],'customer_sotaikhoan'=>$f['customer_sotaikhoan'],'customer_nganhang'=>$f['customer_nganhang'],'customer_masothue'=>$f['customer_masothue'],'customer_status'=>$f['customer_status'],'customer_order'=>$v_name_order,'city_id'=>$f['city_id'],'time_post'=>date('Y-m-d h:i:s'),'user_post'=>$ob_user->user_name,'time_update'=>date('Y-m-d h:i:s'),'user_update'=>$ob_user->user_name,'customer_cmnd'=>$f['customer_cmnd'],'customer_cmnd_ngaycap'=>$cmnd_ngaycap,'customer_cmnd_noicap'=>$f['customer_cmnd_noicap'],'customer_sodt2'=>$f['customer_sodt2'],'customer_nguoilienhe'=>$f['customer_nguoilienhe'],'customer_chucvunguoilienhe'=>$f['customer_chucvunguoilienhe'],'customer_ngaysinhnguoilienhe'=>$f['customer_ngaysinhnguoilienhe'],'customer_ngaykyniemcongty'=>$f['customer_ngaykyniemcongty'],'customer_ngaykyniemcongtynote'=>$f['customer_ngaykyniemcongtynote'],'customer_ghichucongty'=>$f['customer_ghichucongty'],'customer_nhatky'=>$txt_nhatky_hoso,'customer_nhatky_note'=>trim($f['customer_nhatky_note'])); $v_customer_id=$DB->do_insert('tb_customer',$arr_insert); } $print->refresh('?act=management&code=customer&type=post&id='.$v_customer_id); } ?>