if (isset($_GET['type'])) { $type = $_GET['type']; } $selected = 0; if (isset($_GET['d'])) { $selected = $_GET['d']; } $listdanhmuc; switch ($type) { case 'giaoan': $theloai = "giáo án"; $listdanhmuc = DanhMuc::LayDanhMucGiaoAn(); break; case 'dethi': $theloai = "đề thi"; $listdanhmuc = DanhMuc::LayDanhMucDeThi(); break; default: $theloai = "ebook"; $listdanhmuc = DanhMuc::LayDanhMucEbook(); break; } ?> <div class="tab-left">Danh mục <?php echo $theloai; ?> </div> <ul class="cont-menu"> <?php foreach ($listdanhmuc as $dm) { echo '<li>';