12 changed files with 705 additions and 4 deletions
@ -0,0 +1,72 @@ |
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<div class="section-title">Aggiungi parafarmacia</div> |
|||
</div> |
|||
<div class="col-12"> |
|||
|
|||
<div class="sheet-box p-4"> |
|||
|
|||
<?php |
|||
if($_POST['go']){ |
|||
|
|||
$q=mysqli_query($conn, "INSERT INTO parapharmacy VALUES(null, |
|||
'".addslashes(trim(strtoupper($_POST['parapharmacy'])))."', '".addslashes(trim(strtoupper($_POST['city'])))."', |
|||
'".addslashes(trim($_POST['address']))."', '".addslashes(trim($_POST['phone']))."', |
|||
'".addslashes(trim($_POST['fax']))."', |
|||
'".addslashes(trim($_POST['web']))."', '".addslashes(trim($_POST['email']))."')"); |
|||
|
|||
echo '<div class="col-10 text-center mx-auto my-5"> |
|||
<p><i class="fa fa-check-circle font-alert p-4"></i></p> |
|||
Parafarmacia aggiunta correttamente! |
|||
</div>'; |
|||
|
|||
|
|||
}else{ |
|||
?> |
|||
<form method="post"> |
|||
<div class="row"> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Parafarmacia</span> |
|||
<input type="text" name="parapharmacy"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Comune</span> |
|||
<input type="text" name="city"> |
|||
</div> |
|||
<div class="col-12"> |
|||
<span class="font-12">Indirizzo</span> |
|||
<input type="text" name="address"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Telefono</span> |
|||
<input type="text" name="phone"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Fax</span> |
|||
<input type="text" name="fax"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Sito internet</span> |
|||
<input type="text" name="web"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Email</span> |
|||
<input type="text" name="email"> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-12 text-right"> |
|||
<button type="submit" name="go" value="1">Aggiungi parafarmacia</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
|
|||
<?php |
|||
} |
|||
?> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
@ -0,0 +1,98 @@ |
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<div class="section-title">Elimina parafarmacia</div> |
|||
</div> |
|||
<div class="col-12"> |
|||
|
|||
<div class="sheet-box p-4"> |
|||
|
|||
<?php |
|||
if($_POST['go']){ |
|||
|
|||
$q=mysqli_query($conn, "DELETE FROM parapharmacy WHERE id=".trim($getQ[3]).""); |
|||
|
|||
echo '<div class="col-10 text-center mx-auto my-5"> |
|||
<p><i class="fa fa-check-circle font-alert p-4"></i></p> |
|||
Parafarmacia eliminata correttamente! |
|||
</div>'; |
|||
|
|||
}else{ |
|||
|
|||
if($getQ[3]){ |
|||
|
|||
$q=mysqli_query($conn, "SELECT * FROM parapharmacy WHERE id = ".trim($getQ[3])); |
|||
$r=mysqli_fetch_array($q); |
|||
?> |
|||
<form method="post"> |
|||
<div class="row"> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Parafarmacia</span> |
|||
<p><?= $r['parapharmacy'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Comune</span> |
|||
<p><?= $r['city'];?></p> |
|||
</div> |
|||
<div class="col-12"> |
|||
<span class="font-12 text-grey">Indirizzo</span> |
|||
<p><?= $r['address'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Telefono</span> |
|||
<p><?= $r['phone'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Fax</span> |
|||
<p><?= $r['fax'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Sito internet</span> |
|||
<p><?= $r['web'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Email</span> |
|||
<p><?= $r['email'];?></p> |
|||
</div> |
|||
|
|||
<div class="col-12 text-right"> |
|||
<button type="submit" name="go" value="1">Elimina parafarmacia</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
|
|||
<?php |
|||
}else{ |
|||
|
|||
?> |
|||
<form method="post" action="<?php echo $BASE_URL;?>/sheets/parapharmacy/list"> |
|||
|
|||
<div class="row font-14 font-bold"> |
|||
<div class="col-12 col-sm-3"> |
|||
<select name="type" class="input"> |
|||
<option value="city">Comune</option> |
|||
<option value="parapharmacy">Parafarmacia</option> |
|||
</select> |
|||
</div> |
|||
|
|||
<div class="col"> |
|||
<input type="text" name="q" class="input"> |
|||
</div> |
|||
<div class="col-auto"> |
|||
<button type="submit"><i class="fa fa-search"></i> Cerca </button> |
|||
</div> |
|||
</div> |
|||
|
|||
</form> |
|||
|
|||
|
|||
<?php |
|||
|
|||
} |
|||
} |
|||
?> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
@ -0,0 +1,57 @@ |
|||
|
|||
<div class="row parapharmacy"> |
|||
|
|||
<div class="col-12"> |
|||
<div class="section-title">Ricerca parafarmacie</div> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-12"> |
|||
<div class="sheet-box p-4"> |
|||
<form method="post" action="<?php echo $BASE_URL;?>/sheets/parapharmacy/list"> |
|||
|
|||
<div class="row font-14 font-bold"> |
|||
<div class="col-12 col-sm-3"> |
|||
<select name="type" class="input"> |
|||
<option value="city">Comune</option> |
|||
<option value="parapharmacy">Parafarmacia</option> |
|||
</select> |
|||
</div> |
|||
|
|||
<div class="col"> |
|||
<input type="text" name="q" class="input"> |
|||
</div> |
|||
<div class="col-auto"> |
|||
<button type="submit"><i class="fa fa-search"></i> Cerca </button> |
|||
</div> |
|||
</div> |
|||
|
|||
</form> |
|||
|
|||
<div class="col-12 p-0 admin-list"> |
|||
|
|||
<?php |
|||
|
|||
$query = "SELECT * FROM parapharmacy WHERE ".$_POST['type']." LIKE '%".$_POST['q']."%' ORDER BY ".$_POST['type'].""; |
|||
$q = mysqli_query($conn, $query); |
|||
|
|||
while($r = mysqli_fetch_array($q)){ |
|||
$cnt++; |
|||
$bg = ($cnt%2) ? "bg-light-grey" : "bg-white"; |
|||
echo "<div class=\"admin-list-item $bg\"> |
|||
<span>".$r['parapharmacy']." - ".$r['address']." - ".$r['city']."</span> |
|||
<div class=\"right\"> |
|||
<a href=\"$BASE_URL/sheets/parapharmacy/mod/".$r['id']."\" class=\"button button-small\"><i class=\"fa fa-edit\"></i> Modifica</a> |
|||
<a href=\"$BASE_URL/sheets/parapharmacy/del/".$r['id']."\" class=\"button button-small\"><i class=\"fa fa-trash\"></i> Elimina</a> |
|||
</div></div>"; |
|||
} |
|||
|
|||
?> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
</div> |
|||
|
|||
|
@ -0,0 +1,102 @@ |
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<div class="section-title">Modifica parafarmacia</div> |
|||
</div> |
|||
<div class="col-12"> |
|||
|
|||
<div class="sheet-box p-4"> |
|||
|
|||
<?php |
|||
if($_POST['go']){ |
|||
|
|||
$q=mysqli_query($conn, "UPDATE parapharmacy SET parapharmacy='".addslashes(trim(strtoupper($_POST['parapharmacy'])))."', |
|||
city='".addslashes(trim(strtoupper($_POST['city'])))."', |
|||
address='".addslashes(trim($_POST['address']))."', phone='".addslashes(trim($_POST['phone']))."', |
|||
web='".addslashes(trim($_POST['web']))."', email='".addslashes(trim($_POST['email']))."', |
|||
fax='".addslashes(trim($_POST['fax']))."' |
|||
WHERE id=".trim($getQ[3]).""); |
|||
|
|||
echo '<div class="col-10 text-center mx-auto my-5"> |
|||
<p><i class="fa fa-check-circle font-alert p-4"></i></p> |
|||
Parafarmacia modificata correttamente! |
|||
</div>'; |
|||
|
|||
}else{ |
|||
|
|||
if($getQ[3]){ |
|||
|
|||
$q=mysqli_query($conn, "SELECT * FROM parapharmacy WHERE id = ".trim($getQ[3])); |
|||
$r=mysqli_fetch_array($q); |
|||
?> |
|||
<form method="post"> |
|||
<div class="row"> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Parafarmacia</span> |
|||
<input type="text" name="parapharmacy" value="<?= $r['parapharmacy'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Comune</span> |
|||
<input type="text" name="city" value="<?= $r['city'];?>"> |
|||
</div> |
|||
<div class="col-12"> |
|||
<span class="font-12">Indirizzo</span> |
|||
<input type="text" name="address" value="<?= $r['address'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Telefono</span> |
|||
<input type="text" name="phone" value="<?= $r['phone'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Fax</span> |
|||
<input type="text" name="fax" value="<?= $r['fax'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Sito internet</span> |
|||
<input type="text" name="web" value="<?= $r['web'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Email</span> |
|||
<input type="text" name="email" value="<?= $r['email'];?>"> |
|||
</div> |
|||
|
|||
<div class="col-12 text-right"> |
|||
<button type="submit" name="go" value="1">Modifica parafarmacia</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
|
|||
<?php |
|||
}else{ |
|||
|
|||
?> |
|||
<form method="post" action="<?php echo $BASE_URL;?>/sheets/parapharmacy/list"> |
|||
|
|||
<div class="row font-14 font-bold"> |
|||
<div class="col-12 col-sm-3"> |
|||
<select name="type" class="input"> |
|||
<option value="city">Comune</option> |
|||
<option value="parapharmacy">Parafarmacia</option> |
|||
</select> |
|||
</div> |
|||
|
|||
<div class="col"> |
|||
<input type="text" name="q" class="input"> |
|||
</div> |
|||
<div class="col-auto"> |
|||
<button type="submit"><i class="fa fa-search"></i> Cerca </button> |
|||
</div> |
|||
</div> |
|||
|
|||
</form> |
|||
|
|||
<?php |
|||
|
|||
} |
|||
} |
|||
?> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
@ -0,0 +1,79 @@ |
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<div class="section-title">Aggiungi farmacia</div> |
|||
</div> |
|||
<div class="col-12"> |
|||
|
|||
<div class="sheet-box p-4"> |
|||
|
|||
<?php |
|||
if($_POST['go']){ |
|||
|
|||
$q=mysqli_query($conn, "INSERT INTO pharmacy VALUES(null, |
|||
'".addslashes(trim(strtoupper($_POST['pharmacy'])))."', '".addslashes(trim(strtoupper($_POST['city'])))."', |
|||
'".addslashes(trim($_POST['address']))."', '".addslashes(trim($_POST['phone']))."', |
|||
'".addslashes(trim($_POST['web']))."', '".addslashes(trim($_POST['email']))."', |
|||
'".addslashes(trim($_POST['email_cert']))."', '".$_POST['type']."')"); |
|||
|
|||
echo '<div class="col-10 text-center mx-auto my-5"> |
|||
<p><i class="fa fa-check-circle font-alert p-4"></i></p> |
|||
Farmacia aggiunta correttamente! |
|||
</div>'; |
|||
|
|||
|
|||
}else{ |
|||
?> |
|||
<form method="post"> |
|||
<div class="row"> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Farmacia</span> |
|||
<input type="text" name="pharmacy"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Comune</span> |
|||
<input type="text" name="city"> |
|||
</div> |
|||
<div class="col-12"> |
|||
<span class="font-12">Indirizzo</span> |
|||
<input type="text" name="address"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Telefono</span> |
|||
<input type="text" name="phone"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Sito internet</span> |
|||
<input type="text" name="web"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Email</span> |
|||
<input type="text" name="email"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Email certificata (PEC)</span> |
|||
<input type="text" name="email_cert"> |
|||
</div> |
|||
|
|||
<div class="col-3 col-sm-3"> |
|||
<span class="font-12">Tipologia</span> |
|||
<select name="type"> |
|||
<option value="Rurale">Rurale</option> |
|||
<option value="Urbana">Urbana</option> |
|||
</select> |
|||
</div> |
|||
|
|||
<div class="col-12 text-right"> |
|||
<button type="submit" name="go" value="1">Aggiungi farmacia</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
|
|||
<?php |
|||
} |
|||
?> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
@ -0,0 +1,103 @@ |
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<div class="section-title">Elimina farmacia</div> |
|||
</div> |
|||
<div class="col-12"> |
|||
|
|||
<div class="sheet-box p-4"> |
|||
|
|||
<?php |
|||
if($_POST['go']){ |
|||
|
|||
$q=mysqli_query($conn, "DELETE FROM pharmacy WHERE id=".trim($getQ[3]).""); |
|||
|
|||
echo '<div class="col-10 text-center mx-auto my-5"> |
|||
<p><i class="fa fa-check-circle font-alert p-4"></i></p> |
|||
Farmacia eliminata correttamente! |
|||
</div>'; |
|||
|
|||
}else{ |
|||
|
|||
if($getQ[3]){ |
|||
|
|||
$q=mysqli_query($conn, "SELECT * FROM pharmacy WHERE id = ".trim($getQ[3])); |
|||
$r=mysqli_fetch_array($q); |
|||
?> |
|||
<form method="post"> |
|||
<div class="row"> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Farmacia</span> |
|||
<p><?= $r['pharmacy'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Comune</span> |
|||
<p><?= $r['city'];?></p> |
|||
</div> |
|||
<div class="col-12"> |
|||
<span class="font-12 text-grey">Indirizzo</span> |
|||
<p><?= $r['address'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Telefono</span> |
|||
<p><?= $r['phone'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Sito internet</span> |
|||
<p><?= $r['web'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Email</span> |
|||
<p><?= $r['email'];?></p> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12 text-grey">Email certificata (PEC)</span> |
|||
<p><?= $r['email_cert'];?></p> |
|||
</div> |
|||
|
|||
<div class="col-3 col-sm-3"> |
|||
<span class="font-12 text-grey">Tipologia</span> |
|||
<p><?= $r['type'];?></p> |
|||
</div> |
|||
|
|||
<div class="col-12 text-right"> |
|||
<button type="submit" name="go" value="1">Elimina farmacia</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
|
|||
<?php |
|||
}else{ |
|||
|
|||
?> |
|||
<form method="post" action="<?php echo $BASE_URL;?>/sheets/pharmacy/list"> |
|||
|
|||
<div class="row font-14 font-bold"> |
|||
<div class="col-12 col-sm-3"> |
|||
<select name="type" class="input"> |
|||
<option value="city">Comune</option> |
|||
<option value="pharmacy">Farmacia</option> |
|||
</select> |
|||
</div> |
|||
|
|||
<div class="col"> |
|||
<input type="text" name="q" class="input"> |
|||
</div> |
|||
<div class="col-auto"> |
|||
<button type="submit"><i class="fa fa-search"></i> Cerca </button> |
|||
</div> |
|||
</div> |
|||
|
|||
</form> |
|||
|
|||
|
|||
<?php |
|||
|
|||
} |
|||
} |
|||
?> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
@ -0,0 +1,57 @@ |
|||
|
|||
<div class="row pharmacy"> |
|||
|
|||
<div class="col-12"> |
|||
<div class="section-title">Ricerca farmacie</div> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-12"> |
|||
<div class="sheet-box p-4"> |
|||
<form method="post" action="<?php echo $BASE_URL;?>/sheets/pharmacy/list"> |
|||
|
|||
<div class="row font-14 font-bold"> |
|||
<div class="col-12 col-sm-3"> |
|||
<select name="type" class="input"> |
|||
<option value="city">Comune</option> |
|||
<option value="pharmacy">Farmacia</option> |
|||
</select> |
|||
</div> |
|||
|
|||
<div class="col"> |
|||
<input type="text" name="q" class="input"> |
|||
</div> |
|||
<div class="col-auto"> |
|||
<button type="submit"><i class="fa fa-search"></i> Cerca </button> |
|||
</div> |
|||
</div> |
|||
|
|||
</form> |
|||
|
|||
<div class="col-12 p-0 admin-list"> |
|||
|
|||
<?php |
|||
|
|||
$query = "SELECT * FROM pharmacy WHERE ".$_POST['type']." LIKE '%".$_POST['q']."%' ORDER BY ".$_POST['type'].""; |
|||
$q = mysqli_query($conn, $query); |
|||
|
|||
while($r = mysqli_fetch_array($q)){ |
|||
$cnt++; |
|||
$bg = ($cnt%2) ? "bg-light-grey" : "bg-white"; |
|||
echo "<div class=\"admin-list-item $bg\"> |
|||
<span>".$r['pharmacy']." - ".$r['address']." - ".$r['city']."</span> |
|||
<div class=\"right\"> |
|||
<a href=\"$BASE_URL/sheets/pharmacy/mod/".$r['id']."\" class=\"button button-small\"><i class=\"fa fa-edit\"></i> Modifica</a> |
|||
<a href=\"$BASE_URL/sheets/pharmacy/del/".$r['id']."\" class=\"button button-small\"><i class=\"fa fa-trash\"></i> Elimina</a> |
|||
</div></div>"; |
|||
} |
|||
|
|||
?> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
</div> |
|||
|
|||
|
@ -0,0 +1,110 @@ |
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<div class="section-title">Modifica farmacia</div> |
|||
</div> |
|||
<div class="col-12"> |
|||
|
|||
<div class="sheet-box p-4"> |
|||
|
|||
<?php |
|||
if($_POST['go']){ |
|||
|
|||
$q=mysqli_query($conn, "UPDATE pharmacy SET pharmacy='".addslashes(trim(strtoupper($_POST['pharmacy'])))."', |
|||
city='".addslashes(trim(strtoupper($_POST['city'])))."', |
|||
address='".addslashes(trim($_POST['address']))."', phone='".addslashes(trim($_POST['phone']))."', |
|||
web='".addslashes(trim($_POST['web']))."', email='".addslashes(trim($_POST['email']))."', |
|||
email_cert='".addslashes(trim($_POST['email_cert']))."', type='".$_POST['type']."' |
|||
WHERE id=".trim($getQ[3]).""); |
|||
|
|||
echo '<div class="col-10 text-center mx-auto my-5"> |
|||
<p><i class="fa fa-check-circle font-alert p-4"></i></p> |
|||
Farmacia modificata correttamente! |
|||
</div>'; |
|||
|
|||
}else{ |
|||
|
|||
if($getQ[3]){ |
|||
|
|||
$q=mysqli_query($conn, "SELECT * FROM pharmacy WHERE id = ".trim($getQ[3])); |
|||
$r=mysqli_fetch_array($q); |
|||
?> |
|||
<form method="post"> |
|||
<div class="row"> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Farmacia</span> |
|||
<input type="text" name="pharmacy" value="<?= $r['pharmacy'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Comune</span> |
|||
<input type="text" name="city" value="<?= $r['city'];?>"> |
|||
</div> |
|||
<div class="col-12"> |
|||
<span class="font-12">Indirizzo</span> |
|||
<input type="text" name="address" value="<?= $r['address'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Telefono</span> |
|||
<input type="text" name="phone" value="<?= $r['phone'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Sito internet</span> |
|||
<input type="text" name="web" value="<?= $r['web'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Email</span> |
|||
<input type="text" name="email" value="<?= $r['email'];?>"> |
|||
</div> |
|||
<div class="col-12 col-sm-6"> |
|||
<span class="font-12">Email certificata (PEC)</span> |
|||
<input type="text" name="email_cert" value="<?= $r['email_cert'];?>"> |
|||
</div> |
|||
|
|||
<div class="col-3 col-sm-3"> |
|||
<span class="font-12">Tipologia</span> |
|||
<select name="type"> |
|||
<option value="Rurale" <?= $r['type']=="Rurale" ? "Selected" : "";?>>Rurale</option> |
|||
<option value="Urbana" <?= $r['type']=="Urbana" ? "Selected" : "";?>>Urbana</option> |
|||
</select> |
|||
</div> |
|||
|
|||
<div class="col-12 text-right"> |
|||
<button type="submit" name="go" value="1">Modifica farmacia</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
|
|||
<?php |
|||
}else{ |
|||
|
|||
?> |
|||
<form method="post" action="<?php echo $BASE_URL;?>/sheets/pharmacy/list"> |
|||
|
|||
<div class="row font-14 font-bold"> |
|||
<div class="col-12 col-sm-3"> |
|||
<select name="type" class="input"> |
|||
<option value="city">Comune</option> |
|||
<option value="pharmacy">Farmacia</option> |
|||
</select> |
|||
</div> |
|||
|
|||
<div class="col"> |
|||
<input type="text" name="q" class="input"> |
|||
</div> |
|||
<div class="col-auto"> |
|||
<button type="submit"><i class="fa fa-search"></i> Cerca </button> |
|||
</div> |
|||
</div> |
|||
|
|||
</form> |
|||
|
|||
<?php |
|||
|
|||
} |
|||
} |
|||
?> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
Binary file not shown.
Loading…
Reference in new issue