|
|
|
ทำไมเปิดดีไซด์ใน dream8 เปิดแก้ตรงส่วนดีไซด์ได้ แต่ทำมัยเปิดใน deram cs3 ถึงเปิดไม่ได้คะ |
|
|
|
|
|
|
|
Syntax ของ HTML ผิดหรือเปล่าครับ
|
|
|
|
|
Date :
2012-02-15 17:37:27 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เท่าที่ดูก็ไม่นะคะ มันขึ้นแค่สีพื้นหลังกับแท็ค <div> ของ facebook ค่ะ อันนี้ค่ะ <div id="fb-root"></div> แล้วก็ <div class="promotin"></div> ขึ้นแค่ 3 อย่างค่ะ
Code (PHP)
<?php
session_start();
if((session_is_registered('sessAdminId')) || (session_is_registered('sessUser')) || (session_is_registered('sessOwner')) || (session_is_registered('sessMember'))){
echo "<meta http-equiv='refresh' content='0; url=main.php' />";
}
require_once('header.php');
$num_col = 4;
$ColumnStart=1;
?>
<!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" />
<link href="style/style.css" rel="stylesheet" type="text/css" />
<!------ slide image ------>
<link rel="stylesheet" href="themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="themes/pascal/pascal.css" type="text/css" media="screen" />
<link rel="stylesheet" href="themes/orman/orman.css" type="text/css" media="screen" />
<link rel="stylesheet" href="style/nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="style/style-nivo.css" type="text/css" media="screen" />
<!----- order product ----->
<script type="text/javascript" src="scripts/order-jquery.js"></script>
<script type="text/javascript" src="scripts/order.js"></script>
<!------ view image ------>
<link rel="stylesheet" href="style/ThickBox.css" type="text/css" media="screen" />
<script type="text/javascript" src="scripts/thickbox.js"></script>
<title>waan waan</title>
</head>
<body bgcolor="#f8b7b8">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/th_TH/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class="bgFull">
<table width="100%" border="0">
<tr align="center">
<td width="31%" valign="top"><table width="100%" border="0" align="center">
<tr>
<td align="left">
<div class="promotin"></div>
<script language="JavaScript1.2">
if (document.all)
scroller.stop()
</script>
<div class="dotted">
<div class="bg_left1">
<!--- promotion -->
<marquee id="scroller" onMouseover="javascript:scroller.stop()" onmouseout="javascript:scroller.start()" scrollAmount=2 direction=up width=390 height=100 >
<table width="100%" border="0">
<?php
require_once('class/class.promotion.php');
$result = $obPromotion->get_promotion();
while($E = mysql_fetch_array($result)){
?>
<tr>
<td><a href=""><div class="text"><?= "-"." ".$E['detail'];?></div></a></td>
</tr>
<? } ?>
</table>
</marquee>
</div>
</div>
<table width="100%" border="0" align="center">
<tr>
<td> <p> </p></td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td align="center">หมวดสินค้า</td>
</tr>
</table>
<div class="dotted">
<div class="bg_left1">
<table width="100%" border="0">
<?php
require_once('class/class.category.php');
//$i=0;
$result = $obCate->getTyep();
while($R = mysql_fetch_array($result)){
$id = $R['idCate'];
?>
<tr>
<td>
<div id="animateList">
<a href="product.php?id=<?=$id;?>"><?=$R['nameCate']?></a>
</div>
</td>
</tr>
<? } ?>
</table>
</div>
</div>
<table width="100%" border="0">
<tr>
<td> </td>
</tr>
</table>
<div class="calenda">
<table width="69%" border="0" align="center">
<tr>
<td><p>
<embed src="http://www.123mycodes.com/flash/calendar/hearts/4.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="280" height="215"></embed>
</p></td>
</tr>
</table>
</div>
<table width="100%" border="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td>
<div class="bg_left1">
<div class="facebook">
<div class="fb-like" data-send="true" data-width="350" data-show-faces="true"></div>
<div class="fb-subscribe" data-href="https://www.facebook.com/SweetyLensShop" data-show-faces="true" data-width="350"></div>
<div class="fb-comments" data-href="https://www.facebook.com/SweetyLensShop" data-num-posts="2" data-width="350"></div>
</div>
</div>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td>
</td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
</table> </td>
<td width="1%" valign="top"> </td>
<div class="right">
<td width="68%" valign="top">
<table width="100%" border="0">
<tr>
<td>
<div id="wrapper">
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<!----<img src="images/slide/slide1.jpg" />---->
<img src="images/slide/toystory.jpg" />
<img src="images/slide/up.jpg" />
<img src="images/slide/walle.jpg" data-transition="slideInLeft" />
<img src="images/slide/nemo.jpg" />
</div>
</div>
</div>
<script type="text/javascript" src="scripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td>
<table width="100%" border="0">
<tr align="center" valign="top">
<td>
<table width="50%" border="1" align="left">
<tr>
<td>แจ้งหมายเลขพัสดุ</td>
</tr>
</table>
<p> </p>
<p> </p>
<div class="dotted">
<div class="bg_left1">
<table width="100%" border="0">
<tr>
<td>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
</table>
</div>
</div>
</td>
<td>
<table width="100%" border="1">
<tr>
<td> </td>
</tr>
</table>
<div class="dotted">
<div class="bg_left1">
<table width="100%" border="1">
<tr>
<td><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
</table>
</div>
</div>
</td>
<td>
<table width="100%" border="1">
<tr>
<td> </td>
</tr>
</table>
<div class="dotted">
<div class="bg_left1">
<table width="100%" border="1">
<tr>
<td><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td align="center"><p> </p>
<p>สินค้าขายดี</p></td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td align="left" valign="top">
<table width="221" border="0" align="center">
<tr>
<?php
//iframe
//<a href="ajax.PHP?keepThis=true&TB_iframe=true&height=250&width=400" title="add a caption to title attribute / or leave blank" class="thickbox">Example 1</a>
//php
//<a href="images/single.jpg" title="add a caption to title attribute / or leave blank" class="thickbox"><img src="images/single_t.jpg" alt="Single Image"/></a>
//<a href="ajax.PHP?height=220&width=400" class="thickbox" title="add a caption to title attribute / or leave blank">No-scroll content</a>
/*
<a href="pic/<?=$R['pic'];?>" title="<?=$R['description']?>" class="thickbox"> <img border="1" src="pic/<?=$R['pic'];?>" width="150" height="180" class="productImg" /></a>
<?php echo '<br />'.$R['namepro']?> <br />
<?= $R['price']." "."บาท"?><br />
<a href="#" onclick="add2cart(this,<?=$R['idpro']?>); return false;"> <img src="images/c_c.png" title="หยิบใส่ตะกร้า" width="24" height="24" border="0" /></a>
*/
require('class/class.product.php');
$result = $obProduct->get_product_by_rating();
while($R = mysql_fetch_array($result)){
?>
<td width="271" align="center" class="productImg">
<a href="pic/<?=$R['pic'];?>" title="<?=$R['description']?>" class="thickbox"> <img border="1" src="pic/<?=$R['pic'];?>" width="165" height="200" class="productImg" /></a>
<?php echo '<br />'.$R['namepro']?> <br />
<?= $R['price']." "."บาท"?><br />
<a href="#" onclick="add2cart(this,<?=$R['idpro']?>); return false;"> <img src="images/c_c.png" title="หยิบใส่ตะกร้า" width="24" height="24" border="0" /></a>
</td>
<?php
if($ColumnStart==$num_col){//หากคอลัมน์เท่ากับจำนวนคอลัมน์ที่กำหนดไว้
echo '</tr><tr>';//สร้างแท็ก </tr> ปิด เพื่อจบแถว และสร้าง <tr>เพื่อสร้างแถวใหม่
$ColumnStart=0;//เซตเป็น 0 เพื่อเริ่มนับคอลัมน์ใหม่
}
$ColumnStart++;//เพิ่มคอลัมน์ทีละ1คอลัมน์
}
?>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td align="center"><img src="images/main_09.jpg" /></td>
</tr>
</table>
<?php
$result = $obCate->getTyep();
$i=0;
while($E = mysql_fetch_array($result)){
$id = $E['idCate'];
?>
<table width="100%" border="0">
<tr>
<td>
<div id="animateList">
<a href="product.php?id=<?=$id;?>"><?=$E['nameCate']?></a>
</div>
</td>
</tr>
</table>
<!------------------------------------------------------------------------------------------------------------------------------------------->
<table width="221" border="0" align="center">
<tr>
<?php
$obProduct->id = $id;
$result2 = $obProduct->get_ProductBytype();
$num = mysql_num_rows($result2);
if($num == 0){
echo "<font color = red>กรุณาเลือกหมวดสินค้า หรือ หมวดสินค้านี้ไม่มีสินค้า</font>";
}
while($R = mysql_fetch_array($result2)){
?>
<td width="271" align="center">
<a href="pic/<?=$R['pic'];?>" title="<?=$R['description']?>" class="thickbox">
<img border="1" src="pic/<?=$R['pic'];?>" width="165" height="200" class="productImg" /></a>
<?php echo '<br />'.$R['namepro']?> <br /><?= $R['price']." "."บาท"?><br />
<a href="#" onclick="add2cart(this,<?=$R['idpro']?>); return false;"> <img src="images/c_c.png" title="หยิบใส่ตะกร้า" width="24" height="24" border="0" /></a>
</td>
<?php
//if($ColumnStart==$num_col){
// echo '</tr><tr>';
// $ColumnStart=0;
//}
//$ColumnStart++;
}
?>
</tr>
</table>
<!------------------------------------------------------------------------------------------------------------------------------------------->
<?
$i++;
}
?>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
</table>
</div>
<div class="footer">
<table width="100%" border="1">
<tr>
<td align="center">Footer</td>
</tr>
</table>
</div>
</body>
</html>
|
|
|
|
|
Date :
2012-02-15 17:43:18 |
By :
teukkead |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|