$user = $_SESSION['user_name']; $user_view = $_SESSION['user_name_view']; echo 'Chào: <a href="thong-tin-hoc-vien/">' . $user_view . '</a> | <a href="thong-tin-hoc-vien/logout/">Logout</a>'; } ?> </div> </div> <div id="left"> <h2 class="home_about">CÁC CHƯƠNG TRÌNH TIẾNG ANH</h2> <div id="home_chuongtrinh"> <?php $qr = $tc->menu_type(3, 0, 'vi'); $row = mysql_fetch_array($qr); $id_chuongtrinh = $row['id']; $i = 0; $qr = $tc->home_chuongtrinh($id_chuongtrinh); while ($row_ct = mysql_fetch_array($qr)) { $i++; if ($row_ct['name_rewrite'] != $dt) { $style = ''; } else { $style = 'style="color:#DB0000"'; } if ($row_ct['other2'] == 1) { $new = '<img src="images/new.gif" alt="new" />'; } else { $new = ''; } if ($i % 2 == 1) { $str_l .= '<li><a href="' . $row['url'] . $row_ct['name_rewrite'] . '.html" ' . $style . '>' . $row_ct['name'] . $new . '</a></li>'; } else {