 <div class="panel panel-success">
                        
  <div class="panel-heading">Programmes <i class="badge"> <?php echo  get_total_programmes(); ?></i></div>
  <div class="panel-body">
  
    <div class="col-md-6">
     
          <ul class="list-group">
          
              
              <?php echo get_listed_programmes_for_applicants();?>
             
          
          </ul>
      
      
      
    </div><!-- col md 6-->
    
     <div class="col-md-6">
      <div class="well">
          <?php
  
              $q = "SELECT * FROM programmes WHERE status ='0' AND real_ = '0' ORDER BY title ";
              $r = mysqli_query($dbc, $q);
              
              if(mysqli_num_rows($r)>0)
              {
                   
                  while($row = mysqli_fetch_array($r,MYSQLI_ASSOC))
                  {
                      
                      $id = $row['id']; // collect the id
                      $title = $row['title']; //collect the title
					  $programme_type = $row['type_id']; //collect the title
                      
          ?>	
         <!-- bar for faculty -->
         <div class="row">
        <span class="pull-left" style="margin-left:14px; font-size:12px"><?php echo $title; ?> /<span class="help-block"> <?php echo show_programme_type($row['type_id']); ?></span></span>
        <span class="pull-right"><span class="pull-right" style="font-size:12px">
        <?php //echo get_percent($value = get_total_prog_type_programme_applicants($programme_type,$id), $total = get_total_applicants()); ?>%</span>
        </div>

        <div class="progress">

            <div class="progress-bar <?php  echo get_color (get_percent(  $value = get_total_programme_applicants($id), $total = get_total_applicants())  ); ?>" 
                style="width: <?php echo get_percent(  $value = get_total_prog_type_programme_applicants($programme_type,$id), $total = get_total_applicants()); ?>%">
            </div>
        
        </div>
            
      
      
       <?php
      }//end of while
  }//end of if

?>    

      
      </div><!-- /well -->
    </div><!-- col md 6-->
  
  </div><!-- /panel body -->

</div>
