<?php
$page = 'Products';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Admin</title>
    <link href="<?php echo base_url(); ?>assets/backend/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/backend/css/sb-admin.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/backend/css/plugins/morris.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/backend/font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head>
<body>
    <div id="wrapper">
        <?php
		include "include/header.php";
		?>
        <?php
		//foreach($about as $row)
		//$p_id = $row->p_id;
		?>
        <div id="page-wrapper">
         <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">
                            Product Category
                            <small>Details</small>
                            <a href="<?php echo base_url(); ?>app/new_categories" class="pull-right btn btn-primary">New Category</a>
                        </h1>
                        <ol class="breadcrumb">
                            <li>
                                <i class="fa fa-dashboard"></i>  <a href="<?php echo base_url();?>app/home">Dashboard</a>
                            </li>
                            <li class="active">
                                <i class="fa fa-file"></i> Product Category
                            </li>
                        </ol>
                        
                    </div>
                </div>
                
                <!-- /.row -->
				<div class="row">
                    <div class="col-lg-12">
                        <h2>Product Information </h2>
                        
                        <div class="table-responsive">
                            <table class="table table-bordered table-hover">
                                <thead>
                                    <tr>
                                    	<th width="6%">Sr. No.</th>	
                                        <th>Category Name</th>
                                        <!--<th>Category Contents</th>-->
                                        <th width="15%">Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                <?php
								$cnt=0;
								foreach($productcategory as $row):
								$pc_id = $row->pc_id;
								$cnt+=1;
								?>
                                    <tr>
                                    	<td><?php echo $cnt; ?></td>
                                        <td><?php echo $row->pc_name; ?></td>
                                       
                                        <!--<td><?php echo $row->pc_description; ?></td>-->
                                        <td>
                                        <a href="<?php echo base_url(); ?>app/update_productcat/<?php echo $row->pc_id; ?>" class="btn btn-success">Edit</a>
                                        <a href="<?php echo base_url(); ?>delete/del_productcategory/<?php echo $row->pc_id; ?>" class="btn btn-danger">Delete</a>
                                        </td>
                                    </tr>
                                <?php
								endforeach;
								?>    
                                    
                                </tbody>
                            </table>
                        </div>
                    </div>
                    </div>
				
            </div>
            <!-- /.container-fluid -->

        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery Version 1.11.0 -->
    <script src="<?php echo base_url(); ?>assets/backend/js/jquery-1.11.0.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="<?php echo base_url(); ?>assets/backend/js/bootstrap.min.js"></script>

    <!-- Morris Charts JavaScript -->
    <script src="<?php echo base_url(); ?>assets/backend/js/plugins/morris/raphael.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/backend/js/plugins/morris/morris.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/backend/js/plugins/morris/morris-data.js"></script>

</body>

</html>
