<?= $this->extend('layout') ?>
<?= $this->section('content') ?>

<div class ="flex2">
	<div class="content">
	
	<h3>This page lists products currently in database, use the id to delete  </h3>
				<div class ="portfolio">
				<?php 
				foreach($prods as $prod) 
				{
				echo " <div class =\"thumb\"><p style = \"color:blue\">Cat:  " .$prod['category']."</p> <br class = 'clearfix'> " .$prod['imageTitle'].  "      <img class =\"img-fluid\" src =".base_url('productImages')."/".$prod['image']. "><br class='clearfix'><p style= \"color:red\"> Id to use is :" .$prod['Id'].          "</p></div>";
				
				//"/".$prod['image']."> <p>".$prod['Id'] .  "> " .$prod['imageTitle']."   category:  ".$prod['category']."</div>";  

			}
				
				 ;?>
				 
				 
				 
				</div><!-- end portfolio-->

<div class="d-flex justify-content-center">

<?= form_open('delProduct') ?>
<?= csrf_field() ?>

 <div class="form-group"> 
    <label for="blogId">Product Id </label>
    <input type="input" name="prodId" id ="ProdId" class="form-control"/><br />
     </div>
    <div class="form-group"> 
			 <h1 style ="color:red";>  <?php echo $info ;?></h1>
			   </div>
			
   
   
 
			 



    <input type="submit" name="submit" class="btn btn-info"value="submit" />

<?php echo form_close();?>




	</div>
</div>
<?= $this->endSection() ?>
