<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >
<div class="row">
    <div class="col-md-6 margin-bottom-30">
        <div class="hs_heading medium">
            <h3>Update Page</h3>
        </div>
		  <form id="updatepages" enctype="multipart/form-data">
        <div class="hs_input">
            <label>Heading</label>
            <input type="text" class="form-control" placeholder="Heading" name="page_heading" id="page_heading" value="<?php if(!empty($pagedetails)){ echo $pagedetails[0]->page_heading; } ?>">
        </div>
          <div class="hs_input">
            <label>Title</label>
            <input type="text" class="form-control" placeholder="Title" name="page_title" id="page_title" value="<?php if(!empty($pagedetails)){ echo $pagedetails[0]->page_title; } ?> ">
        </div>
		<div class="hs_input">
            <label for="exampleInputFile">Page Image</label>
            <input type="file" name="page_image" id="page_image" class="form-control">
            
        </div>
          <div class="hs_input">
            <label>Short Content</label>
            <textarea rows="4" class="form-control" placeholder="Content" name="page_shortcontn" id="page_shortcontn"><?php if(!empty($pagedetails)){ echo $pagedetails[0]->page_shortcontent; }?></textarea>
        </div>
        <div class="hs_input">
            <label>Long Content</label>
            <textarea rows="4" class="form-control" placeholder="Content" name="page_msg" id="page_msg"><?php if(!empty($pagedetails)){ echo $pagedetails[0]->page_massage; }?></textarea>
        </div>
        <input type="hidden" id="old_page_id" name="old_page_id" value="<?php if(!empty($pagedetails)){ echo $pagedetails[0]->page_id; } ?> " >
        <button type="submit" class="btn">Update</button>
		</form>
    </div>
</div>
