Browse Source

ADV and XLS export

develop
Dslak 4 years ago
parent
commit
02a0c4ccff
  1. 2
      XLS_export.php
  2. 19
      blocks/advFormSubmit.php

2
XLS_export.php

@ -26,7 +26,7 @@ header ("Content-Disposition: attachment; filename=$filename");
switch($_GET['db']){ switch($_GET['db']){
case "board": case "board":
$fields=array("id","last_name","first_name");,//"address","zip_code","city","province"
$fields=array("id","last_name","first_name");//"address","zip_code","city","province"
$order="last_name"; $order="last_name";
break; break;
case "pharmacy": case "pharmacy":

19
blocks/advFormSubmit.php

@ -50,6 +50,25 @@
echo "<script>setTimeout( function(){parent.location = parent.location;},1500); </script>"; echo "<script>setTimeout( function(){parent.location = parent.location;},1500); </script>";
if($uid == 0) {
$SM_email = "dslaky@gmail.com";//"info@rodinefarmacistisalerno.it";
$SM_email2 = 0;
$SM_email_CC = 0;
$SM_subject = "Inserzione";
$SM_message = "Un utente non iscritto all'Ordine ha richiesto di pubblicare una inserzione<br><br>
<b>Riepilogo dati</b><br>".
"Nome: ".$_POST['full_name']."<br>".
"Città: ".trim($_POST['city'])."<br>".
"Telefono: ".trim($_POST['contact_phone'])."<br>".
"Email: ".trim($_POST['contact_email'])."<br>".
"Inserzione: ".nl2br($_POST['text'])."";
$SM_showalert = 0;
$SM_append = 0;
sendMail($SM_email,$SM_email2,$SM_email_CC,$SM_subject,$SM_message,$SM_showalert,$SM_append);
}
?> ?>
<div class="col-10 text-center mx-auto"> <div class="col-10 text-center mx-auto">

Loading…
Cancel
Save