<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <link rel="stylesheet" type="text/css" href="mrk_smooth/ddsmoothmenu.css" /> <link rel="stylesheet" type="text/css" href="mrk_smooth/ddsmoothmenu-v.css" /> <script type="text/javascript" src="mrk_smooth/jquery.min.js"></script> <script type="text/javascript" src="mrk_smooth/ddsmoothmenu.js"> </script> <script type="text/javascript"> ddsmoothmenu.init({ mainmenuid: "smoothmenu2", //Menu DIV id orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v" classname: 'ddsmoothmenu-v', //class added to menu's outer DIV //customtheme: ["#804000", "#482400"], contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"] }) </script> </head> <body> <div id="smoothmenu2" class="ddsmoothmenu-v"> <ul> <!--level 1--> <?php include("connect.php"); $sl1="select idTL, TenTL from theloai"; $kq1=mysqli_query($link,$sl1); while($d1=mysqli_fetch_array($kq1)) { ?> <li><a href="<?php echo $d1['idTL'];?>"><?php echo $d1['TenTL'];?></a> <ul> <!--level 2--> <?php $sl2="select Ten, Url from loaitin where idTL=".$d1['idTL']; $kq2=mysqli_query($link,$sl2); while($d2=mysqli_fetch_array($kq2)) { ?> <li><a href="#"><?php echo $d2['Ten'];?></a></li> <?php }?> <!--level 2--> </ul> </li> <?php }?> <!--// level 1--> </ul> <br style="clear: left" /> </div> </body>
</html>
0 comments:
Post a Comment