Skip to main content

Posts

PHP#14MySQL#10 - Slider (Chính thức làm web)

<!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" dir="ltr"> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Featured Content Slider Using jQuery - Web Developer Plus Demos</title> <link rel="stylesheet" type="text/css" href="style.css" /> <script type="text/javascript" src="jquery.min.js" ></script> <script type="text/javascript" src="jquery-ui.min.js" ></script> <script type="text/javascript"> $(document).ready(function(){ $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 3000, true); }); </script> </head> <body> ...

PHP#14MySQL#10 - tintuc.sql - Menu (Chính thức làm web tin tức) tinxemnhieu.php , tinnoibat.php, tinmoi.php

//tinxemnhieu.php <style type="text/css"> <!-- #tinxemnhieu { width: 250px; border: 1px solid #0099CC; overflow: hidden; white-space: nowrap; } #tinxemnhieu h4 { background-color: #0099CC; margin-top: 0px; margin-bottom: 0px; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; color: #FFFF00; } #tinxemnhieu a { color: #CC3399; text-decoration: none; } #tinxemnhieu a:hover { color: #FFCC00; } #tinxemnhieu p { margin-top: 0px; margin-bottom: -1px; background-color: #FFFFCC; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; border: 1px solid #0099CC; } --> </style> <div id="tinxemnhieu"> <h4>TIN XEM NHIỀU</h4> <?php $link=@mysqli_connect("localhost","root","") or die("Không tìm thấy Sever"); mysqli_select_db($link,"tintuc") or die("Không tồn tại DB"); mysqli_query($link,"set names 'utf8'"); $sl="select * fr...

PHP#13MySQL#9 - TabsMenu

<!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> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="60" colspan="3">&nbsp;</td> </tr> <tr> <td colspan="3" bgcolor="#FF9933"> <!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1) --> <?php include("../connect.php"); $sl1="select idTL, TenTL from theloai"; $kq1=mysqli_query($link,$sl1); $i=0; while($d1=mysqli_fetch_array($kq1)) { if($i>0){echo "...

PHP#13MySQL#9 - GlossyAccordionMenu

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <script type="text/javascript" src="jquery-1.2.2.pack.js"></script> <script type="text/javascript" src="ddaccordion.js"> /*********************************************** * Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com) * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts * This notice must stay intact for legal use ***********************************************/ </script> <script type="text/javascript"> ddaccordion.init({ headerclass: "submenuheader", //Shared CSS class name of headers group contentclass: "submenu", //Shared CSS class name of contents group revealtype: "click", //Reveal 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="...

PHP#13MySQL#9 - sdmenu

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Slashdot's Menu</title> <link rel="stylesheet" type="text/css" href="sdmenu.css" /> <script type="text/javascript" src="sdmenu.js"> /*********************************************** * Slashdot Menu script- By DimX * Submitted to Dynamic Drive DHTML code library: http://www.dynamicdrive.com * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ </script> <script type="text/javascript"> // <![CDATA[ var myMenu; window.onload = function() { myMenu = new SDMenu("my_menu"); myMenu...

Sản phẩm mới, Sản phẩm xem nhiều, Tất cả sản phẩm, Phân trang-Phân nhóm

<!doctype html> <html> <head> <meta charset="utf-8"> <title>Mới Nhất, Xem Nhiều</title> <style> #ds_sp{ width:620px; margin:auto;} .sanpham{ width:120px; float:left; border:1px #2802E9 solid; margin-right:2px; margin-bottom:2px;} .tieude{ font-size:20px; font-weight:bold; background-color: #230DE0; color:#F5EFEF; margin-top:10px; margin-bottom:10px;} .ht{ font-size:20px; color:#E0070B; font-weight:bold;} </style> </head> <body> <?php $link=@mysqli_connect("localhost","root","") or die("Không tìm thấy Sever"); mysqli_select_db($link,"webtintuc") or die("Không tồn tại DB"); mysqli_query($link,"set names 'utf8'"); $sp=5*4; $sn=5; $sl="select TenSP, UrlHinh, Gia from webtm_sanpham"; $kq=mysqli_query($link,$sl); $tsp=mysqli_num_rows($kq); $tst=ceil($tsp/$sp); $tsn=ceil($tst/$sn); if(isset($_GET['p'])){$p=$_GET...