<?php include('add_header.php'); ?>



<div class="bio_main">

    	<div class="bio_inner">

        	<div class="container">

            	<div class="col-lg-12 padding_part ">

                	<div class="bio_content">

<center><h1>Edit Article</h1></center>

<div class="col-lg-3 col-sm-12 col-xs-12 bio_content2 text-center">

</div>

                         <div class="col-lg-6 col-sm-12 col-xs-12 bio_content2 text-center">



<form id="contact" name="contact" method="post" action="<?php echo base_url();?>adminpanel/updatearticle" target="" onsubmit="return get_validate1();"> 
  <?php echo form_hidden('article_id', $article->id); ?>



					  <div id="input">

        <?php echo form_input(['name'=>'title','class'=>'get_in_name','placeholder'=>'Title','value'=>set_value('body',$article -> title)]); ?>

<span id="span11"><?php echo form_error('title'); ?></span></div>

<div id="input"><?php echo form_input(['name'=>'slug','class'=>'get_in_name','placeholder'=>'Slug','value'=>set_value('body',$article -> slug)]); ?>
<span id="span11"><?php echo form_error('slug'); ?></span></div>
 


<div id="input"> 
<?php echo form_textarea(['name'=>'body','class'=>'get_in_name','placeholder'=>'Article Body','value'=>set_value('body',$article -> body)]); ?>

<span id="span31"><?php echo form_error('body'); ?></span></div> 

					  



					  <div class="col-lg-12 learn_btn text-center">



<input class="send_btn" id="form_btn" type="submit" name="submit" value="Submit" />

					       

				      </div>

                              

</form>



                     </div>



<div class="col-lg-12 col-sm-12 col-xs-12 bio_content2 text-center">   

</div>

                        

                    </div>

                </div>

            </div>

        </div>

    </div><!--bio_main -->



<?php include('add_footer.php'); ?>