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

<div class ="flex2">
	<div class="content">
	
	<p><h4>This page lists images  currently in table gallery  database, use the id to delete</h4> </p> 
				<div class ="portfolio">
				<?php 
				foreach($result as $res) 
				{
				echo " <div class =\"thumb\"> " .$res['imageTitle'].  "      <img class =\"img-fluid\" src =".base_url('galleryImages')."/".$res['image']. "><br class='clearfix'><p style= \"color:red\"> Id to use is :" .$res['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('delGallery') ?>
<?= csrf_field() ?>

 <div class="form-group"> 
    <label for="blogId">Gallery  Id </label>
    <input type="input" name="galleryId" id ="gallery" 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() ?>
