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.
		
		
		
		
		
			
		
			
				
					
					
						
							37 lines
						
					
					
						
							1.3 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							37 lines
						
					
					
						
							1.3 KiB
						
					
					
				| 
 | |
| <div class="row"> | |
|     <div class="col-12"> | |
|         <div class="section-title">Elenco Inserzioni</div> | |
|     </div> | |
| 
 | |
|     <div class="col-12"> | |
| 
 | |
|         <div class="col-12 p-0 admin-list"> | |
| 
 | |
|         <?php | |
|             $q=mysqli_query($conn, "SELECT * FROM advertisement ORDER BY date DESC"); | |
| 
 | |
|             $TYPE['find'] = "Cerco lavoro"; | |
|             $TYPE['offer'] = "Offro lavoro"; | |
|             $TYPE['adv'] = "Annunci di compravendita"; | |
| 
 | |
|             while($r = mysqli_fetch_array($q)){ | |
|                 $cnt++; | |
|                 $bg = ($cnt%2) ? "bg-light-grey" : "bg-white"; | |
|                 $status = $r['enabled'] ? "<i class=\"fa fa-check-circle text-green\"></i>" : "<i class=\"fa fa-ban text-red\"></i>"; | |
|                 echo "<div class=\"admin-list-item $bg\">$status | |
|                     <span>".conv_date($r['date'])." - ".$TYPE[$r['type']]." - ".$r['full_name']."</span> | |
|                     <div class=\"right\"> | |
|                     <a href=\"$BASE_URL/sheets/advertisement/mod/".$r['id']."\" class=\"button button-small\"><i class=\"fa fa-edit\"></i> Modifica</a> | |
|                     <a href=\"$BASE_URL/sheets/advertisement/del/".$r['id']."\" class=\"button button-small\"><i class=\"fa fa-trash\"></i> Elimina</a> | |
|                     </div></div>"; | |
|             } | |
| 
 | |
| 
 | |
|         ?> | |
|  | |
|         </div> | |
|  | |
|     </div> | |
| </div> | |
| 
 |