




<div class="col-md-12  full min_ht">
<div class="col-md-9  text-center">

<p class="inter"><?php echo anchor(base_url('Admin_home/'),'Home') ; ?> >><a href="<?php echo site_url('Subcategory_admin/view'); ?>">Category Management</a> >><a href="#">Category Details</a></p><br>

<h1 style="text-align:left;"><i class="fa fa-bars" aria-hidden="true"></i> <?php echo $heading ; ?></h1>
<div class="clr2"></div>

<div class="err_msg" >
<?php 
echo validation_errors(); 
echo $str; 
?>
</div>

<div class="col-md-12 text-left">

<form name="form1" method="post" action="" >

<p>
<label>Category *</label><br>
<select name="category_id" id="category_id" class="form-control" style="width:auto;" >
<option value="">Select Category</option>
<?php foreach($category_result as $row_cat):?>
<option value="<?php echo $row_cat['id'] ; ?>" <?php if($category_id==$row_cat['id'])echo 'selected="selected"'; ?> ><?php echo $row_cat['title'] ; ?></option>
<?php endforeach; ?>
</select>
</p>

<p>
<label>Subcategory *</label><br>
<input type="text" name="title" class="form-control" value="<?php echo $title ; ?>" />
</p>

<p>
<input name="submit" class="btn btn-lg btn-primary btn-block btn2" value="Submit" type="submit" style="float:left;width:150px;">
</p>

</form>

</div>

</div>
<div class="clr2"></div>
<div class="col-md-3 bord_lft">
</div>
</div>




























