<?php
$this->load->view('includes/header');
?>
<div class="page-title">
  <h2><span><?php echo $heading_title; ?></span></h2>
  <div class="buttons pull-right col-md-2">
    <a href="javascript:void(0);" onclick="$('#form').submit();" class="btn btn-primary pull-right">Save</a>
    <a href="javascript:void(0);" onclick="window.location.href = '<?php echo site_url('sitepanel/products'); ?>'" class="btn bg-red pull-left">Cancel</a>  
  </div>
</div>

<div class="page-content-wrap">
  <div class="row">
    <div class="col-md-12">
      <?php echo form_open_multipart(current_url_query_string(), array('id' => 'form', 'class' => "form-horizontal")); ?>
      <div class="panel panel-default tabs">                            
        <ul class="nav nav-tabs" role="tablist">
          <li class="active"><a href="#tab-general" role="tab" data-toggle="tab"><?php echo $heading_title; ?></a></li>
        </ul>
        <div class="panel-body tab-content">
          <div class="tab-pane active" id="tab-general">
            <?php
            echo validation_message();
            ?>
            
            

            <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Company Profile</label>
              <div class="col-md-6">                                            
                <input type="radio" name="company_profile" value="1" <?php if(isset($res['company_profile']) && $res['company_profile']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="company_profile" value="0" <?php if(isset($res['company_profile']) && $res['company_profile']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>
             <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Our Products</label>
              <div class="col-md-6">                                            
                <input type="radio" name="our_products" value="1" <?php if(isset($res['our_products']) && $res['our_products']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="our_products" value="0" <?php if(isset($res['our_products']) && $res['our_products']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>
             <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Our Services</label>
              <div class="col-md-6">                                            
                <input type="radio" name="our_services" value="1" <?php if(isset($res['our_services']) && $res['our_services']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="our_services" value="0" <?php if(isset($res['our_services']) && $res['our_services']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>

            <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Our Gallery</label>
              <div class="col-md-6">                                            
                 <input type="radio" name="our_gallery" value="1" <?php if(isset($res['our_gallery']) && $res['our_gallery']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="our_gallery" value="0" <?php if(isset($res['our_gallery']) && $res['our_gallery']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>

            <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Photo Gallery</label>
              <div class="col-md-6">                                            
                 <input type="radio" name="photo_gallery" value="1" <?php if(isset($res['photo_gallery']) && $res['photo_gallery']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="photo_gallery" value="0" <?php if(isset($res['photo_gallery']) && $res['photo_gallery']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>

            <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Video Gallery</label>
              <div class="col-md-6">                                            
                 <input type="radio" name="video_gallery" value="1" <?php if(isset($res['video_gallery']) && $res['video_gallery']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="video_gallery" value="0" <?php if(isset($res['video_gallery']) && $res['video_gallery']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>

            <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Careers</label>
              <div class="col-md-6">                                            
                 <input type="radio" name="careers" value="1" <?php if(isset($res['careers']) && $res['careers']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="careers" value="0" <?php if(isset($res['careers']) && $res['careers']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>

            <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Our Clients</label>
              <div class="col-md-6">                                            
                 <input type="radio" name="our_clients" value="1" <?php if(isset($res['our_clients']) && $res['our_clients']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="our_clients" value="0" <?php if(isset($res['our_clients']) && $res['our_clients']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>
            <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Blogs</label>
              <div class="col-md-6">                                            
                 <input type="radio" name="blogs" value="1" <?php if(isset($res['blogs']) && $res['blogs']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="blogs" value="0" <?php if(isset($res['blogs']) && $res['blogs']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>
            <div class="form-group">
              <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Contact Us</label>
              <div class="col-md-6">                                            
                 <input type="radio" name="contact_us" value="1" <?php if(isset($res['contact_us']) && $res['contact_us']=='1' || empty($res)){ echo 'checked'; } ?> />Show &nbsp;&nbsp;
                 <input type="radio" name="contact_us" value="0" <?php if(isset($res['contact_us']) && $res['contact_us']=='0'){ echo 'checked'; } ?> />Hide
              </div>
            </div>
            <input type="hidden" name="cust_id" value="<?php echo $_GET['cust_id']; ?>" />
            <input type="hidden" name="action" value="submit" />
          </div>
        </div>
      </div>
      <?php echo form_close(); ?>
    </div>
  </div>
</div>
<?php $this->load->view('includes/footer'); ?>
