<br />
<br />
<section class="content-header">
            <h1>Academic Session </h1>
            <ol class="breadcrumb">
                <li class="breadcrumb-item pt-1"><a href="dashboard"><i class="fa fa-fw fa-home"></i> Dashboard</a>
                </li>

            </ol>
        </section>
        <!-- Main content -->
        <section class="content p-l-r-15">
            <div class="row">
                <div class="col-12">
                    <div class="card border-primary ">
                        <div class="card-header text-white  bg-primary">
                            <h4 class="card-title d-inline">
                                <i class="fa fa-fw fa-News"></i> Sessions List
                            </h4>
                        </div>
                        <div class="card-body">
                            <div class="table-responsive table-responisve-lg table-responsive-xl">
                                <table class="table table-bordered" id="table">
                                    <thead>
                                    <tr class="filters">
                                        <th width="5%"><a href="#" class="button button-3d button-primary button-rounded btn_3d" data-toggle="modal" data-target="#myModal">+
											</a></th>


                                    <th > TITLE </th>

                                    <th > DESCRIPTION </th>

                                    <th> CURRENT SESSION </th>

                                    <th > DATE ADDED </th>
                                    <th > ADDED BY </th>


										                 <th>Status</th>
                                        <th>Actions</th>
                                    </tr>
                                    </thead>
                                    <tbody>

									<?php




									$select= "SELECT *
                      		 FROM sessions
                      		 WHERE status = 0

                      		 ORDER BY title DESC";
									$sql_select = mysqli_query($conn_1,$select);
									$num_rows=mysqli_num_rows($sql_select);
									if($num_rows > 0){
										$sn=1;
										while($row=mysqli_fetch_array($sql_select)){


                      $id=$row['id'];
                      $name=$row['title'];
                      $staff_id=$row['description'];
                      $email=$row['current_session'];
                      $phone_number=$row['added_by'];

                      $date_added = $row['date_added'];

                            $status='Active';



                          echo $tr = '<tr>
    														<td><center>'.$sn.'</center></td>
    														<td>'.$name.'</td>
    														<td>'.$staff_id.'</td>
    														<td>'.$email.'</td>
    														<td>'.$phone_number.'</td>
                                <td>'.$date_added.'</td>
    														<td>'.$status.'</td>



    														<td><a href="#" class="edit" id="'.$id.'"><i
    																class="fa fa-fw fa-pencil text-primary actions_icon " title="Edit Allocation"></i></a>
    																<a
    																href="#"
    																id="'.$id.'"
    																data-toggle="modal"

    																class="delete"
    																><i
    																class="fa fa-fw fa-times text-danger actions_icon" title="Revoke Allocation"></i>
    														</a></td>

    													</tr>';
    													$sn++;





										}


									}

									?>
                                    </tbody>
                                </table>

                            </div>
                        </div>
                    </div>
                </div>





            </div>
            <!-- row-->

        </section>

 <!-- The Modal -->
