<?php $this->load->view('includes/header'); ?>
<div class="page-title">                    
  <h2><span ></span><?php echo $heading_title; ?></h2>
  <div class="buttons">
    <a href="<?php echo site_url(); ?>sitepanel/meta/redirection" class="btn btn-primary pull-right">Cancel</a> 
  </div>
</div>
<div class="page-content-wrap">                
  <div class="row">
    <div class="col-md-12">
      <div class="panel panel-default">
        <div class="panel-body">
          <?php
          echo validation_message();
          echo error_message();
          echo form_open_multipart(current_url_query_string(), 'class="form-horizontal"');
          ?> 
          <div class="form-group">
            <label class="col-md-4 col-xs-12 control-label"><span class="required">*</span>Old URL</label>
            <div class="col-md-4 col-xs-12">     
              <input type="text" class="form-control" name="old_url" value="<?php echo set_value('old_url', $res['old_url']); ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-4 col-xs-12 control-label"><span class="required">*</span>New URL</label>
            <div class="col-md-4 col-xs-12">     
              <input type="text" class="form-control" name="new_url" value="<?php echo set_value('new_url', $res['new_url']); ?>" />
            </div>
          </div>
          <div class="form-group">
            <div class="col-md-8">
              <input type="submit" name="sub" value="Update" class="btn bg-red pull-right" />
              <input type="hidden" name="redirection_id" value="<?php echo $res['redirection_id']; ?>"  />
            </div>
          </div>
          <?php echo form_close(); ?>
        </div>
      </div>
    </div>
  </div>
</div>
<?php $this->load->view('includes/footer'); ?>