<div class="well">

      <ul class="tabs"> 
        <li><a href="#view1">Add Course</a></li> 
      </ul> 
      <div class="tabcontents"> 
          <div id="view1" class="row">
        
              <!-- form cut to the toolbar add faculties -->
              <div class="col-lg-12">
              
                  <div class="col-lg-6">
              
               
                  
                          <fieldset> 
                              <legend><span class="ast">*</span> indicate required fields </legend>
        
  
                                                      
                            <div class="form-group">
                                  <label for="title" class="col-sm-3 control-label">Title </label>
                                  <div class="col-sm-9">
                                    <div class="input-group">
                                    <input  id="title" class="form-control input-sm" type="text" placeholder="Title"  name="title" 
                                    value="<?php if(isset($_SESSION['title'])) echo $_SESSION['title']; ?>" required></input>
                                    <div class="input-group-addon"> <span class="ast">*</span></div>
                                    </div>
                                     
                                  </div>
                               </div>
                               
                                 <div class="form-group">
                                <label for="code" class="col-sm-3 control-label">Course Code</label>
                                  <div class="col-sm-9">
                                    <div class="input-group">
                                    <input  id="code" class="form-control input-sm" type="text" placeholder="Course Code"  name="code" 
                                    value="<?php if(isset($_SESSION['code'])) echo $_SESSION['code']; ?>" required></input>
                                    <div class="input-group-addon"> <span class="ast">*</span></div>
                                    </div>
                                        <span class="help-block"> e.g: Introduction to Computer : CSC101. </span>
                                  </div>
                               </div>
                               
                                 <div class="form-group">
                                <label for="unit" class="col-sm-3 control-label">Course Unit</label>
                                  <div class="col-sm-9">
                                    <div class="input-group">
                                    <input  id="unit" class="form-control input-sm" type="text" placeholder="Course Unit"  name="unit" 
                                    value="<?php if(isset($_SESSION['unit'])) echo $_SESSION['unit']; ?>" required></input>
                                    <div class="input-group-addon"> <span class="ast">*</span></div>
                                    </div>
                                      
                                  </div>
                               </div>
                             
                             
                           
                           
                           <div class="form-group">
                            <label class="col-sm-3 control-label" for="description1">Course Description</label>
                              <div class="col-sm-9">
                              
                                <textarea  id="" rows="3"  class="rte1 form-control input-sm" name="description1" action="#" >
                                <?php if(isset($_SESSION['description1'])){echo $_SESSION['description1'];} ?>
                                </textarea>
                               <span class="help-block">Description of the coure, i.e course break down</span>
                              </div>
                            </div>
                           
                           
                           
                           
                    
                              					
                  </div><!-- /col-lg- 6 -->
                  <div class="col-lg-6">
                  		<br /> <br />
                  	         
                           <div class="form-group">
                            <label class="col-sm-3 control-label" for="description">Note / Description</label>
                              <div class="col-sm-9">
                              
                                <textarea  id="" rows="3"  class="rte1 form-control input-sm" name="description" action="#" >
                                <?php if(isset($_SESSION['description'])){echo $_SESSION['description'];} ?>
                                </textarea>
                                
                                 <span class="help-block">Notes attached to course incase of change of title or something</span>
                              </div>
                              
                             
                            </div>   
                          
                          
                          	  <div class="form-group">
                              <label class="col-sm-3 control-label" for="programme_type">Programme Type</label>
                              <div class="col-sm-9">
                              
                                <select id="programme_type" class="form-control input-sm" name="programme_type" required>
                                <?php  echo select_programme_type($_SESSION['programme_type']); ?>
                                </select>
                               <span class="help-block">Diploma / Advance Diploma or Cert</span>
                              </div>
                              
                            </div>
                            
                          
                          
                          
                            
                            
                             <div class="form-group">
                            <label class="col-sm-3 control-label" for="department">Department</label>
                            <div class="col-sm-9">
                            
                              <select id="department" class="form-control input-sm" name="department" required>
                               <option value="0"> ---- Choose Department --- </option> 
                              <?php  echo select_department($_SESSION['department']); ?>
                                
                               </select>
                            
                                   
                                </div>
                            
                          	</div>	
                            
                          <div class="form-group">
                            <label class="col-sm-3 control-label" for="department">Programme</label>
                            <div class="col-sm-9">
                            
                              <select id="programme" class="form-control input-sm" name="programme" required>
                               <option value="0"> ---- Choose Programme --- </option> 
                              <?php  echo select_programme($_SESSION['programme']); ?>
                                
                               </select>
                              </div>
                            
                          	</div>	
                            
                                      
                           <div class="form-group">
                            <label class="col-sm-3 control-label" for="level">Level</label>
                            <div class="col-sm-9">
                            
                              <select  class="form-control input-sm" name="level"  id="level">
                                <option value="0" >-- Choose Year --</option>
                                <option value="I" <?php if($_SESSION['level'] == 'I') echo 'selected'; ?>>Year One</option>
                                <option value="II" <?php if($_SESSION['level'] == 'II') echo 'selected'; ?>>Year Two</option>
                                <option value="III" <?php if($_SESSION['level'] == 'III') echo 'selected'; ?>>Year Three</option>
                               </select>
                      
                               
                            </div>
                            
                          </div>
                          
                          
                            <div class="form-group">
                            <label class="col-sm-3 control-label" for="semester">Semester</label>
                            <div class="col-sm-9">
                              <select  class="form-control input-sm" name="semester"  id="semester">
                                <option value="0"  >-- Choose Semester --</option>
                                <option value="1" <?php if($_SESSION['semester'] == '1') echo 'selected'; ?>>1</option>
                                <option value="2" <?php if($_SESSION['semester'] == '2') echo 'selected'; ?>>2</option>
                              </select>
                
                               
                            </div>
                            
                          </div>
                          
                          
                           
                            <div class="form-group">
                            <label class="col-sm-3 control-label" for="gender">Course Type</label>
                            <div class="col-sm-9">
                              <select  class="form-control input-sm" name="type"  id="type">
                                <option value="0"  >-- Choose Course Type --</option>
                                <option value="1" <?php if($_SESSION['type'] == '1') echo 'selected'; ?>>Core</option>
                                <option value="2" <?php if($_SESSION['type'] == '2') echo 'selected'; ?>>Elective</option>
                              </select>
                
                               
                            </div>
                            
                          </div>
                          
                          
                           
                          
                          
                          
                          
                              
                       <div class="form-group">
                            <label class="col-sm-3 control-label" for="gender">Status</label>
                            <div class="col-sm-9">
                            
                              <select id="status" class="form-control input-sm" name="status" required>
                                
                              <?php  echo select_status($_SESSION['status']); ?>
                                
                               </select>
                            
                               
                            </div>
                            
                          </div>	
                                  
                                
							
                                
					  <input type="hidden" value="save_courses" name="act" />
                  
                  
                  
                  </div><!-- /col-lg- 6 -->
                  </fieldset>
              
              
                
               
			</div><!-- / col-lg -12 -->
							
 		</form>

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