|
@ -10,6 +10,8 @@ |
|
|
if($_POST['go']){ |
|
|
if($_POST['go']){ |
|
|
|
|
|
|
|
|
$append = ''; |
|
|
$append = ''; |
|
|
|
|
|
$order = isset($_POST['other_order']) ? addslashes(trim($_POST['other_order'])) : "Salerno"; |
|
|
|
|
|
$ouid = isset($_POST['other_order_number']) ? addslashes(trim($_POST['other_order_number'])) : 0; |
|
|
|
|
|
|
|
|
if(is_uploaded_file($_FILES['append']['tmp_name'])){ |
|
|
if(is_uploaded_file($_FILES['append']['tmp_name'])){ |
|
|
$filename = date("YmdHis")."-".preg_replace('/[^a-zA-Z0-9\-\._]/','_', $_FILES['append']['name']); |
|
|
$filename = date("YmdHis")."-".preg_replace('/[^a-zA-Z0-9\-\._]/','_', $_FILES['append']['name']); |
|
@ -23,11 +25,13 @@ |
|
|
$q=mysqli_query($conn, "UPDATE advertisement SET |
|
|
$q=mysqli_query($conn, "UPDATE advertisement SET |
|
|
full_name='".addslashes(trim($_POST['full_name']))."', |
|
|
full_name='".addslashes(trim($_POST['full_name']))."', |
|
|
email='".addslashes(trim($_POST['email']))."', |
|
|
email='".addslashes(trim($_POST['email']))."', |
|
|
|
|
|
other_order='".$order."', |
|
|
|
|
|
ouid='".$ouid."', |
|
|
date='".trim(conv_date_en($_POST['date']))."', |
|
|
date='".trim(conv_date_en($_POST['date']))."', |
|
|
text='".addslashes(nl2br($_POST['text']))."', |
|
|
text='".addslashes(nl2br($_POST['text']))."', |
|
|
city='".addslashes(trim($_POST['city']))."', |
|
|
city='".addslashes(trim($_POST['city']))."', |
|
|
contact_phone='".addslashes(trim($_POST['contact_phone']))."', |
|
|
contact_phone='".addslashes(trim($_POST['contact_phone']))."', |
|
|
contact_phone='".addslashes(trim($_POST['contact_email']))."', |
|
|
|
|
|
|
|
|
contact_email='".addslashes(trim($_POST['contact_email']))."', |
|
|
$append |
|
|
$append |
|
|
type='".$_POST['type']."', |
|
|
type='".$_POST['type']."', |
|
|
enabled=".$_POST['enabled']." WHERE id=".trim($getQ[3])); |
|
|
enabled=".$_POST['enabled']." WHERE id=".trim($getQ[3])); |
|
@ -73,6 +77,24 @@ |
|
|
<span class="font-12">Nome e Cognome</span> |
|
|
<span class="font-12">Nome e Cognome</span> |
|
|
<input type="text" name="full_name" value="<?= $r['full_name'];?>"> |
|
|
<input type="text" name="full_name" value="<?= $r['full_name'];?>"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-6"> |
|
|
|
|
|
<span class="font-12">Iscritto all'Ordine di</span> |
|
|
|
|
|
<select type="text" name="other_order"> |
|
|
|
|
|
<option value="">- Seleziona una provincia -</option> |
|
|
|
|
|
<?php foreach($PROVINCE as $p) { |
|
|
|
|
|
$sel = (!$r['other_order'] && $p == "Salerno" && $r['uid'] != 0) || |
|
|
|
|
|
$r['other_order'] == $p ? "selected" : ""; |
|
|
|
|
|
echo "<option value=\"$p\" ".$sel.">$p</option>"; |
|
|
|
|
|
}?> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-6"> |
|
|
|
|
|
<span class="font-12">N° Iscrizione</span> |
|
|
|
|
|
<input type="text" name="other_order_number" value="<?= ($r['uid'] != 0 ? $r['uid'] : $r['ouid']);?>"> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-12"> |
|
|
<div class="col-12"> |
|
|
<span class="font-12">Testo inserzione</span> |
|
|
<span class="font-12">Testo inserzione</span> |
|
|
<textarea cols="40" rows="6" name="text"><?= strip_tags($r['text']);?></textarea> |
|
|
<textarea cols="40" rows="6" name="text"><?= strip_tags($r['text']);?></textarea> |
|
|