You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							79 lines
						
					
					
						
							3.1 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							79 lines
						
					
					
						
							3.1 KiB
						
					
					
				| <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> | |
| 
 |