Skip to main content

PHP#13MySQL#9 - smoothmenu

<!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> 

Comments

Popular posts from this blog

PHP#33MySQL#29 - Đếm lượt truy cập (KẾT THÚC KHÓA HỌC)

//hitcounter.php <?php session_start();  ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <?php  include("../connect.php"); //cập nhật số luowhtj truy cập: $sl="update counter set cnt=cnt+1"; mysqli_query($link,$sl); //Lấy dữ liệu số lượt truy cập để hiển thị ra web: $sl2="select * from counter"; $kq=mysqli_query($link,$sl2); $d=mysqli_fetch_array($kq); //Định dạng: $chuoi=str_pad($d['cnt'],6,"0",STR_PAD_LEFT); $luottrycap=""; for($i=0;$i<strlen($chuoi);$i++) { $tam=substr($chuoi,$i,1); $luottrycap.="<img src='images/$tam.png'/>"; } /*-Khi user truy cập vào website: +lần đầu tuy cập: Lưu thông tin của user lên csdl +Sau lần đầu tiên: cập nhtaaj lastvisit - Xóa các dòng dữ liệu quá 1 phút (Quy ước thời gian để khẳng định online hay offline: 1 phút) - Thống kê số liệu người dùng o...

2 (giao diện Visual C#) Solution Explorer

Bài 2 - SOME OTHER TIME - Vào dịp khác