<div class="col-md-12  full min_ht">
<div class="col-md-9  text-center">

<p class="inter"><?php echo anchor(base_url('Admin_home/'),'Home') ; ?> >><a href="<?php echo site_url('Advertisement/view'); ?>">Advertisement</a> </p><br>

<h1 style="text-align:left;"><i class="fa fa-bars" aria-hidden="true"></i> <?php echo $heading ; ?></h1>
<div class="clr2"></div>
<hr>

<div class="err_msg" >
<?php 
echo validation_errors(); 
echo $str; 
?>
</div>

<div class="col-md-12 text-left" >

<form name="form1" method="post" action="" enctype="multipart/form-data">

<p>
<label>Order * </label><br>
<select name="order" class="form-control" style="width:auto;"  >
<option value="">-Select-</option>
<?php for($i=1;$i<=20;$i++): ?>
<option value="<?=$i?>" <?php if($i==$order){echo "selected";}?> ><?php echo $i ; ?></option>
<?php endfor; ?>
</select>
</p>


<p>
<label>Side *</label><br>
<select name="side" class="form-control" style="width:auto;"  >
<!--	<option value="">-Select-</option>-->
	<option value="1" <?php if($side==1){ echo "selected='selected'"; }?>>RIGHT</option>
<!--	<option value="2" <?php if($side==2){ echo "selected='selected'"; }?>>BOTTOM</option>
	<option value="3" <?php if($side==3){ echo "selected='selected'"; }?>>CENTER</option>-->
</select>
</p>

<p>
	<label>Image</label><br/><br />
	<input type="file" name="img"/>&nbsp;&nbsp;&nbsp;
	<?php if($image!=''){?>
	<img src="<?php echo base_url('assets/images/'.$image) ;?>" width="70" height="70" border="0" />
	<a href="<?php echo site_url('Advertisement/image_delete/'.$id.'/1/') ; ?>" onClick="return confirm('Delete image ?')">
	<img src="<?php echo base_url('assets/web_images/delete.gif') ; ?>" width="20" height="20" />
	</a> 
	<?php } ?>
</p>

<p>
<label>Link Url *</label><br />
<textarea name="title" class="form-control" ><?php echo $title ; ?></textarea>
</p>



<!--<p>
<label>Image ( 250x250, Only jpeg, gif. Maxsize 500 Kb)</label><br/><br />
<input type="file" name="img"/>&nbsp;&nbsp;&nbsp;
<?php if($img!=''){?>

<img src="<?php echo base_url('assets/images/'.$img) ;?>" width="70" height="70" border="0" />
<a href="<?php echo site_url($type.'_admin/image_delete/'.$id.'/1/') ; ?>" onClick="return confirm('Delete image ?')">
<img src="<?php echo base_url('assets/web_images/delete.gif') ; ?>" width="20" height="20" />
</a> 
<?php } ?>
</p>-->


<p>
<input name="submit" class="btn btn-lg btn-primary btn-block btn2" value="Submit" type="submit" style="width:150px;">
</p>

</form>

</div>

</div>

<p>&nbsp;</p>
</div>
