<h3 align="center"><?php echo $heading ; ?></h3>

<div align="center" style="width:100%;">

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

<div style="width:460px; height:auto; text-align:left;">

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

<p>
<label>Order * </label><br>
<select name="order"  style="width:100px;"  >
<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>Title *</label><br>
<input type="text" name="title" style="width:450px;" value="<?php echo $title ; ?>" />
</p>


<p>
<label>Text *</label><br />
<textarea name="text" cols="50" rows="12" onblur="return blank(this)" id="elm3"><?php echo $text ; ?></textarea>
</p>

<p> 

<img src="<?php echo base_url('assets/gallery/'.$img) ;?>" width="80" height="80" />
<a href='<?php echo site_url($type.'_admin/image_delete/'.$id.'/1/') ; ?>' onClick="return confirm('Are you sure you want to delete?')"> <img src="<?php echo base_url('assets/web_images/delete.gif');?>" width="20" height="20" /></a>
</p>
<p>
<a href="#" id="add_field">+ Click to add Images +</a>&nbsp;(500x500, Only jpeg, gif. Maxsize 1 Mb)
        <div id="container"></div>
        </p>


<p>
<input name="submit" class="button-primary" value="Submit" type="submit" style="float:right;">
</p>

</form>

</div>

</div>

<p>&nbsp;</p>
