<form id="" name="" class="form-horizontal" method="post" action="dashboard.php" enctype="multipart/form-data">

<?php


//i did a programme to switch level that will load automatically
//collect the variables


$dept = get_user_department_id($user_id); //get dept id for user
$school_id = get_user_school_id($user_id);
$programme = get_user_programme_id($user_id); //get programme if for a suer

$level = get_user_level($user_id); //get user level

$programme_type = 2; //get_user_programme_type_id($user_id); //programme type


//get current semester
$current_semester = get_current_semester($id = 1);

$semester_t = get_semester_title($current_semester); //semster title




?>

<div style="height:20px; displat:block;"></div>

  <ul class="breadcrumb">

      <li class="active" ><a href="dashboard.php?act=course_registration0&qlk=<?php echo md5(3); ?>">Course Registration</a> <span class="divider"></span> </li>
      <li >Edit courses <span class="divider"></span> </li>
  </ul>

<div class="well">



 	<ul class="tabs">
        <!-- play with the level tabs small -->

	  <?php //if($level == 'I') {?>
        <li><a href="#view1">SUMMER 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($level == 'II'){ ?>
        <!--
				commented becausse of summer


				 <li><a href="#view1">YEAR I COURSES</a></li>
        <li><a href="#view2">YEAR II COURSES</a></li>  -->

     <?php //}if($level == '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">


     <?php  //if($level == 'I') {?>

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



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

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



       <?php/* }if($level == 'II'){ ?>

         <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($semester = '1', $dept, $programme, $level='I', $programme_type); ?>



            <h3 id="list" class="btn btn-success">Level I - Second Semester</h3> <br>
            <?php echo courses_to_register($semester = '2', $dept,  $programme, $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($semester = '1', $dept, $programme, $level ='II', $programme_type); ?>

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

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



        <?php } if($level == 'III' ){?>

         <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($semester = '1', $dept, $programme, $level='I', $programme_type); ?>



            <h3 id="list" class="btn btn-success"> Level I - Second Semester</h3> <br>
            <?php echo courses_to_register($semester = '2', $dept,  $programme, $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($semester = '1', $dept, $programme, $level ='II', $programme_type); ?>

              <h3 id="list" class="btn btn-warning">Level II - Second Semester</h3> <br>
              <?php echo courses_to_register($semester = '2', $dept, $programme, $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($semester = '1', $dept, $programme, $level='III', $programme_type); ?>



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

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

          <?php }*/ ?>


      </div>




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


<input type="hidden" value="<?php echo md5(3); ?>" name="qlk" />

<input type="hidden" value="edit_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 preview"/>

</div><!-- /well -->

</form>
