<div class="profile">	
        <div class="container content">
        	<div class="row">  
                <div class="col-md-12">
<div class="tab-v1">
							<ul class="nav nav-tabs">
								<li class="active"><a href="#stugeneralinfo" data-toggle="tab">Course Allocations</a></li>
														
							</ul>
		                <div class="tab-content">
			    <div class="tab-pane fade in active" id="stugeneralinfo">
                <?php $page_session = \Config\Services::session(); ?>
                  
                  
									<!-- Customer Information-->
						<form id="" class="sky-form" action= "<?= base_url('hod/save_allocation') ?>" method="post">
							<header>My Courses</header>
							<fieldset>
							<?php

							if($page_session->getTempdata('allocationSuccess')):       
                                ?>
                                <div class = "alert alert-success">
                                     <?= $page_session->getTempdata('allocationSuccess'); ?>
                                </div>
                                <?php 
                                endif;
                                ?>
              
                              <?php
              
                              if($page_session->getTempdata('allocationError')):       
                              ?>
                              <div class = "alert alert-danger">
                                  <?= $page_session->getTempdata('allocationError'); ?>
                              </div>
                              <?php 
                              endif;
                              ?>
						 <!--Conference Schedule Tables-->
                <div class="row">

                                <section class="col-md-6">
                                 <label class="label"><b>Select Session:</b></label>
                                 <label class="select">
                                                
                                        
                                                <select name="lecturer" id="" required> 
                                                <option>Lecturer</option>
                                                <?php foreach($staff as $st): ?>
                                                <option value='<?= $st->stfN ?>'><?= $st->first_name ?> <?= $st->last_name ?> <?= $st->middle_name ?></option>
                                                <?php endforeach; ?>
                                          </select>
                                          <i></i>
										 <b class="tooltip tooltip-bottom-right">Labels</b>
                                    </label>
                                 </section>

                                 <section class="col-md-6">
                                 <label class="label"><b>Select Course:</b></label>
                                 <label class="select">
                                                
                                        
                                                <select name="course" id="myprogrammelist89" onchange="spawn_programmes()" required> 
                                                <option>Course</option>
                                                <?php foreach($course as $co): ?>
                                                <option value='<?= $co->id ?>'><?= $co->id ?> <?= $co->title ?></option>
                                                <?php endforeach; ?>
                                                
                                          </select>
                                          <i></i>
										 <b class="tooltip tooltip-bottom-right">Labels</b>
                                    </label>
                                 </section>

                                 <!--<section class="col-md-4">
                                 <label class="label"><b>Select Programme:</b></label>
                                 <label class="select">
                                                
                                        
                                                <select name="progammes" id="myprogrammelist89" required> 
                                                <option>Programme</option>
                                                <?php foreach($staff as $st): ?>
                                                <option value='<?= $st->id ?>'><?= $st->first_name ?> <?= $st->last_name ?> <?= $st->middle_name ?></option>
                                                <?php endforeach; ?>
                                                
                                          </select>
                                          <i></i>
										 <b class="tooltip tooltip-bottom-right">Labels</b>
                                    </label>
                                 </section>-->
                                 <div id = "checkBoxesArea">
                                
                                        </div>
                                 
                    <!--Striped Rows-->
                    <div class="col-md-12 table-responsive" > 
                        <div class="panel panel-blue margin-bottom-40"  >
                            <div class="panel-heading" align="center" style="background:#2b89c0;">
                                <h3 style="color:#fff;" class="panel-title"><i class="fa fa-star"></i> <i class="fa fa-star"> </i> <i class="fa fa-star"></i> List of Course Allocations. <i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i></h3>
                            </div>
                            <table id="mycourse_tbl1" class="table table-bordegreen table-striped" >
                                <thead>
                                    <tr>
                                        <th>S/N</th>
										<th>Course Code</th>
                                        <th>Course Title</th>
                                        <th>Semester</th>
                                        <th>Level</th>
                                        <th>Lecturer</th>
                                        <th>Programmes</th>
                                        <th>Session</th>
                                       </tr>
                                </thead>
                                <tbody>
						
                                
                                <?php $ii = 0;?>
                            <?php if(!empty($allocations)): ?>   	
                  <?php foreach($allocations as $alloc): ?>
                    <tr>
                    <td><?= $ii = $ii + 1; ?></td>                     
                    <td><?= $alloc->course_id ?></td>
                    <td><?= $alloc->title ?></td>
                    <td><?= $alloc->semester ?></td>
                    <td><?= $alloc->level ?></td>
                    <td><?= $alloc->first_name.' '.$alloc->last_name.' '.$alloc->middle_name ?></td>
                    <td><?= $alloc->programmes_allocated_to ?></td>
                    <td><?= $alloc->session ?></td>
                    </tr>
                    <?php endforeach; ?>
                      <?php endif; ?>
                       
                       
                                </tbody>
                            </table>
                        
                            
                        </div>                  
                    </div>
                    <!--End Striped Rows-->

					</fieldset>
						</form>
								</div>
	</div>
						</div>

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

		    </div>
<script>

    
    </script>