<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>
<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>
<label> Type *</label><br>
<select name="type" id="Type">

<option value="1" <?php if ($type==1): echo 'selected'; endif;?> > BISHOP</option>
<option value="2" <?php if ($type==2): echo 'selected'; endif;?> > PROVINCIAL</option>
<option value="3" <?php if ($type==3): echo 'selected'; endif;?> > DIRECTOR</option>
<option value="4" <?php if ($type==4): echo 'selected'; endif;?> > SUPERIOR</option>
<option value="5" <?php if ($type==5): echo 'selected'; endif;?> > SAKSHYAM</option>
<option value="6" <?php if ($type==6): echo 'selected'; endif;?> > BAZALEL MINISTRY</option>
<option value="7" <?php if ($type==7): echo 'selected'; endif;?> >GAGULTHA VOICE</option>
<option value="8" <?php if ($type==8): echo 'selected'; endif;?> >PRAYER REQUEST </option>

</select>
</p>

<p>
<label>Link *</label><br>
<input type="text" name="link1" style="width:450px;" value="<?php echo $link1 ; ?>" />
</p>

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

</form>

</div>

</div>

<p>&nbsp;</p>
