ช่วยดูโค็ตการล็อกอินให้หน่อยครับ <โค็ตยาวไปหน่อยนะครับ>
หน้าประกาศ
<?
ob_start();
?>
<!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>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function printDate()
{
var today = new Date();
var day=today.getDate();
var month = today.getMonth() + 1;
var year = today.getFullYear().toString();
var box=document.forms[0].DateBox;//this is where we want to print the date
if ( ( month /10 ) < 1 )
{
month=("0" + month).toString(); //add the leading 0 -- looks more professional
}
if ( (day/10)<1)
{
day=("0" + today.getDate()).toString();//add the leading 0 -- looks better
}
box.value=month + " - " + day + " - " + year;
}
function printTime()
{
var box = document.forms[0].DateBox; //this is where we want to print the date
var thetime=new Date();
if (thetime.getMinutes() / 10 <1 )
{
box.value=thetime.getHours() + " : " + "0" + thetime.getMinutes();
}
else
{
box.value=thetime.getHours() + " : " + thetime.getMinutes();
}
}
// End -->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>###---THAIWATERFITER---###</title>
<style type="text/css">
<!--
body {
background-image: url();
text-align: center;
}
.Font10 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
}
.price {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 12px;
color: #F00;
}
.right_menu {
font-family: "Times New Roman", Times, serif;
font-size: 13px;
font-style: normal;
font-weight: normal;
color: #00C;
}
.menu_1 {
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
.font18 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #00F;
}
.font18 strong {
font-size: 14px;
}
-->
</style>
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Drew Diller | http://www.dillerdesign.com/Licensed under: MIT License
*/
/**
* DD_roundies, this adds rounded-corner CSS in standard browsers and VML sublayers in IE that accomplish a similar appearance when comparing said browsers.
* Author: Drew Diller
* URL: http://www.dillerdesign.com/experiment/DD_roundies/
* Version: 0.0.1a / December 2, 2008
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_roundies/#license
*
* Usage:
* DD:roundtangle.addRule('#doc .container', 5); // selector and radius
* DD:roundtangle.addRule('.box', 5, true); // selector, radius, and optional addition of border-radius code for standard browsers.
**/
var DD_roundies = {
ns: 'DD_roundies',
createVmlNameSpace: function() { /* enable VML */
if (document.namespaces && !document.namespaces[this.ns]) {
document.namespaces.add(this.ns, 'urn:schemas-microsoft-com:vml');
}
},
createVmlStyleSheet: function() { /* style VML, enable behaviors */
/*
Just in case lots of other developers have added
lots of other stylesheets using document.createStyleSheet
and hit the 31-limit mark, let's not use that method!
further reading: http://msdn.microsoft.com/en-us/library/ms531194(VS.85).aspx
*/
var style = document.createElement('style');
document.documentElement.firstChild.insertBefore(style, document.documentElement.firstChild.firstChild);
if (style.styleSheet) { /* IE */
var styleSheet = style.styleSheet;
styleSheet.addRule(this.ns + '\\:*', '{behavior:url(#default#VML)}');
styleSheet.addRule(this.ns + '\\:shape', 'position:absolute; left:0px; top:0px; z-index:-1;');
this.styleSheet = styleSheet;
}
else {
this.styleSheet = style;
}
},
/**
* This is the method to use in a document.
* @param {String} selector - REQUIRED - a CSS selector, such as '#doc .container'
* @param {Integer} radius - REQUIRED - the desired radius for the box corners
* @param {Boolean} standards - OPTIONAL - true if you also wish to output -moz-border-radius/-webkit-border-radius/border-radius declarations
**/
addRule: function(selector, radius, standards) {
if (this.styleSheet.addRule) { /* IE */
this.styleSheet.addRule(selector, 'behavior:expression(DD_roundies.roundifyElement.call(this, ' + radius + '))'); /* seems to execute the function without adding it to the stylesheet - interesting... */
}
else {
this.styleSheet.appendChild(document.createTextNode(selector + ' {border-radius:' + radius + 'px; -moz-border-radius:' + radius + 'px; -webkit-border-radius:' + radius + 'px;}'));
}
},
roundifyElement: function(rad) {
this.style.behavior = 'none';
this.style.zoom = 1;
if (this.currentStyle.position == 'static') {
this.style.position = 'relative';
}
this.vml = document.createElement(DD_roundies.ns + ':shape');
/* methods */
var self = this;
this.interceptPropertyChanges = function() {
switch (event.propertyName) {
case 'style.border':
case 'style.borderWidth':
case 'style.padding':
self.applyVML.call(self);
break;
case 'style.borderColor':
self.updateVmlStrokeColor.call(self);
break;
case 'style.backgroundColor':
self.updateVmlFill.call(self);
};
};
this.applyVML = function() {
this.runtimeStyle.cssText = '';
this.updateVmlFill();
this.updateVmlStrokeWeight();
this.updateVmlStrokeColor();
this.updateVmlDimensions();
this.updateVmlPath();
this.hideSourceBorder();
};
this.hideSourceBorder = function() {
this.runtimeStyle.border = 'none';
var sides = ['Top', 'Left', 'Right', 'Bottom'];
for (var i=0; i<4; i++) {
this.runtimeStyle['padding' + sides[i]] = parseInt(this.currentStyle['padding' + sides[i]]) + parseInt(this.realBorderWidth) + 'px';
}
};
this.updateVmlStrokeWeight = function() {
this.realBorderWidth = parseInt(this.currentStyle.borderWidth, 10);
if (this.realBorderWidth.toString() == 'NaN') {
this.realBorderWidth = 0;
}
this.halfRealBorderWidth = Math.floor(this.realBorderWidth/2);
this.vml.strokeweight = this.realBorderWidth + 'px';
this.vml.stroked = !(this.realBorderWidth === 0);
};
this.updateVmlStrokeColor = function() {
this.vml.strokecolor = this.currentStyle.borderColor;
};
this.updateVmlFill = function() {
this.runtimeStyle.backgroundColor = '';
if (this.currentStyle && (this.currentStyle.backgroundImage != 'none' || (this.currentStyle.backgroundColor && this.currentStyle.backgroundColor != 'transparent'))) {
this.vml.filled = true;
if (!this.vml.filler) {
this.vml.filler = document.createElement(DD_roundies.ns + ':fill');
this.vml.appendChild(this.vml.filler);
}
if (this.currentStyle.backgroundImage) {
var bg = this.currentStyle.backgroundImage;
this.vml.filler.src = bg.substr(5, bg.lastIndexOf('")')-5);
this.vml.filler.type = 'tile';
}
if (this.currentStyle.backgroundColor) {
this.vml.filler.color = this.currentStyle.backgroundColor;
}
this.runtimeStyle.background = 'none';
}
else {
this.vml.filled = false;
}
};
this.updateVmlDimensions = function() {
if (!this.dim) {
this.dim = {};
}
this.dim.w = this.offsetWidth;
this.dim.h = this.offsetHeight;
this.vml.style.width = this.dim.w;
this.vml.style.height = this.dim.h;
this.vml.coordorigin = -this.halfRealBorderWidth + ' ' + -this.halfRealBorderWidth;
this.vml.coordsize = (this.dim.w+this.realBorderWidth) + ' '+ (this.dim.h+this.realBorderWidth);
};
this.updateVmlPath = function() {
this.vml.path = 'm0,'+rad+'qy'+rad+',0l'+(this.dim.w-rad)+',0qx'+this.dim.w+','+rad+'l'+this.dim.w+','+(this.dim.h-rad)+'qy'+(this.dim.w-rad)+','+this.dim.h+'l'+rad+','+this.dim.h+'qx0,'+(this.dim.h-rad)+'xe';
};
this.handlePseudoHover = function() {
setTimeout(function() { /* wouldn't work as intended without setTimeout */
self.runtimeStyle.backgroundColor = '';
self.updateVmlFill.call(self);
self.updateVmlStrokeColor.call(self);
}, 1);
};
/* set up element */
this.insertBefore(this.vml, this.firstChild);
this.applyVML();
/* add change handlers */
if (this.nodeName == 'A') {
this.attachEvent('onmouseleave', this.handlePseudoHover);
this.attachEvent('onmouseenter', this.handlePseudoHover);
}
this.attachEvent('onpropertychange', this.interceptPropertyChanges);
this.attachEvent('onresize', function() {
self.updateVmlDimensions.call(self);
self.updateVmlPath.call(self);
});
}
};
DD_roundies.createVmlNameSpace();
DD_roundies.createVmlStyleSheet();
</script>
<script type="text/javascript">
<!--
DD_roundies.addRule('.littleDD', 15);
//-->
</script>
<style>
.littleDD {
padding:15px;
background:#FFD;
border:1px solid #333;
}
.littleDD li {
padding-top:2px;
padding-bottom:2px;
}
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body onLoad="show_clock(); return printDate()">
<table width="10%" border="0">
<tr>
<td width="1%" > </td>
<td width="10%" bordercolor="#0776dd" bordercolordark="#0033FF" border="1" bgcolor="#0776dd"><table width="100%" border="0">
<tr>
<td height="21" width="1000" bgcolor="#FFFFFF"><table width="1000" height="50" border="0" bgcolor="#00FFFF">
<tr>
<td><img src="../pic/Head_Beer/Head1.jpg" width="1000" height="60" border="0" usemap="#Map" /></td>
</tr>
</table>
<table width="1000" height="245" border="0">
<tr bgcolor="#00FFFF">
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','240','src','../pic/Head_Beer/Beer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../pic/Head_Beer/Beer' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="240">
<param name="movie" value="../pic/Head_Beer/Beer.swf" />
<param name="quality" value="high" />
<embed src="../pic/Head_Beer/Beer.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="240"></embed>
</object></noscript></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0">
<tr>
<td width="16%" align="center" valign="top" background="../pic/UnderTheSea-background.jpg"><!-- นำ CODE ไปตกแต่งแก้ไขรูปแบบได้แล้วแต่คุณเลยครับ -->
<script src="http://www.clocklink.com/embed.js"></script><script type="text/javascript" language="JavaScript">obj=new Object;obj.clockfile="0001-blue.swf";obj.TimeZone="ICT";obj.width=150;obj.height=150;obj.Place="";obj.wmode="transparent";showClock(obj);</script>
<form name="stats">
<input type="text" readonly="readonly" name="DateBox" size="11" onmouseout="printDate();">
</input>
</form>
<p><script language="javascript" src="js/liveclock.js"></script></p>
<hr />
<div class="littleDD">
<table width="110" height="52">
<tr>
<td align="left" class="right_menu">มือถือ</td>
<td align="right" class="right_menu">081-414-7292,</td>
</tr>
<tr>
<td align="left" class="right_menu">089-113-5388,</td>
<td align="right" class="right_menu">081-551-5028</td>
</tr>
<tr>
<td align="left" class="right_menu">โทร</td>
<td align="right" class="right_menu">02-426-4748</td>
</tr>
<tr>
<td colspan="2" align="left" class="right_menu">e-mail</td>
</tr>
<tr>
<td colspan="2" align="left" class="right_menu" ><font color="#FF0000"> [email protected] </font></td>
</tr>
</table>
</div>
<hr /> </td>
<td width="84%" align="center" valign="top" bgcolor="#FFFFFF"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><form id="form1" name="form1" method="post" action="">
<p><img src="../pic/Head_Beer/pure4.jpg" width="300" height="30" /></p>
<p>
<?php
if(empty($_POST['username']) || empty($_POST['password'])){
echo"<b>...:::กรุณากรอกข้อมูลให้ก่อนทำการเข้าสู่ระบบ:::...</b><br><br>";
echo"<a href=\"customer_old.php\">กรุณาลองใหม่อีกครั้ง</a>";
exit;
}
else{
$username=$_POST['username'];
$password=$_POST['password'];
$customer_name=$_POST['customer_name'];
$customer_id=$_POST['customer_id'];
$conn=mysql_connect("localhost","root","mysql") or die("could not connect");
mysql_select_db("project") or die ("could not select database");
mysql_query("SET NAMES UTF8");
$query="select * from customer where username='$username' and password='$password' " ;
$result = mysql_query($query);
while($row = mysql_fetch_array($result)) {
$customer_name = $row["customer_name"];
$customer_id = $row["customer_id"];
}
$result=mysql_query($query) or die(mysql_error());
$count=mysql_num_rows($result);
if($count==1){
echo"<b>ยินดีต้อนรับเข้าสู่ระบบ<br> คุณ $customer_name </b><br>";
echo"<b>รหัสลูกค้าของท่านคือ $customer_id <b><br>";
$_SESSION['login']= $username;
$_SESSION['password']= $password;
$_SESSION['customer_name'] = $customer_name;
$_SESSION['customer_id'] = $customer_id;
}
else{
echo"<b>เกิดข้อผิดพลาดในการเข้าสู่ระบบของ $username<b><br><br>";
echo"<a href=\"customer_old.php\">กรุณาลองใหม่อีกครั้ง</a>";
}
}
?>
</p>
<p><a href="logout.php">ออกจากระบบ</a></p>
<p align="right"><img src="../pic/Head_Beer/pure13.jpg" width="150" height="50" border="0" usemap="#Map2" /></p>
</form>
<p align="left"> </p>
<label> </label>
<label></label>
<p>
<label></label>
</p>
<p> </p>
<p> </p>
<p>
<label></label>
<label></label>
</p>
</form>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table></td>
</tr>
<tr>
<td class="menu_1" align="center">ร้านไทยน้ำกรอง 29/38 หมู่บ้านอลิชา 1 หมู่ 2 แขวงบางมด เขตทุ่งครุ กทม. 10140 โทร 02-426-4748 มือถือ 081-414-7292</td>
</tr>
</table></td>
<td width="12%" > </td>
</tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="34,7,116,50" href="../index.html" />
<area shape="rect" coords="134,8,193,52" href="product.html" />
<area shape="rect" coords="212,7,322,54" href="order.html" />
<area shape="rect" coords="339,10,471,55" href="payment.html" />
<area shape="rect" coords="489,11,650,48" href="logistic.html" />
<area shape="rect" coords="665,4,764,50" href="aboutus.html" />
<area shape="rect" coords="787,12,874,53" href="contact.html" />
</map>
<map name="Map2" id="Map2"><area shape="rect" coords="3,4,146,46" href="ordercustomer.php" />
</map></body>
</html>
โค็ตอยู่ประมาณบรรทัด 350-390 ที่ก็อบมาหมด คืออยากให้รู้ว่าผมว่าตำแหน่งถูกไหมครับ หน้านี้ไม่มี error ไรครับ
แสดงชื่อ
<?php
session_start();
ob_start();
?>
<!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>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function printDate()
{
var today = new Date();
var day=today.getDate();
var month = today.getMonth() + 1;
var year = today.getFullYear().toString();
var box=document.forms[0].DateBox;//this is where we want to print the date
if ( ( month /10 ) < 1 )
{
month=("0" + month).toString(); //add the leading 0 -- looks more professional
}
if ( (day/10)<1)
{
day=("0" + today.getDate()).toString();//add the leading 0 -- looks better
}
box.value=month + " - " + day + " - " + year;
}
function printTime()
{
var box = document.forms[0].DateBox; //this is where we want to print the date
var thetime=new Date();
if (thetime.getMinutes() / 10 <1 )
{
box.value=thetime.getHours() + " : " + "0" + thetime.getMinutes();
}
else
{
box.value=thetime.getHours() + " : " + thetime.getMinutes();
}
}
// End -->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>###---THAIWATERFITER---###</title>
<style type="text/css">
<!--
body {
background-image: url();
text-align: center;
}
.Font10 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
}
.price {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 12px;
color: #F00;
}
.right_menu {
font-family: "Times New Roman", Times, serif;
font-size: 13px;
font-style: normal;
font-weight: normal;
color: #00C;
}
.menu_1 {
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
.font18 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #00F;
}
.font18 strong {
font-size: 14px;
}
-->
</style>
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Drew Diller | http://www.dillerdesign.com/Licensed under: MIT License
*/
/**
* DD_roundies, this adds rounded-corner CSS in standard browsers and VML sublayers in IE that accomplish a similar appearance when comparing said browsers.
* Author: Drew Diller
* URL: http://www.dillerdesign.com/experiment/DD_roundies/
* Version: 0.0.1a / December 2, 2008
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_roundies/#license
*
* Usage:
* DD:roundtangle.addRule('#doc .container', 5); // selector and radius
* DD:roundtangle.addRule('.box', 5, true); // selector, radius, and optional addition of border-radius code for standard browsers.
**/
var DD_roundies = {
ns: 'DD_roundies',
createVmlNameSpace: function() { /* enable VML */
if (document.namespaces && !document.namespaces[this.ns]) {
document.namespaces.add(this.ns, 'urn:schemas-microsoft-com:vml');
}
},
createVmlStyleSheet: function() { /* style VML, enable behaviors */
/*
Just in case lots of other developers have added
lots of other stylesheets using document.createStyleSheet
and hit the 31-limit mark, let's not use that method!
further reading: http://msdn.microsoft.com/en-us/library/ms531194(VS.85).aspx
*/
var style = document.createElement('style');
document.documentElement.firstChild.insertBefore(style, document.documentElement.firstChild.firstChild);
if (style.styleSheet) { /* IE */
var styleSheet = style.styleSheet;
styleSheet.addRule(this.ns + '\\:*', '{behavior:url(#default#VML)}');
styleSheet.addRule(this.ns + '\\:shape', 'position:absolute; left:0px; top:0px; z-index:-1;');
this.styleSheet = styleSheet;
}
else {
this.styleSheet = style;
}
},
/**
* This is the method to use in a document.
* @param {String} selector - REQUIRED - a CSS selector, such as '#doc .container'
* @param {Integer} radius - REQUIRED - the desired radius for the box corners
* @param {Boolean} standards - OPTIONAL - true if you also wish to output -moz-border-radius/-webkit-border-radius/border-radius declarations
**/
addRule: function(selector, radius, standards) {
if (this.styleSheet.addRule) { /* IE */
this.styleSheet.addRule(selector, 'behavior:expression(DD_roundies.roundifyElement.call(this, ' + radius + '))'); /* seems to execute the function without adding it to the stylesheet - interesting... */
}
else {
this.styleSheet.appendChild(document.createTextNode(selector + ' {border-radius:' + radius + 'px; -moz-border-radius:' + radius + 'px; -webkit-border-radius:' + radius + 'px;}'));
}
},
roundifyElement: function(rad) {
this.style.behavior = 'none';
this.style.zoom = 1;
if (this.currentStyle.position == 'static') {
this.style.position = 'relative';
}
this.vml = document.createElement(DD_roundies.ns + ':shape');
/* methods */
var self = this;
this.interceptPropertyChanges = function() {
switch (event.propertyName) {
case 'style.border':
case 'style.borderWidth':
case 'style.padding':
self.applyVML.call(self);
break;
case 'style.borderColor':
self.updateVmlStrokeColor.call(self);
break;
case 'style.backgroundColor':
self.updateVmlFill.call(self);
};
};
this.applyVML = function() {
this.runtimeStyle.cssText = '';
this.updateVmlFill();
this.updateVmlStrokeWeight();
this.updateVmlStrokeColor();
this.updateVmlDimensions();
this.updateVmlPath();
this.hideSourceBorder();
};
this.hideSourceBorder = function() {
this.runtimeStyle.border = 'none';
var sides = ['Top', 'Left', 'Right', 'Bottom'];
for (var i=0; i<4; i++) {
this.runtimeStyle['padding' + sides[i]] = parseInt(this.currentStyle['padding' + sides[i]]) + parseInt(this.realBorderWidth) + 'px';
}
};
this.updateVmlStrokeWeight = function() {
this.realBorderWidth = parseInt(this.currentStyle.borderWidth, 10);
if (this.realBorderWidth.toString() == 'NaN') {
this.realBorderWidth = 0;
}
this.halfRealBorderWidth = Math.floor(this.realBorderWidth/2);
this.vml.strokeweight = this.realBorderWidth + 'px';
this.vml.stroked = !(this.realBorderWidth === 0);
};
this.updateVmlStrokeColor = function() {
this.vml.strokecolor = this.currentStyle.borderColor;
};
this.updateVmlFill = function() {
this.runtimeStyle.backgroundColor = '';
if (this.currentStyle && (this.currentStyle.backgroundImage != 'none' || (this.currentStyle.backgroundColor && this.currentStyle.backgroundColor != 'transparent'))) {
this.vml.filled = true;
if (!this.vml.filler) {
this.vml.filler = document.createElement(DD_roundies.ns + ':fill');
this.vml.appendChild(this.vml.filler);
}
if (this.currentStyle.backgroundImage) {
var bg = this.currentStyle.backgroundImage;
this.vml.filler.src = bg.substr(5, bg.lastIndexOf('")')-5);
this.vml.filler.type = 'tile';
}
if (this.currentStyle.backgroundColor) {
this.vml.filler.color = this.currentStyle.backgroundColor;
}
this.runtimeStyle.background = 'none';
}
else {
this.vml.filled = false;
}
};
this.updateVmlDimensions = function() {
if (!this.dim) {
this.dim = {};
}
this.dim.w = this.offsetWidth;
this.dim.h = this.offsetHeight;
this.vml.style.width = this.dim.w;
this.vml.style.height = this.dim.h;
this.vml.coordorigin = -this.halfRealBorderWidth + ' ' + -this.halfRealBorderWidth;
this.vml.coordsize = (this.dim.w+this.realBorderWidth) + ' '+ (this.dim.h+this.realBorderWidth);
};
this.updateVmlPath = function() {
this.vml.path = 'm0,'+rad+'qy'+rad+',0l'+(this.dim.w-rad)+',0qx'+this.dim.w+','+rad+'l'+this.dim.w+','+(this.dim.h-rad)+'qy'+(this.dim.w-rad)+','+this.dim.h+'l'+rad+','+this.dim.h+'qx0,'+(this.dim.h-rad)+'xe';
};
this.handlePseudoHover = function() {
setTimeout(function() { /* wouldn't work as intended without setTimeout */
self.runtimeStyle.backgroundColor = '';
self.updateVmlFill.call(self);
self.updateVmlStrokeColor.call(self);
}, 1);
};
/* set up element */
this.insertBefore(this.vml, this.firstChild);
this.applyVML();
/* add change handlers */
if (this.nodeName == 'A') {
this.attachEvent('onmouseleave', this.handlePseudoHover);
this.attachEvent('onmouseenter', this.handlePseudoHover);
}
this.attachEvent('onpropertychange', this.interceptPropertyChanges);
this.attachEvent('onresize', function() {
self.updateVmlDimensions.call(self);
self.updateVmlPath.call(self);
});
}
};
DD_roundies.createVmlNameSpace();
DD_roundies.createVmlStyleSheet();
</script>
<script type="text/javascript">
<!--
DD_roundies.addRule('.littleDD', 15);
//-->
</script>
<style>
.littleDD {
padding:15px;
background:#FFD;
border:1px solid #333;
}
.littleDD li {
padding-top:2px;
padding-bottom:2px;
}
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body onLoad="show_clock(); return printDate()">
<table width="10%" border="0">
<tr>
<td width="1%" > </td>
<td width="10%" bordercolor="#0776dd" bordercolordark="#0033FF" border="1" bgcolor="#0776dd"><table width="100%" border="0">
<tr>
<td height="21" width="1000" bgcolor="#FFFFFF"><table width="1000" height="50" border="0" bgcolor="#00FFFF">
<tr>
<td><img src="../pic/Head_Beer/Head1.jpg" width="1000" height="60" border="0" usemap="#Map" /></td>
</tr>
</table>
<table width="1000" height="245" border="0">
<tr bgcolor="#00FFFF">
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','240','src','../pic/Head_Beer/Beer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../pic/Head_Beer/Beer' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="240">
<param name="movie" value="../pic/Head_Beer/Beer.swf" />
<param name="quality" value="high" />
<embed src="../pic/Head_Beer/Beer.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="240"></embed>
</object></noscript></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0">
<tr>
<td width="16%" align="center" valign="top" background="../pic/UnderTheSea-background.jpg"><!-- นำ CODE ไปตกแต่งแก้ไขรูปแบบได้แล้วแต่คุณเลยครับ -->
<script src="http://www.clocklink.com/embed.js"></script><script type="text/javascript" language="JavaScript">obj=new Object;obj.clockfile="0001-blue.swf";obj.TimeZone="ICT";obj.width=150;obj.height=150;obj.Place="";obj.wmode="transparent";showClock(obj);</script>
<form name="stats">
<input type="text" readonly="readonly" name="DateBox" size="11" onmouseout="printDate();">
</input>
</form>
<p><script language="javascript" src="js/liveclock.js"></script></p>
<hr />
<div class="littleDD">
<table width="110" height="52">
<tr>
<td align="left" class="right_menu">มือถือ</td>
<td align="right" class="right_menu">081-414-7292,</td>
</tr>
<tr>
<td align="left" class="right_menu">089-113-5388,</td>
<td align="right" class="right_menu">081-551-5028</td>
</tr>
<tr>
<td align="left" class="right_menu">โทร</td>
<td align="right" class="right_menu">02-426-4748</td>
</tr>
<tr>
<td colspan="2" align="left" class="right_menu">e-mail</td>
</tr>
<tr>
<td colspan="2" align="left" class="right_menu" ><font color="#FF0000"> [email protected] </font></td>
</tr>
</table>
</div>
<hr /> </td>
<td width="84%" bgcolor="#FFFFFF"><p align="left"><img src="../pic/Head_Beer/pure4.jpg" width="300" height="30" /></p>
<label> </label>
<label></label>
<p>
<label></label>
<label class="menu_1">
<div align="left"><strong>วันที่ :
<input name="textfield" type="text" id="textfield" value="<? $today_date=date("d-M-Y");
echo "$today_date";
?>" size="18" readonly="readonly"/>
</strong></label>
<div align="left">
<p>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
session_start();
mysql_query("SET NAMES UTF8");
$customer_name = $_SESSION['customer_name'];
$customer_id = $_SESSION['customer_id'];
echo"รหัสลูกค้า : <b><input type=\"text\" value=\"" . $customer_id ."\" readonly=\"readonly\"/></b> ";
echo"ชื่อลูกค้า : <b><input type=\"text\" value=\"" . $customer_name ."\" readonly=\"readonly\" /></b>";
?>
<p>
<?
require('conn_mysql.php');
echo "<form action= method=POST name=frmMain><b>สินค้า:</b><select name=product onchange=frmMain.txtVol.value=this.value>";
$sql = "select * from product order by product_name where product_name='$product_name' ";
$first="";
$result = mysql_query($sql);
$array= mysql_fetch_array($result);
if(!$first){ $first=$array[price]; }
echo "<option class=style6 value=$array[product_name]>###--กรุณาเลือกสินค้า--###</option>";
$sql = "select * from product order by product_name ";
$result=mysql_query($sql);
while($array = mysql_fetch_array($result))
{ if(!$first){ $first=$array[product_price]; }
echo "<option value =$array[product_price]>";
echo " $array[product_name]<br>";
}
echo "</option></select> <b>ราคา:</b><input type=text name=txtVol size=20 value=$first readonly></form>";
?>
<?
$x = $_POST["price1"];
$b = $_POST["quantity1"];
$aa = $_POST["price2"];
$bb = $_POST["quantity2"];
$cc = $_POST["price3"];
$dd = $_POST["quantity3"];
$ee = $_POST["price4"];
$ff = $_POST["quantity4"];
$gg = $_POST["price5"];
$hh = $_POST["quantity5"];
$ii = $_POST["price6"];
$jj = $_POST["quantity6"];
$kk = $_POST["price7"];
$ll = $_POST["quantity7"];
$mm = $_POST["price8"];
$nn = $_POST["quantity8"];
$oo = $_POST["price9"];
$pp = $_POST["quantity9"];
$qq = $_POST["price10"];
$rr = $_POST["quantity10"];
$ss = $_POST["price11"];
$tt = $_POST["quantity11"];
$uu = $_POST["price12"];
$vv = $_POST["quantity12"];
$ww = $_POST["price13"];
$xx = $_POST["quantity13"];
$yy = $_POST["price14"];
$zz = $_POST["quantity14"];
$aaa = $_POST["price15"];
$bbb = $_POST["quantity15"];
$ccc = $_POST["price16"];
$ddd = $_POST["quantity16"];
$eee = $_POST["price17"];
$fff = $_POST["quantity17"];
$ggg = $_POST["price18"];
$hhh = $_POST["quantity18"];
$iii = $_POST["price19"];
$jjj = $_POST["quantity19"];
$kkk = $_POST["price20"];
$lll = $_POST["quantity20"];
$a = $x*$b;
$priceno2 = $aa*$bb;
$priceno3 = $cc*$dd;
$priceno4 = $ee*$ff;
$priceno5 = $gg*$hh;
$priceno6 = $ii*$jj;
$priceno7 = $kk*$ll;
$priceno8 = $mm*$nn;
$priceno9 = $oo*$pp;
$priceno10 = $qq*$rr;
$priceno11 = $ss*$tt;
$priceno12 = $uu*$vv;
$priceno13 = $ww*$xx;
$priceno14 = $yy*$zz;
$priceno15 = $aaa*$bbb;
$priceno16 = $ccc*$ddd;
$priceno17 = $eee*$fff;
$priceno18 = $ggg*$hhh;
$priceno19 = $iii*$jjj;
$priceno20 = $kkk*$lll;
?><br />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<form id="frmform1" name="form1" method="post" target="">
<table width="453" border="1">
<tr>
<td width="150"><div align="center">ชื่อสินค้า</div></td>
<td width="61"><div align="center">ราคา</div></td>
<td width="90"><div align="center">จำนวนสินค้า</div></td>
<td width="60"><div align="center">ราคารวม</div></td>
<td width="58"><div align="center"></div></td>
</tr>
<tr>
<td><label>
<input name="textfield" type="text" id="textfield" value="Pure น้ำประปา รุ่น KT 001 UV" size="30" readonly/>
</label></td>
<td><label>
<div align="center">
<input name="price1" type="text" id="textfield4" size="5" value="7950" readonly/>
</div>
</label></td>
<td><label>
<div align="center">
<input name="quantity1" type="text" id="textfield2" size="2" value="<?=$b ?>" />
</div>
</label></td>
<td><label>
<div align="center">
<input name="a" type="text" id="a" size="8" value="<? echo $a;?>" readonly />
</div>
</label></td>
<td rowspan="20"><label>
<div align="center">
<input type="submit" name="button" id="button" value="คำนวณ" />
</div>
</label></td>
</tr>
<tr>
<td><input name="textfield5" type="text" id="textfield5" size="30" value="Pure น้ำประปา รุ่น KT 001" readonly/></td>
<td><div align="center">
<input name="price2" type="text" id="textfield6" size="5" value="5700" readonly/>
</div></td>
<td><div align="center">
<input name="quantity2" type="text" id="textfield7" size="2" value="<?=$bb?>" />
</div></td>
<td><div align="center">
<input name="b" type="text" id="b" size="8" value="<? echo $priceno2;?>" readonly/>
</div></td>
</tr>
<tr>
<td><label>
<input name="textfield9" type="text" id="textfield9" value="Pure น้ำประปา รุ่น CT 01 UV" size="30" readonly/>
</label></td>
<td><label>
<div align="center">
<input name="price3" type="text" id="price3" size="5" value="6450" readonly />
</div>
</label></td>
<td><label>
<div align="center">
<input name="quantity3" type="text" id="quantity3" value="<?=$dd?>" size="2">
</div>
</label></td>
<td><label>
<div align="center">
<input name="c" type="text" id="c" value="<? echo $priceno3;?>" size="8" readonly>
</div>
</label></td>
</tr>
<tr>
<td><input name="textfield2" type="text" id="textfield10" value="Pure น้ำประปา รุ่น CT 01" size="30" readonly/></td>
<td><div align="center">
<input name="price4" type="text" id="price" size="5" value="3450" readonly />
</div></td>
<td><div align="center">
<input name="quantity4" type="text" id="quantity" value="<?=$ff?>" size="2">
</div></td>
<td><div align="center">
<input name="d" type="text" id="textfield11" value="<? echo $priceno4;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield6" type="text" id="textfield13" value="Pure น้ำบาดาล รุ่น KT 002 UV" size="30" readonly/></td>
<td><div align="center">
<input name="price5" type="text" id="price2" size="5" value="9700" readonly />
</div></td>
<td><div align="center">
<input name="quantity5" type="text" id="quantity2" value="<?=$hh?>" size="2">
</div></td>
<td><div align="center">
<input name="e" type="text" id="textfield14" value="<? echo $priceno5;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield10" type="text" id="textfield15" value="Pure น้ำบาดาล รุ่น KT 002 " size="30" readonly/></td>
<td><div align="center">
<input name="price6" type="text" id="price4" size="5" value="7450" readonly />
</div></td>
<td><div align="center">
<input name="quantity6" type="text" id="quantity4" value="<?=$jj?>" size="2">
</div></td>
<td><div align="center">
<input name="f" type="text" id="textfield16" value="<? echo $priceno6;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield13" type="text" id="textfield17" value="Pure น้ำกร่อย รุ่น ROUV" size="30" readonly/></td>
<td><div align="center">
<input name="price7" type="text" id="price5" size="5" value="12900" readonly />
</div></td>
<td><div align="center">
<input name="quantity7" type="text" id="quantity5" value="<?=$ll?>" size="2">
</div></td>
<td><div align="center">
<input name="g" type="text" id="textfield18" value="<? echo $priceno7;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield15" type="text" id="textfield19" value="Pure น้ำกร่อย รุ่น RO" size="30" readonly/></td>
<td><div align="center">
<input name="price8" type="text" id="price6" size="5" value="9950" readonly />
</div></td>
<td><div align="center">
<input name="quantity8" type="text" id="quantity6" value="<?=$nn?>" size="2">
</div></td>
<td><div align="center">
<input name="h" type="text" id="textfield20" value="<? echo $priceno8;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield17" type="text" id="textfield21" value="Master น้ำประปา รุ่น AS" size="30" readonly/></td>
<td><div align="center">
<input name="price9" type="text" id="price7" size="5" value="24900" readonly />
</div></td>
<td><div align="center">
<input name="quantity9" type="text" id="quantity7" value="<?=$pp?>" size="2">
</div></td>
<td><div align="center">
<input name="i" type="text" id="textfield22" value="<? echo $priceno9;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield19" type="text" id="textfield23" value="Everest ติดตั้งบ้าน รุ่น Zen S" size="30" readonly/></td>
<td><div align="center">
<input name="price10" type="text" id="price8" size="5" value="28500" readonly />
</div></td>
<td><div align="center">
<input name="quantity10" type="text" id="quantity8" value="<?=$rr?>" size="2">
</div></td>
<td><div align="center">
<input name="j" type="text" id="textfield24" value="<? echo $priceno10;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield21" type="text" id="textfield25" value="Everest ติดตั้งออฟฟิต รุ่น Big Tank" size="30" readonly/></td>
<td><div align="center">
<input name="price11" type="text" id="price9" size="5" value="30000" readonly />
</div></td>
<td><div align="center">
<input name="quantity11" type="text" id="quantity9" value="<?=$tt?>" size="2">
</div></td>
<td><div align="center">
<input name="k" type="text" id="textfield26" value="<? echo $priceno11;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield23" type="text" id="textfield27" value="Everest ติดตั้งออฟฟิต รุ่น Fit" size="30" readonly/></td>
<td><div align="center">
<input name="price12" type="text" id="price10" size="5" value="25000" readonly />
</div></td>
<td><div align="center">
<input name="quantity12" type="text" id="quantity10" value="<?=$vv?>" size="2">
</div></td>
<td><div align="center">
<input name="l" type="text" id="textfield28" value="<? echo $priceno12;?>" size="8" readonly />
</div></td>
</tr>
<tr>
<td><input name="textfield25" type="text" id="textfield29" value="Everest ติดตั้งออฟฟิต รุ่น Fit RO" size="30" readonly/></td>
<td><div align="center">
<input name="price13" type="text" id="price11" size="5" value="30000" readonly />
</div></td>
<td><div align="center">
<input name="quantity13" type="text" id="quantity11" value="<?=$xx?>" size="2">
</div></td>
<td><div align="center">
<input name="m" type="text" id="textfield30" value="<? echo $priceno13;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield27" type="text" id="textfield31" value="Everest ติดตั้งออฟฟิต รุ่น Zen L" size="30" readonly/></td>
<td><div align="center">
<input name="price14" type="text" id="price12" size="5" value="30000" readonly />
</div></td>
<td><div align="center">
<input name="quantity14" type="text" id="quantity12" value="<?=$zz?>" size="2">
</div></td>
<td><div align="center">
<input name="n" type="text" id="textfield32" value="<? echo $priceno14;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield29" type="text" id="textfield33" value="Everest ติดตั้งออฟฟิต รุ่น Zen RO L" size="30" readonly/></td>
<td><div align="center">
<input name="price15" type="text" id="price13" size="5" value="32500" readonly />
</div></td>
<td><div align="center">
<input name="quantity15" type="text" id="quantity13" value="<?=$bbb?>" size="2">
</div></td>
<td><div align="center">
<input name="o" type="text" id="textfield34" value="<? echo $priceno15;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield31" type="text" id="textfield35" value="Pure ไส้กรองน้ำหยาบ รุ่น 712" size="30" readonly/></td>
<td><div align="center">
<input name="price16" type="text" id="price14" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity16" type="text" id="quantity14" value="<?=$ddd?>" size="2">
</div></td>
<td><div align="center">
<input name="p" type="text" id="textfield36" value="<? echo $priceno16;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield33" type="text" id="textfield37" value="Pure ไส้กรองน้ำโพลิเมอร์ รุ่น 713" size="30" readonly/></td>
<td><div align="center">
<input name="price17" type="text" id="price15" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity17" type="text" id="quantity15" value="<?=$fff?>" size="2">
</div></td>
<td><div align="center">
<input name="q" type="text" id="textfield38" value="<? echo $priceno17;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield35" type="text" id="textfield39" value="Pure ไส้กรองน้ำคาร์บอน รุ่น 714" size="30" readonly/></td>
<td><div align="center">
<input name="price18" type="text" id="price16" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity18" type="text" id="quantity16" value="<?=$hhh?>" size="2">
</div></td>
<td><div align="center">
<input name="r" type="text" id="textfield40" value="<? echo $priceno18;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield37" type="text" id="textfield41" value="Pure ไส้กรองน้ำคาร์บอน (UV) รุ่น 715" size="30" readonly/></td>
<td><div align="center">
<input name="price19" type="text" id="price17" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity19" type="text" id="quantity17" value="<?=$jjj?>" size="2">
</div></td>
<td><div align="center">
<input name="h" type="text" id="textfield42" value="<? echo $priceno19;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield39" type="text" id="textfield43" value="Pure ไส้กรองน้ำเรซิ่น รุ่น 716" size="30" readonly/></td>
<td><div align="center">
<input name="price20" type="text" id="price18" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity20" type="text" id="quantity18" value="<?=$lll?>" size="2">
</div></td>
<td><div align="center">
<input name="t" type="text" id="textfield44" value="<? echo $priceno20;?>" size="8" readonly>
</div></td>
</tr>
</table>
</form>
<p>
<label></label>
</p>
<form id="form2" name="form2" method="post" action="">
<?
$beer = $a+$priceno2+$priceno3+$priceno4+$priceno5+$priceno6+$priceno7+$priceno8+$priceno9+$priceno10+$priceno11+$priceno12+$priceno13+$priceno14+$priceno15+$priceno16+$priceno17+$priceno18+$priceno19+$priceno20
?>
<label>ราคารวม :</label>
<label>
<input type="text" name="textfield45" id="textfield45" value="<? echo $beer;?>" readonly="readonly"/>
</label>
บาท
</form>
<form id="form3" name="form3" method="post" action="">
<label>
<br />
<br />
<input type="submit" name="button2" id="button2" value="สั่งซื้อสินค้า" />
</label>
<label>
<input type="submit" name="button3" id="button3" value="ยกเลิก" />
</label>
</form>
<p><br />
<br />
<p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><br />
<br>
</p>
</div>
<p>
<label></label>
<label></label>
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table></td>
</tr>
<tr>
<td class="menu_1" align="center">ร้านไทยน้ำกรอง 29/38 หมู่บ้านอลิชา 1 หมู่ 2 แขวงบางมด เขตทุ่งครุ กทม. 10140 โทร 02-426-4748 มือถือ 081-414-7292</td>
</tr>
</table></td>
<td width="12%" > </td>
</tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="33,6,118,55" href="../index.html" />
<area shape="rect" coords="134,6,198,50" href="product.html" />
<area shape="rect" coords="214,6,321,51" href="order.html" />
<area shape="rect" coords="341,7,472,51" href="payment.html" />
<area shape="rect" coords="491,11,651,49" href="logistic.html" />
<area shape="rect" coords="665,4,767,53" href="aboutus.html" />
<area shape="rect" coords="781,3,871,54" href="contact.html" />
</map></body>
</html>
หน้านี้ error
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\AppServ\www\web\src\ordercustomer.php:1) in D:\AppServ\www\web\src\ordercustomer.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\AppServ\www\web\src\ordercustomer.php:1) in D:\AppServ\www\web\src\ordercustomer.php on line 2
โค็ตอยู่บรรทัดที่ 363-391 หน้านี้ไม่ส่ง customer_name แล้วก็ customer_id มาอ่า
อยากรู้ว่าผมวางบรรทัดถูกหรือป่าวTag : PHP
ประวัติการแก้ไข 2010-09-26 21:40:24
Date :
2010-09-26 21:36:38
By :
beer656
View :
1418
Reply :
8
ยาวจังครับ แล้วไม่ทราบว่ามัีน Error ยังไงอะครับ บอกนิด จะได้หาถูกครับ แบบนี้งงตายเลย
Date :
2010-09-27 10:35:23
By :
SOUL
ลองเอา session_start() ออกครับ
Date :
2010-09-27 11:09:49
By :
Dragons_first
ถ้าจะเขียนโค้ดโดย session แล้ว error แบบนี้ลองใช้คำสั่ง
ob_start(); ไว้บนสุด และก็ใส่ ob_end_flush(); ไว้ล่างสุดของโค้ดดูนะครับ
Date :
2010-09-27 11:18:15
By :
ppanchai
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\AppServ\www\web\src\ordercustomer.php:1) in D:\AppServ\www\web\src\ordercustomer.php on line 364
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\AppServ\www\web\src\ordercustomer.php:1) in D:\AppServ\www\web\src\ordercustomer.php on line 364
ยังไม่ได้อ่า error หน้าแสดงรายชื่ออ่า
ลองเอา session ออกแล้วนะ
Date :
2010-09-27 19:07:25
By :
beer656
ผมมีปัญหากับไอเจ้า session นี้อยู่บ่อยเหมือนกันคับ
แต่ไม่รู้ปัญหาเดียวกันไมนะคับ
แบบว่าผมจะเขียนหน้าเว็บมาหนึ่งหน้า
แล้วก็ใส่โค้ด PHP ลงไปที่หลัง
ผมก็ใส่ session_start() ลงไปมันก็ขึ้น Error แต่ไม่ทราบว่ามัน Error เดียวกันไม
ผมก็เลยลองก็อปหน้าโค๊ดทั้งหมดไปใส่ในหน้าใหม่
แล้วก็ Save ทับไฟล์เดิม ก็หาย Error เลยอ่าคับ
แต่เวลาก็อปห้ามกด Ctrl+A หรือว่าก็อปทีเดียวทั้งหมดนะคับ
ให้ก็อปมาเป็นส่วนๆ ก่อน
ลองดูคับ
Date :
2010-09-28 13:28:52
By :
petzaza009
แก้ไขตามโค๊ดที่ผมทำเครื่องหมาย // หรือ /* */ ไว้นะครับเพราะระบบโค๊ดส่วนนั้นมันทำงานไม่สัมพันธ์กัน
<? //session_start(); ?>
<!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>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function printDate()
{
var today = new Date();
var day=today.getDate();
var month = today.getMonth() + 1;
var year = today.getFullYear().toString();
var box=document.forms[0].DateBox;//this is where we want to print the date
if ( ( month /10 ) < 1 )
{
month=("0" + month).toString(); //add the leading 0 -- looks more professional
}
if ( (day/10)<1)
{
day=("0" + today.getDate()).toString();//add the leading 0 -- looks better
}
box.value=month + " - " + day + " - " + year;
}
function printTime()
{
var box = document.forms[0].DateBox; //this is where we want to print the date
var thetime=new Date();
if (thetime.getMinutes() / 10 <1 )
{
box.value=thetime.getHours() + " : " + "0" + thetime.getMinutes();
}
else
{
box.value=thetime.getHours() + " : " + thetime.getMinutes();
}
}
// End -->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>###---THAIWATERFITER---###</title>
<style type="text/css">
<!--
body {
background-image: url();
text-align: center;
}
.Font10 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
}
.price {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 12px;
color: #F00;
}
.right_menu {
font-family: "Times New Roman", Times, serif;
font-size: 13px;
font-style: normal;
font-weight: normal;
color: #00C;
}
.menu_1 {
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
.font18 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #00F;
}
.font18 strong {
font-size: 14px;
}
-->
</style>
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Drew Diller | http://www.dillerdesign.com/Licensed under: MIT License
*/
/**
* DD_roundies, this adds rounded-corner CSS in standard browsers and VML sublayers in IE that accomplish a similar appearance when comparing said browsers.
* Author: Drew Diller
* URL: http://www.dillerdesign.com/experiment/DD_roundies/
* Version: 0.0.1a / December 2, 2008
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_roundies/#license
*
* Usage:
* DD:roundtangle.addRule('#doc .container', 5); // selector and radius
* DD:roundtangle.addRule('.box', 5, true); // selector, radius, and optional addition of border-radius code for standard browsers.
**/
var DD_roundies = {
ns: 'DD_roundies',
createVmlNameSpace: function() { /* enable VML */
if (document.namespaces && !document.namespaces[this.ns]) {
document.namespaces.add(this.ns, 'urn:schemas-microsoft-com:vml');
}
},
createVmlStyleSheet: function() { /* style VML, enable behaviors */
/*
Just in case lots of other developers have added
lots of other stylesheets using document.createStyleSheet
and hit the 31-limit mark, let's not use that method!
further reading: http://msdn.microsoft.com/en-us/library/ms531194(VS.85).aspx
*/
var style = document.createElement('style');
document.documentElement.firstChild.insertBefore(style, document.documentElement.firstChild.firstChild);
if (style.styleSheet) { /* IE */
var styleSheet = style.styleSheet;
styleSheet.addRule(this.ns + '\\:*', '{behavior:url(#default#VML)}');
styleSheet.addRule(this.ns + '\\:shape', 'position:absolute; left:0px; top:0px; z-index:-1;');
this.styleSheet = styleSheet;
}
else {
this.styleSheet = style;
}
},
/**
* This is the method to use in a document.
* @param {String} selector - REQUIRED - a CSS selector, such as '#doc .container'
* @param {Integer} radius - REQUIRED - the desired radius for the box corners
* @param {Boolean} standards - OPTIONAL - true if you also wish to output -moz-border-radius/-webkit-border-radius/border-radius declarations
**/
addRule: function(selector, radius, standards) {
if (this.styleSheet.addRule) { /* IE */
this.styleSheet.addRule(selector, 'behavior:expression(DD_roundies.roundifyElement.call(this, ' + radius + '))'); /* seems to execute the function without adding it to the stylesheet - interesting... */
}
else {
this.styleSheet.appendChild(document.createTextNode(selector + ' {border-radius:' + radius + 'px; -moz-border-radius:' + radius + 'px; -webkit-border-radius:' + radius + 'px;}'));
}
},
roundifyElement: function(rad) {
this.style.behavior = 'none';
this.style.zoom = 1;
if (this.currentStyle.position == 'static') {
this.style.position = 'relative';
}
this.vml = document.createElement(DD_roundies.ns + ':shape');
/* methods */
var self = this;
this.interceptPropertyChanges = function() {
switch (event.propertyName) {
case 'style.border':
case 'style.borderWidth':
case 'style.padding':
self.applyVML.call(self);
break;
case 'style.borderColor':
self.updateVmlStrokeColor.call(self);
break;
case 'style.backgroundColor':
self.updateVmlFill.call(self);
};
};
this.applyVML = function() {
this.runtimeStyle.cssText = '';
this.updateVmlFill();
this.updateVmlStrokeWeight();
this.updateVmlStrokeColor();
this.updateVmlDimensions();
this.updateVmlPath();
this.hideSourceBorder();
};
this.hideSourceBorder = function() {
this.runtimeStyle.border = 'none';
var sides = ['Top', 'Left', 'Right', 'Bottom'];
for (var i=0; i<4; i++) {
this.runtimeStyle['padding' + sides[i]] = parseInt(this.currentStyle['padding' + sides[i]]) + parseInt(this.realBorderWidth) + 'px';
}
};
this.updateVmlStrokeWeight = function() {
this.realBorderWidth = parseInt(this.currentStyle.borderWidth, 10);
if (this.realBorderWidth.toString() == 'NaN') {
this.realBorderWidth = 0;
}
this.halfRealBorderWidth = Math.floor(this.realBorderWidth/2);
this.vml.strokeweight = this.realBorderWidth + 'px';
this.vml.stroked = !(this.realBorderWidth === 0);
};
this.updateVmlStrokeColor = function() {
this.vml.strokecolor = this.currentStyle.borderColor;
};
this.updateVmlFill = function() {
this.runtimeStyle.backgroundColor = '';
if (this.currentStyle && (this.currentStyle.backgroundImage != 'none' || (this.currentStyle.backgroundColor && this.currentStyle.backgroundColor != 'transparent'))) {
this.vml.filled = true;
if (!this.vml.filler) {
this.vml.filler = document.createElement(DD_roundies.ns + ':fill');
this.vml.appendChild(this.vml.filler);
}
if (this.currentStyle.backgroundImage) {
var bg = this.currentStyle.backgroundImage;
this.vml.filler.src = bg.substr(5, bg.lastIndexOf('")')-5);
this.vml.filler.type = 'tile';
}
if (this.currentStyle.backgroundColor) {
this.vml.filler.color = this.currentStyle.backgroundColor;
}
this.runtimeStyle.background = 'none';
}
else {
this.vml.filled = false;
}
};
this.updateVmlDimensions = function() {
if (!this.dim) {
this.dim = {};
}
this.dim.w = this.offsetWidth;
this.dim.h = this.offsetHeight;
this.vml.style.width = this.dim.w;
this.vml.style.height = this.dim.h;
this.vml.coordorigin = -this.halfRealBorderWidth + ' ' + -this.halfRealBorderWidth;
this.vml.coordsize = (this.dim.w+this.realBorderWidth) + ' '+ (this.dim.h+this.realBorderWidth);
};
this.updateVmlPath = function() {
this.vml.path = 'm0,'+rad+'qy'+rad+',0l'+(this.dim.w-rad)+',0qx'+this.dim.w+','+rad+'l'+this.dim.w+','+(this.dim.h-rad)+'qy'+(this.dim.w-rad)+','+this.dim.h+'l'+rad+','+this.dim.h+'qx0,'+(this.dim.h-rad)+'xe';
};
this.handlePseudoHover = function() {
setTimeout(function() { /* wouldn't work as intended without setTimeout */
self.runtimeStyle.backgroundColor = '';
self.updateVmlFill.call(self);
self.updateVmlStrokeColor.call(self);
}, 1);
};
/* set up element */
this.insertBefore(this.vml, this.firstChild);
this.applyVML();
/* add change handlers */
if (this.nodeName == 'A') {
this.attachEvent('onmouseleave', this.handlePseudoHover);
this.attachEvent('onmouseenter', this.handlePseudoHover);
}
this.attachEvent('onpropertychange', this.interceptPropertyChanges);
this.attachEvent('onresize', function() {
self.updateVmlDimensions.call(self);
self.updateVmlPath.call(self);
});
}
};
DD_roundies.createVmlNameSpace();
DD_roundies.createVmlStyleSheet();
</script>
<script type="text/javascript">
<!--
DD_roundies.addRule('.littleDD', 15);
//-->
</script>
<style>
.littleDD {
padding:15px;
background:#FFD;
border:1px solid #333;
}
.littleDD li {
padding-top:2px;
padding-bottom:2px;
}
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body onLoad="show_clock(); return printDate()">
<table width="10%" border="0">
<tr>
<td width="1%" > </td>
<td width="10%" bordercolor="#0776dd" bordercolordark="#0033FF" border="1" bgcolor="#0776dd"><table width="100%" border="0">
<tr>
<td height="21" width="1000" bgcolor="#FFFFFF"><table width="1000" height="50" border="0" bgcolor="#00FFFF">
<tr>
<td><img src="../pic/Head_Beer/Head1.jpg" width="1000" height="60" border="0" usemap="#Map" /></td>
</tr>
</table>
<table width="1000" height="245" border="0">
<tr bgcolor="#00FFFF">
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','240','src','../pic/Head_Beer/Beer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../pic/Head_Beer/Beer' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="240">
<param name="movie" value="../pic/Head_Beer/Beer.swf" />
<param name="quality" value="high" />
<embed src="../pic/Head_Beer/Beer.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="240"></embed>
</object></noscript></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0">
<tr>
<td width="16%" align="center" valign="top" background="../pic/UnderTheSea-background.jpg"><!-- นำ CODE ไปตกแต่งแก้ไขรูปแบบได้แล้วแต่คุณเลยครับ -->
<script src="http://www.clocklink.com/embed.js"></script><script type="text/javascript" language="JavaScript">obj=new Object;obj.clockfile="0001-blue.swf";obj.TimeZone="ICT";obj.width=150;obj.height=150;obj.Place="";obj.wmode="transparent";showClock(obj);</script>
<form name="stats">
<input type="text" readonly="readonly" name="DateBox" size="11" onmouseout="printDate();">
</input>
</form>
<p><script language="javascript" src="js/liveclock.js"></script></p>
<hr />
<div class="littleDD">
<table width="110" height="52">
<tr>
<td align="left" class="right_menu">มือถือ</td>
<td align="right" class="right_menu">081-414-7292,</td>
</tr>
<tr>
<td align="left" class="right_menu">089-113-5388,</td>
<td align="right" class="right_menu">081-551-5028</td>
</tr>
<tr>
<td align="left" class="right_menu">โทร</td>
<td align="right" class="right_menu">02-426-4748</td>
</tr>
<tr>
<td colspan="2" align="left" class="right_menu">e-mail</td>
</tr>
<tr>
<td colspan="2" align="left" class="right_menu" ><font color="#FF0000"> [email protected] </font></td>
</tr>
</table>
</div>
<hr /> </td>
<td width="84%" bgcolor="#FFFFFF"><p align="left"><img src="../pic/Head_Beer/pure4.jpg" width="300" height="30" /></p>
<label> </label>
<label></label>
<p>
<label></label>
<label class="menu_1">
<div align="left"><strong>วันที่ :
<input name="textfield" type="text" id="textfield" value="<? $today_date=date("d-M-Y");
echo "$today_date";
?>" size="18" readonly="readonly"/>
</strong></label>
<div align="left">
<p>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php /*
mysql_query("SET NAMES UTF8");
$customer_name = $_SESSION['customer_name'];
$customer_id = $_SESSION['customer_id'];
echo"รหัสลูกค้า : <b><input type=\"text\" value=\"" . $customer_id ."\" readonly=\"readonly\"/></b> ";
echo"ชื่อลูกค้า : <b><input type=\"text\" value=\"" . $customer_name ."\" readonly=\"readonly\" /></b>"; */
?>
<p>
<?
// require('conn_mysql.php');
echo "<form action= method=POST name=frmMain><b>สินค้า:</b><select name=product onchange=frmMain.txtVol.value=this.value>";
$sql = "select * from product order by product_name where product_name='$product_name' ";
$first="";
$result = mysql_query($sql);
$array= mysql_fetch_array($result);
if(!$first){ $first=$array[price]; }
echo "<option class=style6 value=$array[product_name]>###--กรุณาเลือกสินค้า--###</option>";
$sql = "select * from product order by product_name ";
$result=mysql_query($sql);
while($array = mysql_fetch_array($result))
{ if(!$first){ $first=$array[product_price]; }
echo "<option value =$array[product_price]>";
echo " $array[product_name]<br>";
}
echo "</option></select> <b>ราคา:</b><input type=text name=txtVol size=20 value=$first readonly></form>";
?>
<?
$x = $_POST["price1"];
$b = $_POST["quantity1"];
$aa = $_POST["price2"];
$bb = $_POST["quantity2"];
$cc = $_POST["price3"];
$dd = $_POST["quantity3"];
$ee = $_POST["price4"];
$ff = $_POST["quantity4"];
$gg = $_POST["price5"];
$hh = $_POST["quantity5"];
$ii = $_POST["price6"];
$jj = $_POST["quantity6"];
$kk = $_POST["price7"];
$ll = $_POST["quantity7"];
$mm = $_POST["price8"];
$nn = $_POST["quantity8"];
$oo = $_POST["price9"];
$pp = $_POST["quantity9"];
$qq = $_POST["price10"];
$rr = $_POST["quantity10"];
$ss = $_POST["price11"];
$tt = $_POST["quantity11"];
$uu = $_POST["price12"];
$vv = $_POST["quantity12"];
$ww = $_POST["price13"];
$xx = $_POST["quantity13"];
$yy = $_POST["price14"];
$zz = $_POST["quantity14"];
$aaa = $_POST["price15"];
$bbb = $_POST["quantity15"];
$ccc = $_POST["price16"];
$ddd = $_POST["quantity16"];
$eee = $_POST["price17"];
$fff = $_POST["quantity17"];
$ggg = $_POST["price18"];
$hhh = $_POST["quantity18"];
$iii = $_POST["price19"];
$jjj = $_POST["quantity19"];
$kkk = $_POST["price20"];
$lll = $_POST["quantity20"];
$a = $x*$b;
$priceno2 = $aa*$bb;
$priceno3 = $cc*$dd;
$priceno4 = $ee*$ff;
$priceno5 = $gg*$hh;
$priceno6 = $ii*$jj;
$priceno7 = $kk*$ll;
$priceno8 = $mm*$nn;
$priceno9 = $oo*$pp;
$priceno10 = $qq*$rr;
$priceno11 = $ss*$tt;
$priceno12 = $uu*$vv;
$priceno13 = $ww*$xx;
$priceno14 = $yy*$zz;
$priceno15 = $aaa*$bbb;
$priceno16 = $ccc*$ddd;
$priceno17 = $eee*$fff;
$priceno18 = $ggg*$hhh;
$priceno19 = $iii*$jjj;
$priceno20 = $kkk*$lll;
?><br />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<form id="frmform1" name="form1" method="post" target="">
<table width="453" border="1">
<tr>
<td width="150"><div align="center">ชื่อสินค้า</div></td>
<td width="61"><div align="center">ราคา</div></td>
<td width="90"><div align="center">จำนวนสินค้า</div></td>
<td width="60"><div align="center">ราคารวม</div></td>
<td width="58"><div align="center"></div></td>
</tr>
<tr>
<td><label>
<input name="textfield" type="text" id="textfield" value="Pure น้ำประปา รุ่น KT 001 UV" size="30" readonly/>
</label></td>
<td><label>
<div align="center">
<input name="price1" type="text" id="textfield4" size="5" value="7950" readonly/>
</div>
</label></td>
<td><label>
<div align="center">
<input name="quantity1" type="text" id="textfield2" size="2" value="<?=$b ?>" />
</div>
</label></td>
<td><label>
<div align="center">
<input name="a" type="text" id="a" size="8" value="<? echo $a;?>" readonly />
</div>
</label></td>
<td rowspan="20"><label>
<div align="center">
<input type="submit" name="button" id="button" value="คำนวณ" />
</div>
</label></td>
</tr>
<tr>
<td><input name="textfield5" type="text" id="textfield5" size="30" value="Pure น้ำประปา รุ่น KT 001" readonly/></td>
<td><div align="center">
<input name="price2" type="text" id="textfield6" size="5" value="5700" readonly/>
</div></td>
<td><div align="center">
<input name="quantity2" type="text" id="textfield7" size="2" value="<?=$bb?>" />
</div></td>
<td><div align="center">
<input name="b" type="text" id="b" size="8" value="<? echo $priceno2;?>" readonly/>
</div></td>
</tr>
<tr>
<td><label>
<input name="textfield9" type="text" id="textfield9" value="Pure น้ำประปา รุ่น CT 01 UV" size="30" readonly/>
</label></td>
<td><label>
<div align="center">
<input name="price3" type="text" id="price3" size="5" value="6450" readonly />
</div>
</label></td>
<td><label>
<div align="center">
<input name="quantity3" type="text" id="quantity3" value="<?=$dd?>" size="2">
</div>
</label></td>
<td><label>
<div align="center">
<input name="c" type="text" id="c" value="<? echo $priceno3;?>" size="8" readonly>
</div>
</label></td>
</tr>
<tr>
<td><input name="textfield2" type="text" id="textfield10" value="Pure น้ำประปา รุ่น CT 01" size="30" readonly/></td>
<td><div align="center">
<input name="price4" type="text" id="price" size="5" value="3450" readonly />
</div></td>
<td><div align="center">
<input name="quantity4" type="text" id="quantity" value="<?=$ff?>" size="2">
</div></td>
<td><div align="center">
<input name="d" type="text" id="textfield11" value="<? echo $priceno4;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield6" type="text" id="textfield13" value="Pure น้ำบาดาล รุ่น KT 002 UV" size="30" readonly/></td>
<td><div align="center">
<input name="price5" type="text" id="price2" size="5" value="9700" readonly />
</div></td>
<td><div align="center">
<input name="quantity5" type="text" id="quantity2" value="<?=$hh?>" size="2">
</div></td>
<td><div align="center">
<input name="e" type="text" id="textfield14" value="<? echo $priceno5;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield10" type="text" id="textfield15" value="Pure น้ำบาดาล รุ่น KT 002 " size="30" readonly/></td>
<td><div align="center">
<input name="price6" type="text" id="price4" size="5" value="7450" readonly />
</div></td>
<td><div align="center">
<input name="quantity6" type="text" id="quantity4" value="<?=$jj?>" size="2">
</div></td>
<td><div align="center">
<input name="f" type="text" id="textfield16" value="<? echo $priceno6;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield13" type="text" id="textfield17" value="Pure น้ำกร่อย รุ่น ROUV" size="30" readonly/></td>
<td><div align="center">
<input name="price7" type="text" id="price5" size="5" value="12900" readonly />
</div></td>
<td><div align="center">
<input name="quantity7" type="text" id="quantity5" value="<?=$ll?>" size="2">
</div></td>
<td><div align="center">
<input name="g" type="text" id="textfield18" value="<? echo $priceno7;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield15" type="text" id="textfield19" value="Pure น้ำกร่อย รุ่น RO" size="30" readonly/></td>
<td><div align="center">
<input name="price8" type="text" id="price6" size="5" value="9950" readonly />
</div></td>
<td><div align="center">
<input name="quantity8" type="text" id="quantity6" value="<?=$nn?>" size="2">
</div></td>
<td><div align="center">
<input name="h" type="text" id="textfield20" value="<? echo $priceno8;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield17" type="text" id="textfield21" value="Master น้ำประปา รุ่น AS" size="30" readonly/></td>
<td><div align="center">
<input name="price9" type="text" id="price7" size="5" value="24900" readonly />
</div></td>
<td><div align="center">
<input name="quantity9" type="text" id="quantity7" value="<?=$pp?>" size="2">
</div></td>
<td><div align="center">
<input name="i" type="text" id="textfield22" value="<? echo $priceno9;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield19" type="text" id="textfield23" value="Everest ติดตั้งบ้าน รุ่น Zen S" size="30" readonly/></td>
<td><div align="center">
<input name="price10" type="text" id="price8" size="5" value="28500" readonly />
</div></td>
<td><div align="center">
<input name="quantity10" type="text" id="quantity8" value="<?=$rr?>" size="2">
</div></td>
<td><div align="center">
<input name="j" type="text" id="textfield24" value="<? echo $priceno10;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield21" type="text" id="textfield25" value="Everest ติดตั้งออฟฟิต รุ่น Big Tank" size="30" readonly/></td>
<td><div align="center">
<input name="price11" type="text" id="price9" size="5" value="30000" readonly />
</div></td>
<td><div align="center">
<input name="quantity11" type="text" id="quantity9" value="<?=$tt?>" size="2">
</div></td>
<td><div align="center">
<input name="k" type="text" id="textfield26" value="<? echo $priceno11;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield23" type="text" id="textfield27" value="Everest ติดตั้งออฟฟิต รุ่น Fit" size="30" readonly/></td>
<td><div align="center">
<input name="price12" type="text" id="price10" size="5" value="25000" readonly />
</div></td>
<td><div align="center">
<input name="quantity12" type="text" id="quantity10" value="<?=$vv?>" size="2">
</div></td>
<td><div align="center">
<input name="l" type="text" id="textfield28" value="<? echo $priceno12;?>" size="8" readonly />
</div></td>
</tr>
<tr>
<td><input name="textfield25" type="text" id="textfield29" value="Everest ติดตั้งออฟฟิต รุ่น Fit RO" size="30" readonly/></td>
<td><div align="center">
<input name="price13" type="text" id="price11" size="5" value="30000" readonly />
</div></td>
<td><div align="center">
<input name="quantity13" type="text" id="quantity11" value="<?=$xx?>" size="2">
</div></td>
<td><div align="center">
<input name="m" type="text" id="textfield30" value="<? echo $priceno13;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield27" type="text" id="textfield31" value="Everest ติดตั้งออฟฟิต รุ่น Zen L" size="30" readonly/></td>
<td><div align="center">
<input name="price14" type="text" id="price12" size="5" value="30000" readonly />
</div></td>
<td><div align="center">
<input name="quantity14" type="text" id="quantity12" value="<?=$zz?>" size="2">
</div></td>
<td><div align="center">
<input name="n" type="text" id="textfield32" value="<? echo $priceno14;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield29" type="text" id="textfield33" value="Everest ติดตั้งออฟฟิต รุ่น Zen RO L" size="30" readonly/></td>
<td><div align="center">
<input name="price15" type="text" id="price13" size="5" value="32500" readonly />
</div></td>
<td><div align="center">
<input name="quantity15" type="text" id="quantity13" value="<?=$bbb?>" size="2">
</div></td>
<td><div align="center">
<input name="o" type="text" id="textfield34" value="<? echo $priceno15;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield31" type="text" id="textfield35" value="Pure ไส้กรองน้ำหยาบ รุ่น 712" size="30" readonly/></td>
<td><div align="center">
<input name="price16" type="text" id="price14" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity16" type="text" id="quantity14" value="<?=$ddd?>" size="2">
</div></td>
<td><div align="center">
<input name="p" type="text" id="textfield36" value="<? echo $priceno16;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield33" type="text" id="textfield37" value="Pure ไส้กรองน้ำโพลิเมอร์ รุ่น 713" size="30" readonly/></td>
<td><div align="center">
<input name="price17" type="text" id="price15" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity17" type="text" id="quantity15" value="<?=$fff?>" size="2">
</div></td>
<td><div align="center">
<input name="q" type="text" id="textfield38" value="<? echo $priceno17;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield35" type="text" id="textfield39" value="Pure ไส้กรองน้ำคาร์บอน รุ่น 714" size="30" readonly/></td>
<td><div align="center">
<input name="price18" type="text" id="price16" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity18" type="text" id="quantity16" value="<?=$hhh?>" size="2">
</div></td>
<td><div align="center">
<input name="r" type="text" id="textfield40" value="<? echo $priceno18;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield37" type="text" id="textfield41" value="Pure ไส้กรองน้ำคาร์บอน (UV) รุ่น 715" size="30" readonly/></td>
<td><div align="center">
<input name="price19" type="text" id="price17" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity19" type="text" id="quantity17" value="<?=$jjj?>" size="2">
</div></td>
<td><div align="center">
<input name="h" type="text" id="textfield42" value="<? echo $priceno19;?>" size="8" readonly>
</div></td>
</tr>
<tr>
<td><input name="textfield39" type="text" id="textfield43" value="Pure ไส้กรองน้ำเรซิ่น รุ่น 716" size="30" readonly/></td>
<td><div align="center">
<input name="price20" type="text" id="price18" size="5" value="590" readonly />
</div></td>
<td><div align="center">
<input name="quantity20" type="text" id="quantity18" value="<?=$lll?>" size="2">
</div></td>
<td><div align="center">
<input name="t" type="text" id="textfield44" value="<? echo $priceno20;?>" size="8" readonly>
</div></td>
</tr>
</table>
</form>
<p>
<label></label>
</p>
<form id="form2" name="form2" method="post" action="">
<?
$beer = $a+$priceno2+$priceno3+$priceno4+$priceno5+$priceno6+$priceno7+$priceno8+$priceno9+$priceno10+$priceno11+$priceno12+$priceno13+$priceno14+$priceno15+$priceno16+$priceno17+$priceno18+$priceno19+$priceno20
?>
<label>ราคารวม :</label>
<label>
<input type="text" name="textfield45" id="textfield45" value="<? echo $beer;?>" readonly="readonly"/>
</label>
บาท
</form>
<form id="form3" name="form3" method="post" action="">
<label>
<br />
<br />
<input type="submit" name="button2" id="button2" value="สั่งซื้อสินค้า" />
</label>
<label>
<input type="submit" name="button3" id="button3" value="ยกเลิก" />
</label>
</form>
<p><br />
<br />
<p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><br />
<br>
</p>
</div>
<p>
<label></label>
<label></label>
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table></td>
</tr>
<tr>
<td class="menu_1" align="center">ร้านไทยน้ำกรอง 29/38 หมู่บ้านอลิชา 1 หมู่ 2 แขวงบางมด เขตทุ่งครุ กทม. 10140 โทร 02-426-4748 มือถือ 081-414-7292</td>
</tr>
</table></td>
<td width="12%" > </td>
</tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="33,6,118,55" href="../index.html" />
<area shape="rect" coords="134,6,198,50" href="product.html" />
<area shape="rect" coords="214,6,321,51" href="order.html" />
<area shape="rect" coords="341,7,472,51" href="payment.html" />
<area shape="rect" coords="491,11,651,49" href="logistic.html" />
<area shape="rect" coords="665,4,767,53" href="aboutus.html" />
<area shape="rect" coords="781,3,871,54" href="contact.html" />
</map></body>
</html>
Date :
2010-09-29 11:30:51
By :
Dragons_first
ลองรันก่อนแก้ไขนะครับ และแก้ไขทีละจุด
Date :
2010-09-29 11:32:07
By :
Dragons_first
พอเสร็จแล้วมานก็ไป ไม่เคยมาโพสบอกเลยว่าทำได้แล้ว แก้ไขอย่างไร ไม่เผื่อชาวบ้านเขาบ้างเลยเนอะ
Date :
2010-09-29 13:57:27
By :
Dragons_first
Load balance : Server 00