Example #1
0
 function fetchDir($dir,$file_url = '') {
     foreach(glob($dir.'\*') as $file) {
         if(is_dir($file)) {
            // echo $file.'<br>';
             $file_url .= $file;
             fetchDir($file,$file_url);
         }
     }
     return $file_url;
 }
Example #2
0
          <h2 class="sub-header">Course Guide</h2>
          <div class="row">
            <div class="col-xs-3 col-sm-4 placeholder">
              <h4 align="center">Description</h4>
              <div class="well well-lg" id="showDescLeft"></div>
            </div>
            <div class="col-xs-3 col-sm-4 placeholder">
              <div class="choose-left-right">
                <i class="glyphicon glyphicon-chevron-left" id="displaydironleft" style="color: #000000"></i>
                <i class="glyphicon glyphicon-chevron-right" id="displaydironright" style="color: #C0C0C0"></i>
                <h4>All Courses</h4>
              </div>
              <select class="form-control dir-select" id="selDirectory" name="selDirectory">
                <option value="None" selected="selected">None</option>
                <?php 
fetchDir();
?>
              </select>
              <select class="form-control multiselect" id="showDirectory" size="16"></select>
            </div>  
            <div class="col-xs-3 col-sm-4 placeholder">
              <h4 align="center">Description</h4>
              <div class="well well-lg" id="showDescRight"></div>
            </div>
          </div>  

          <h2 class="sub-header">Achievements</h2>
          <div class="row">
            <div class="col-md-2" style="text-align: center;">
              <button type="button" class="btn btn-default btn-md" onclick="fetchAchievement()">
                <span class="glyphicon glyphicon-road"></span> Calculate