- Beeznest
* @package chamilo.auth
*/
// Access rights: anonymous users can't do anything usefull here.
api_block_anonymous_users();
$stok = Security::get_token();
$courses_without_category = isset($courses_in_category[0]) ? $courses_in_category[0] : null;
?>
';
        if (isset($_GET['categoryid']) && $_GET['categoryid'] == $row['id']) { ?>
        
        
        
            
            
            
            
                    
                    
                    
            
                
           
            
                
                
                
            
                
            
            
             "javascript: if (!confirm('".addslashes(api_htmlentities(get_lang("CourseCategoryAbout2bedeleted"), ENT_QUOTES, api_get_system_encoding()))."')) return false;"), 22) ?>
            
        
';
        // Show the courses inside this category
        echo '';
        $number_of_courses = isset($courses_in_category[$row['id']]) ? count($courses_in_category[$row['id']]) : 0;
        $key = 0;
        if (!empty($courses_in_category[$row['id']])) {
            foreach ($courses_in_category[$row['id']] as $course) {
        ?>
            
                
                
                 
                
                 | 
                
                
                
                    
                
                
               
                
                
               
                  ';
        }
    }
}
echo Display::page_subheader(get_lang('NoCourseCategory'));
echo '';
// COURSES WITHOUT CATEGORY
if (!empty($courses_without_category)) {
    $number_of_courses = count($courses_without_category);
    $key = 0;
    foreach ($courses_without_category as $course) {
        echo '';
        ?>
        
            
             
            
         | 
        
            
            
             
             
             
            
            
                 
                  
            
                    
                    
                     
              
             | 
             
            
 
 |