
<div class="well"><!-- well start -->


        	<ul class="breadcrumb">
                  <li><a href="gateway.php?act=view_admission_reports">Allocation Report</a> <span class="divider"></span></li>

                  <li class="active"> Allocated reports  </li>

           </ul>







              <ul class="tabs">

                <li><a href="gateway.php?act=view_all_students" >All students</a></li>
                <li><a href="#view1">Allocated Students</a></li>

                <li><a href="gateway.php?act=view_not_qualified_applicants">Not Qualified</a></li>
                <li><a href="gateway.php?act=view_qualified_applicants">Qualified</a></li>
                <li><a href="gateway.php?act=view_dashboard">Dashboard</a></li>



               </ul>
              <div class="tabcontents">


                <div id="view1">

						<br/>

            <form method="post" >
              <?php

              echo'<center>
              <div class="form-group has-success has-feedback form-inline">
              ';
              $q = "SELECT * FROM hostel_sites WHERE status='1' ORDER BY date_added ASC ";
              $r = mysqli_query(dbc(), $q) ;

              if(mysqli_num_rows($r) > 0)
              {//show table
                while($row = mysqli_fetch_array($r)){


                  echo '<input type="hidden" name="ggg" value="'.$row['id'].'"/>
                  <a  class="btn btn-success" name="get" style="margin:10px;" >'.$row['title'].'</a>';


              }
              echo '<a  href="gateway.php?act=view_all_admitted_applicants&id='.md5('me').'" target="_blank" class="btn btn-success" data-toggle="tooltip" title="View All Allocated Students"> View All Allocated Students</a> &nbsp;&nbsp;&nbsp;';
            }

              echo '
              </div>
              </center><br>
              ';


              if(isset($_POST['get']))
              {
                $id = $_POST['ggg'];
                echo $id;
              }
              ?>


</form>
                </div>





              </div>





</form>

</div>
