<?php $this->load->view('includes/header'); ?> 
<div class="page-title">
  <h2><span><?php echo $heading_title; ?></span></h2>
</div>
<div class="page-content-wrap"> 
  <div class="fix"></div>
  <div class="row">
    <div class="col-md-12">
      <div class="panel panel-default">
        <div class="panel-body">
          <?php
          echo validation_errors();
          echo form_open(current_url_query_string(), 'class="form-horizontal"');
          ?>
          <div class="form-group">
            <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Page</label>
            <div class="col-md-9 col-xs-12">                                                      
              <p><strong><?php echo $pageresult['page_name']; ?></strong></p>                                 </div>
          </div>
          <?php if ($pageresult['page_short_description'] != '') { ?>
            <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Heading</label>
              <div class="col-md-9 col-xs-12">
                <textarea name="page_short_description" class="form-control"><?php echo $pageresult['page_short_description']; ?></textarea>                                                   
              </div>
            </div>
          <?php } ?>
          <div class="form-group">
            <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>content</label>
            <div class="col-md-9 col-xs-12">  
              <textarea name="page_description" rows="5" class="form-control" cols="50" id="page_desc" ><?php echo $pageresult['page_description']; ?></textarea>
              <?php echo display_ckeditor($ckeditor); ?>                             
            </div>
          </div>

          <div class="form-group" style="background:#eee">
            <label class="col-md-6 control-label"><strong>SEO Parameters</strong></label>
          </div>
          <div class="form-group">
            <label class="col-md-3 control-label">Meta Title</label>
            <div class="col-md-6"> <input type="text" class="form-control" name="meta_title" value="<?php echo set_value('meta_title', $metaDets['meta_title']); ?>"  title="Meta Title"/><?php echo form_error('meta_title') ?>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-3 control-label">Meta Description</label>
            <div class="col-md-6"> <textarea class="form-control" name="meta_description"><?php echo set_value('meta_description', $metaDets['meta_description']); ?></textarea><?php echo form_error('meta_description') ?>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-3 control-label">Meta Keyword</label>
            <div class="col-md-6"> <input type="text" class="form-control" name="meta_keyword" value="<?php echo set_value('meta_keyword', $metaDets['meta_keyword']); ?>"  title="Meta Keyword"/><?php echo form_error('meta_keyword') ?>
            </div>
          </div>

          <div class="form-group textarea">
            <div class="col-md-6 col-xs-12">
              <input type="submit" name="sub" value="Update" class="btn bg-red pull-right" />
              <input type="hidden" name="id" value="<?php echo $pageresult['page_id']; ?>" />
            </div>
          </div>
          <?php echo form_close(); ?>
        </div>
      </div>
    </div>
  </div>
</div>
<?php $this->load->view('includes/footer'); ?>