












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

<p class="inter"><?php echo anchor(base_url('Admin_home/'),'Home') ; ?> >><a href="<?php echo site_url('Service_admin/view'); ?>">Service Management</a> >><a href="#">Delivery Area</a></p><br>



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


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


<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>Type * </label><br>
<select name="type"  class="form-control" style="width:auto;"  >
    <option >--Select--</option>
	<option value="about" <?php if($type=='about'){echo "selected";}?>>About Us</option>
    <option value="blog" <?php if($type=='blog'){echo "selected";}?>>Blog</option>
	<option value="terms_and_conditions" <?php if($type=='terms_and_conditions'){echo "selected";}?>>Terms and conditions</option>
	<option value="privacy_and_policy" <?php if($type=='privacy_and_policy'){echo "selected";}?>>Privacy and policy</option>
</select>
</p>

<p>
<label>Title *</label><br>
<input type="text" name="title" class="form-control" 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>
-->





<div id="transl1" contenteditable="true" style="width:100%;height:300px;" class="form-control"><?= $text; ?></div>
<textarea id="heading" name="text" id="transl1"  style=" display:none;"  ><?= $text; ?></textarea>





<br />
<p>
<label>Image ( 250x250, Only jpeg, gif. Maxsize 500 Kb)</label><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/'.$aid.'/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" id="btnSubmit" value="Submit" type="submit" style="width:150px;" >
</p>

</form>



</div></div>



<script>
    // Turn off automatic editor creation first.
$(function(){

$('#btnSubmit').on('click',function(){

    $('#heading').html( $('#transl1').html() );
    $('#short_description').html( $('#transl2').html() );
    $('#datailed_news').html( $('#transl3').html() );

});


/*$('#transl1').on('blur',function(){
    $('#heading').html( $('#transl1').html() );
});
   

$('#transl2').on('blur',function(){
    $('#short_description').html( $('#transl2').html() );
});
   

$('#transl3').on('blur',function(){
    $('#datailed_news').html( $('#transl3').html() );
});

   CKEDITOR.disableAutoInline = true;
    CKEDITOR.inline( 'transl1' );*/

});



</script>