<?php
$page = 'PDF';
?>
<!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>
   
    <!-- Bootstrap Core CSS -->
    <link href="<?php echo base_url(); ?>assets/Backend/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="<?php echo base_url(); ?>assets/Backend/css/sb-admin.css" rel="stylesheet">

    <!-- Morris Charts CSS -->
    <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">
       <!-- Navigation -->
        <?php
		include "include/header.php";
		?>       
         <div id="page-wrapper">

            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">
                         PDF
                            <small>Details</small>
                            <a href="<?php echo base_url(); ?>App/new_pdf" class="pull-right btn btn-primary">New PDF</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> PDF
                            </li>
                        </ol>                        
                    </div>
                </div>
		 
                <!-- /.row -->
				<div class="row">
                    <div class="col-lg-9">                    
                        <div class="table-responsive">
                            <table class="table table-bordered table-hover" style="width: 50%;">
                                <thead>
                                    <tr>
                                    	<th width="9%" style="text-align: center;">Sr. No.</th>
                                        <th> Name</th> 
                                                                              
                                                                               
                                        <th >Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                <?php
								$cnt=0;
								foreach($pdf as $row):
								$p_id = $row->p_id;
								$cnt+=1;
								?>
                                    <tr>
                                    	<td style="text-align: center;"><?php echo $cnt; ?></td>
                                        <td><?php echo $row->p_name;?></td> 
                                                                        
										<!--<img id="image_<?php// echo $row->g_id;?>" src="<?php echo base_url();?>assets/uploads/gallery/<?php echo $row->m_name.'_'.$row->m_id.'.pdf'?>" alt="" style="border:1px solid #ccc; width:250px; height: 150px;">-->
                                       <!-- <td><img src="<?php echo base_url();?>assets/uploads/news/news_<?php echo $n_row->n_id.'.jpg';?>" id="image" height="200" width="350" style="border:1px solid #CCC">-->
										                                                                           
                                        <td style="text-align: center;">                                       
                                        <a href="<?php echo base_url(); ?>Delete/del_pdf/<?php echo $p_id; ?>"  onclick="return confirm ('Are you sure you want to delete');"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>
	 <script src="<?php echo base_url(); ?>assets/Backend/editor/js/plugins/tables.min.js"></script>
 
	 <script>
      $(function(){
        $('#edit').editable({inlineMode: false})
      });
  </script>

</body>


</body>

</html>
