11 changed files with 227 additions and 26 deletions
@ -0,0 +1,63 @@ |
|||||
|
<?php |
||||
|
|
||||
|
?> |
||||
|
|
||||
|
|
||||
|
<div class="row pharmacy"> |
||||
|
|
||||
|
<div class="col-12"> |
||||
|
<div class="section-title">Ricerca farmacie</div> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-12 col-sm-8 my-4 mx-auto text-center"> |
||||
|
<form method="post" action="<?php echo $BASE_URL;?>/farmacie/find"> |
||||
|
|
||||
|
<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> |
||||
|
|
||||
|
<div class="col-12 text-center"> |
||||
|
<a href="<?php echo $BASE_URL."/XLS_export.php?db=pharmacy";?>"> |
||||
|
<button>Scarica in formato .XLS</button> |
||||
|
</a> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-12 col-sm-8 my-5 mx-auto results"> |
||||
|
|
||||
|
<?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)){ |
||||
|
echo "<div class=\"item\"><i class=\"fa fa-angle-right\"></i> <strong>".$r['pharmacy']."</strong> |
||||
|
<p class=\"m-2 ml-4\"><a href=\"https://www.google.com/maps/search/?api=1&query=Farmacia ".$r['pharmacy']." - ".$r['city']." (SA) - ".$r['address']."\" target=\"_black\"> ".$r['address']." - ".$r['city']." <i class=\"fa fa-compass\"></i></a></p> |
||||
|
<p class=\"m-2 ml-4\"> Telefono: ".$r['phone']."</p></div>"; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
?> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
After Width: | Height: | Size: 184 B |
@ -0,0 +1,63 @@ |
|||||
|
<?php |
||||
|
|
||||
|
?> |
||||
|
|
||||
|
|
||||
|
<div class="row pharmacy"> |
||||
|
|
||||
|
<div class="col-12"> |
||||
|
<div class="section-title">Ricerca parafarmacie</div> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-12 col-sm-8 my-4 mx-auto text-center"> |
||||
|
<form method="post" action="<?php echo $BASE_URL;?>/parafarmacie/find"> |
||||
|
|
||||
|
<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> |
||||
|
|
||||
|
<div class="col-12 text-center"> |
||||
|
<a href="<?php echo $BASE_URL."/XLS_export.php?db=parapharmacy";?>"> |
||||
|
<button>Scarica in formato .XLS</button> |
||||
|
</a> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-12 col-sm-8 my-5 mx-auto results"> |
||||
|
|
||||
|
<?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)){ |
||||
|
echo "<div class=\"item\"><i class=\"fa fa-angle-right\"></i> <strong>".$r['parapharmacy']."</strong> |
||||
|
<p class=\"m-2 ml-4\"><a href=\"https://www.google.com/maps/search/?api=1&query=Parafarmacia ".$r['parapharmacy']." - ".$r['city']." (SA) - ".$r['address']."\" target=\"_black\"> Parafarmacia ".$r['address']." - ".$r['city']." <i class=\"fa fa-compass\"></i></a></p> |
||||
|
<p class=\"m-2 ml-4\"> Telefono: ".$r['phone']."</p></div>"; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
?> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,23 @@ |
|||||
|
|
||||
|
.pharmacy{ |
||||
|
.results{ |
||||
|
.item{ |
||||
|
padding: 10px; |
||||
|
transition: .4s; |
||||
|
font-size: $font-14; |
||||
|
border-bottom: 1px solid $light-grey; |
||||
|
|
||||
|
.fa-angle-right{ |
||||
|
padding: 0 5px; |
||||
|
transition: .4s; |
||||
|
} |
||||
|
|
||||
|
&:hover{ |
||||
|
background: $light-grey; |
||||
|
.fa-angle-right{ |
||||
|
margin-left: 5px; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,6 +1,7 @@ |
|||||
|
|
||||
@import "homepage"; |
|
||||
@import "news"; |
|
||||
@import "lists"; |
|
||||
@import "bod"; |
|
||||
@import "board"; |
|
||||
|
@import "homepage"; |
||||
|
@import "news"; |
||||
|
@import "lists"; |
||||
|
@import "bod"; |
||||
|
@import "board"; |
||||
|
@import "pharmacy"; |
||||
|
Loading…
Reference in new issue