<form id="" name="" class="form-horizontal" method="post" action="gateway.php?qlk=<?php echo md5(2); ?>" enctype="multipart/form-data">

<?php


//&ses='. $session.'&sem=1&sid='.$sid.'&pid='.$pid.'&level=I

if(isset($_GET['u'],$_GET['pid']))
{

    $user_id = $_REQUEST['u'];//programme id
    $pid = $_REQUEST['pid'];//programme id
    $sid = $_REQUEST['sid'];//school id
    $ses = $_REQUEST['ses'];//session passed
    $sem = $_REQUEST['sem'];//semster passed
    $levelt = $_REQUEST['level'];//semster passed level custome


    //get student department
    $dept = get_student_department_id($user_id);

    $programme_type = get_student_programme_type_id($user_id);


}


 ?>

<div class="well">

      <ul class="tabs">
      	<li><a href="#view1">Registered Course</a></li>
        <!--<li><a href="gateway.php?act=view_course_assessments">Assessments</a></li>-->
      </ul>
      <div class="tabcontents">
        <div id="view1">



    <ul class="tabs">


 <!-- play with the level tabs small -->

    <?php if($levelt == 'I') {?>
        <li><a href="#view1">COURSES</a></li>
       <!-- <li><a href="#view2">200L COURSES</a></li>
        <li><a href="#view3">300L COURSES</a></li>
        <li><a href="#view4">400L COURSES</a></li>
        <li><a href="#view5">500L COURSES</a></li> -->

     <?php }/*if($levelt == 'II'){ ?>
        <li><a href="#view1">YEAR I COURSES</a></li>
        <li><a href="#view2">YEAR II COURSES</a></li>

     <?php }if($levelt == 'III' ){?>
      <li><a href="#view1">YEAR I COURSES</a></li>
      <li><a href="#view2">YEAR II COURSES</a></li>
      <li><a href="#view3">YEAR III COURSES</a></li>

     <?php }*/?>




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



          <!-- play with the tab contents small -->
<?php /*?>            $current_semester <?php */?>
            <?php //if($levelt == 'I') { //if 100 ?>

            <div  id="view1">
              <h3 id="list" class="btn btn-success"> First <?php //echo $semester_t;  ?> Semester</h3> <br>
              <?php echo courses_to_register($user_id, $ses, $sem = '1', $dept, $pid, $level='I', $programme_type); ?>


              <h3 id="list" class="btn btn-success"> Second Semester</h3> <br>
              <?php echo courses_to_register($user_id, $ses, $sem = '2', $dept, $pid, $level='I', $programme_type); ?>

            </div> <!-- view1 ends -->
					<?php /*}//if($levelt == 'II'){ //if 200  ?>

              <div  id="view1">
                  <h3 id="list" class="btn btn-success">Level I - First <?php //echo $semester_t;  ?> Semester</h3> <br>
                  <?php //echo courses_to_register($user_id, $ses,$sem = '1', $dept, $pid, $level='I', $programme_type); ?>


                <h3 id="list" class="btn btn-success">Level I - Second Semester</h3> <br>
                <?php //echo courses_to_register($user_id, $ses, $sem = '2', $dept, $pid, $level='I', $programme_type); ?>

               </div> <!-- view1 ends -->


              <div  id="view2">
                   <h3 id="list" class="btn btn-warning">Level II - First <?php //echo $semester_t;  ?> Semester</h3> <br>
                  <?php //echo courses_to_register($user_id, $ses, $sem = '1', $dept, $pid, $level ='II', $programme_type); ?>



                  <h3 id="list" class="btn btn-warning">Level II - Second Semester</h3> <br>
                  <?php //echo courses_to_register($user_id, $ses, $sem = '2', $dept, $pid, $level='II', $programme_type); ?>

              </div> <!-- /view2 -->


            <?php //} if($levelt == 'III'){ //if 300  ?>

               <div  id="view1">
                <h3 id="list" class="btn btn-success">Level  I -  First <?php //echo $semester_t;  ?> Semester</h3> <br>
                <?php //echo courses_to_register($user_id, $ses, $sem = '1', $dept, $pid, $level='I', $programme_type); ?>


              <h3 id="list" class="btn btn-success">Level I - Second Semester</h3> <br>
              <?php //echo courses_to_register($user_id, $ses, $sem = '2', $dept, $pid, $level='I', $programme_type); ?>

             </div> <!-- view1 ends -->


            <div  id="view2">
                 <h3 id="list" class="btn btn-warning"> Level II - First <?php //echo $semester_t;  ?> Semester</h3> <br>
                <?php //echo courses_to_register($user_id, $ses, $sem = '1', $dept, $pid, $level ='II', $programme_type); ?>



                <h3 id="list" class="btn btn-warning">Level II - Second Semester</h3> <br>
                <?php //echo courses_to_register($user_id, $ses, $sem = '2', $dept, $pid, $level='II', $programme_type); ?>

            </div> <!-- /view2 -->


             <div  id="view3">

                 <h3 id="list" class="btn btn-info"> Level  III - First <?php //echo $semester_t;  ?> Semester</h3> <br>
                <?php //echo courses_to_register($user_id, $ses, $sem = '1', $dept, $pid, $level='III', $programme_type); ?>



                <h3 id="list" class="btn btn-info">Level III - Second Semester</h3> <br>
                <?php //echo courses_to_register($user_id, $ses, $sem = '2', $dept, $pid, $level='III', $programme_type); ?>

             </div> <!-- /view3 -->

           <?php //}  */?>


      </div>




  <div style="height:30px"></div>



<input type="hidden" value="preview_rc" name="act" />

<input type="hidden" value="<?php echo $user_id; ?>" name="u" />

<input type="hidden" value="<?php echo $pid; ?>" name="pid" />
<input type="hidden" value="<?php echo $ses; ?>" name="ses" />
<input type="hidden" value="<?php echo $sem; ?>" name="sem" />
<input type="hidden" value="<?php echo $levelt; ?>" name="level" />







<input type="submit" name="submit" class="btn btn-success" value="Preview" id="submit" data-toggle="tooltip" data-placement="top" title="Click here to see a preview"/>













        </div> <!-- /view1 -->


      </div><!-- /tabs -->
</div><!-- /.well -->

</form>
