<?php if(!empty($pro)){?>

<tr>
<input type="hidden" name="designs[]" value="<?php echo $pro->pid;?>" />
<td width="80px"><img class="img img-responsive" src="<?php echo base_url();?>assets/images/products/<?php echo $pro->img;?>"></td>
<td><h4><?php echo $pro->title;?></h4><button type="button" class="btn btn-xs btn-warning removefrompack" id="<?php echo $pro->pid;?>">Remove from Pack</button></td>
</tr>
<script>
$(".removefrompack").click(function(){
	$(this).closest("tr").remove();
});
</script>
<?php }?>