"; echo "
"; ?> "; while($category = @mysqli_fetch_array($result)) { $count = count_posts($category['id']); ?> '>
'>

Beinhaltet Videos

%

"; echo "
"; echo ""; } function get_posts($category_id){ $if_query = "learning_unit_mandant_link.learning_unit_id IS NOT NULL AND main_mandant_id = ".$GLOBALS['main_contact']['current_mandant_id']; $query = "SELECT learning_unit.* FROM learning_unit LEFT JOIN learning_unit_link ON learning_unit_link.learning_unit_id = learning_unit.id LEFT JOIN learning_unit_mandant_link ON learning_unit.id = learning_unit_mandant_link.learning_unit_id LEFT JOIN learning_unit_contact ON learning_unit_contact.learning_unit_id = learning_unit.id WHERE ((".$if_query.") OR learning_unit_mandant_link.learning_unit_id IS NULL) AND learning_unit_link.learning_category_id = ".$category_id." AND learning_unit_contact.active = 1 AND main_contact_id = ".$GLOBALS['main_contact']['id']; // var_dump($query); $result = @mysqli_query($GLOBALS['mysql_con'], $query); if (@mysqli_num_rows($result) == 0) { return; } $query_category = "SELECT * FROM learning_category WHERE id = ".$category_id; $result_category = @mysqli_query($GLOBALS['mysql_con'], $query_category); $category = @mysqli_fetch_array($result_category); echo "
"; echo "
"; ?>

"; while($post = @mysqli_fetch_array($result)) { $link = get_link_to_navigation(7) . get_collection_rewrite($post['title'], $post['id']); ?>

"; echo "
"; echo "
"; } echo "
"; if(isset($_GET["category"]) || isset($_GET['search'])) { echo "
"; echo ""; echo "
"; } if(!isset($_GET['search'])){ get_posts($category_id); get_categories($category_id); } echo "
"; } catch (\Throwable $th) { echo $th; }