Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,038

HOME > PHP > PHP Forum > ช่วยหน่อยค่ะอีกนิดเดียวจะเสร็จแล้ว มันขึ้น error เหมือนในรูปค่ะ


[PHP] ช่วยหน่อยค่ะอีกนิดเดียวจะเสร็จแล้ว มันขึ้น error เหมือนในรูปค่ะ

 
Topic : 074848



โพสกระทู้ ( 169 )
บทความ ( 0 )



สถานะออฟไลน์



เปิด fire fox แล้วใช้ fire fox console ค่ะ มันขึ้นerror ในรูปค่ะ ต้องแกไขยังงัยคะ

1

มันมีปัญหาตรงฟังก์ชันนี้ค่ะ

ไฟล์ order.js
Code (PHP)
1.function openMycart(){
2.    var html='';
3.    $.box({
4.        ajaxurl: 'mycart.php',
5.        action  : 'show'
6.    });
7.}




Tag : PHP

Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2012-03-01 15:18:20 By : teukkead View : 1589 Reply : 7
 

 

No. 1



โพสกระทู้ ( 74,059 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ตาม error มันบอกว่าไม่ใช่ function ครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-01 17:27:46 By : webmaster
 

 

No. 2



โพสกระทู้ ( 11,835 )
บทความ ( 10 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์


โค๊ดอยู่ไหน รู้สึกจะคอยตอบแล้วนะปัญหานี้ ว่ามันไม่มีไฟล์ของ plugin ตัวนี้
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-01 17:30:55 By : ikikkok
 

 

No. 3



โพสกระทู้ ( 169 )
บทความ ( 0 )



สถานะออฟไลน์


header.php

Code (PHP)
001.<?php
002.session_start();
003. 
004.?>
005.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
006.<html xmlns="http://www.w3.org/1999/xhtml">
007.<head>
008.<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
009.<!---- <link rel="icon" href="images/favicon.ico" type="image/x-icon" /> --->
010.<link rel="icon" href="images/fa.ico" type="image/x-icon" />
011. 
012. 
013.<link href="style/style.css" rel="stylesheet" type="text/css" />
014.<!------------- order ----------------->
015.<script type="text/javascript" src="scripts/order-jquery.js"></script>
016.<script type="text/javascript" src="scripts/order.js"></script>
017. 
018.<!---- menu --->
019.<link rel="stylesheet" href="style/style-menu.css" type="text/css" />
020. 
021.<title>waan waan</title>
022.<style type="text/css">
023.<!--
024..style1 {color: #000000}
025..style3 {color: #FFFFFF}
026.-->
027.</style>
028.</head>
029.<body>
030. 
031.<!------use sytle.css------->
032.<div class="header">
033.  <table width="100%" border="0">
034.    <tr>
035.      <td width="20%"><a href="index.php"><img src="images/Web_Tag.png" /></a></td>
036.      <td width="80%"><table width="100%" border="0">
037.        <tr>
038.          <td width="8%">&nbsp;</td>
039.          <td width="2%">&nbsp;</td>
040.          <td width="11%">&nbsp;</td>
041.          <td width="54%">&nbsp;</td>
042.          <td width="25%">&nbsp;</td>
043.        </tr>
044.        <?php
045.    require_once('class/class.member.php');
046.    if($sess_user){
047.     
048.    $obMember->user_sess = $sess_user;
049.    $obMember->pass_sess = $sess_pass;
050.    $result = $obMember->check_userpass();
051.    while($R = mysql_fetch_array($result)){
052.    ?>
053.        <tr>
054.          <td colspan="5"><div class="name_login">
055.            <font color="#FFFFFF">
056.              <?= "&nbsp".ยินดีต้อนรับ."&nbsp".คุณ."&nbsp".$R['firstname']."&nbsp;".สถานะ."&nbsp;". $R['MemType']."&nbsp";
057.          $idMem = $R['idMember'];
058.           }  ?>
059.            </font>
060.            </div>            </td>
061.          </tr>
062.        <tr>
063.        <? }else{?>
064.          <td colspan="4">
065.          <div class="re_gis">
066.          <a href="register.php"><font color="#FFFFFF">สมัครสมาชิก</font></a>
067.          </div>
068.          </td>
069.          <? //<td><a href="register.php?height=665&width=620&modal=true" class="thickbox"><font color="#FFFFFF">สมัครสมาชิก</font></a></td> ?>
070.          <td>
071.          <div class="forget">
072.          <a href="forget_pass.php"><font color="#FFFFFF">ลืมรหัสผ่าน</font></a>
073.          </div>
074.          </td>
075.          <? }?>
076.        </tr>
077.      </table></td>
078.    </tr>
079.  </table>
080.</div>
081. 
082.<!---- use sytle-menu.css ------>
083.<div id="header">
084.  <table width="100%" border="0" align="left">
085.    <tr>
086.      <td width="11%" align="center" valign="top"><a href="index.php"><img src="images/home.png" name="home" class="herder_on" id="home" onmousemove="home.src='images/home1.png';" onmouseout="home.src='images/home.png';" /> </a></td>
087.      <td width="11%" align="center" valign="top"><a href="login.php?height=364&amp;width=510&amp;modal=true" class="thickbox" title="Please Sign In"><img src="images/member.png" name="member"
088.        class="herder_on" id="member" onmousemove="member.src='images/member1.png';" onmouseout="member.src='images/member.png'" /></a></td>
089.      <td width="11%" align="center" valign="top"><a href="product.php"><img src="images/product.png" name="product" class="herder_on" id="product" onmousemove="product.src='images/product1.png';"
090.        onmouseout="product.src='images/product.png';" /></a></td>
091.      <td width="11%" align="center" valign="top"><a href="payment.php"><img src="images/payment.png" name="payment" class="herder_on" id="payment" onmousemove="payment.src='images/payment1.png';"
092.        onmouseout="payment.src='images/payment.png';" /></a></td>
093.      <td width="11%" align="center" valign="top"><a href="r_product.php"><img src="images/r_product.png" name="r_product" class="herder_on" id="r_product" onmousemove="r_product.src='images/r_product1.png';"
094.        onmouseout="r_product.src='images/r_product.png';" /></a></td>
095.      <td width="11%" align="center" valign="top"><a href="rules.php?height=550&amp;width=850&amp;modal=true" class="thickbox"><img src="images/board.png" name="board" class="herder_on" id="board"
096.        onmousemove="board.src='images/board1.png';" onmouseout="board.src='images/board.png';" /></a></td>
097.      <td width="11%" align="center" valign="top"><a href="contact.php"><img src="images/contact.png" name="contact" class="herder_on" id="contact"
098.        onmousemove="contact.src='images/contact1.png';" onmouseout="contact.src='images/contact.png';" /></a></td>
099.      <td width="11%" align="center" valign="top">
100.      <? if(session_is_registered('sessAdminId') || session_is_registered('sessOwner')){ ?>
101.          <a href="Admin.php"><img src="images/owner.png" name="owner" class="herder_on" id="owner" onmousemove="owner.src='images/owner1.png';"
102.          onmouseout="owner.src='images/owner.png';" /></a>
103.        <?  }else if(session_is_registered('sessMemId') || session_is_registered('sessUser') || session_is_registered('sessMember')){ ?>
104.         <a href="logout.php"><img src="images/logout.png" name="logout" class="herder_on" id="logout" onmousemove="logout.src='images/logout1.png';"
105.            onmouseout="logout.src='images/logout.png';" /></a>
106.         <? } ?>    </td>
107.      <td width="11%" align="center" valign="top">
108.      <? if(session_is_registered('sessAdminId') || session_is_registered('sessOwner') ){ ?>
109.          <a href="logout.php"><img src="images/logout.png" name="logout" class="herder_on" id="logout" onmousemove="logout.src='images/logout1.png';"
110.            onmouseout="logout.src='images/logout.png';" /></a>
111.        <? } ?>     </td>
112.    </tr>
113.  </table>
114.</div>
115. 
116. 
117. 
118. 
119. 
120. 
121.<div class="show_order">
122.<table width="99%" border="0">
123.  <tr>
124.    <td width="58%" align="right">&nbsp;</td>
125.    <td width="30%" align="left">&nbsp;</td>
126.    <td width="12%" rowspan="2" align="right" valign="top">
127.<!----------------------------------- order product ---------------------------------------->
128.<?php
129.    if(session_is_registered('sessUser') || session_is_registered('sessMember')){
130.    ?>
131.    <!----- order product ----->
132.    <script type="text/javascript" src="scripts/order-jquery.js"></script>
133.    <script type="text/javascript" src="scripts/order.js"></script>
134.    <div style="float:center;border:1px dashed #333;padding:10px;position:fixed;background:#FF9;z-index:40;" class="my-cart">
135.    <img src="images/c_c.png" width="24" height="24" /> <b>สินค้าในตะกร้า</b><br />
136.    <div style="margin-left:5px;">
137.            <?php
138.    if(count($_SESSION["cartNumber"])>0){
139.        $TotalAmount=0;$TotalPrice=0;
140.        foreach($_SESSION["cartNumber"] as $RowCount){
141.            $quantity+=$_SESSION[$RowCount][1];#คำนวณหาจำนวนสินค้าทั้งหมด
142.        }
143.            $num=count($_SESSION['cartNumber']);
144.    }else{
145.        $num=0;
146.        $quantity=0;
147.    }
148.    ?>
149.    <? //<a href="mycart.php?width=900&modal=true" class="thickbox" onclick="openMycart();return false;"> ?>
150.    <a href="javascript:void(0);" onclick="openMycart()">
151.    <font color="#000000"><span class="cart_num"><?=$num?></span> รายการ <span class="cart_quantity"><?=$quantity;?> </span> ชิ้น </font>
152.    </a>
153.    <? //echo openMycart(); ?>
154.      
155.        </div>
156.    </div>
157.    <? } ?>
158.<!--------------------------------------------------------------------------->
159.    </td>
160. 
161.  </tr>
162.  <tr>
163.    <td>&nbsp;</td>
164.    <td>&nbsp;</td>
165.    </tr>
166.</table>
167.</div>
168. 
169.</body>
170.</html>



ประวัติการแก้ไข
2012-03-02 11:17:13
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-02 11:14:12 By : teukkead
 

 

No. 4



โพสกระทู้ ( 169 )
บทความ ( 0 )



สถานะออฟไลน์


main.php

Code (PHP)
001.<?php
002.session_start();
003.if((!session_is_registered('sessAdminId')) && (!session_is_registered('sessMemId')) && (!session_is_registered('sessUser')) && (!session_is_registered('sessOwner'))&&
004.(!session_is_registered('sessMember'))){
005.echo "<meta http-equiv='refresh' content='0; url=index.php' />";
006.}
007. 
008.  
009.require_once('header.php');
010.$num_col = 5;
011.$ColumnStart=1;
012.?>
013.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
014.<html  xmlns="http://www.w3.org/1999/xhtml">
015.<head>
016.<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
017.<link href="style/style.css" rel="stylesheet" type="text/css" />
018.<!------ slide image ------>
019.<link rel="stylesheet" href="themes/default/default.css" type="text/css" media="screen" />
020.<link rel="stylesheet" href="themes/pascal/pascal.css" type="text/css" media="screen" />
021.<link rel="stylesheet" href="themes/orman/orman.css" type="text/css" media="screen" />
022.<link rel="stylesheet" href="style/nivo-slider.css" type="text/css" media="screen" />
023.<link rel="stylesheet" href="style/style-nivo.css" type="text/css" media="screen" />
024.<!------ view image ------>
025.<link rel="stylesheet" href="style/ThickBox.css" type="text/css" media="screen" />
026.<script type="text/javascript" src="scripts/thickbox.js"></script>
027. 
028.<title>waan waan</title>
029. 
030.<style type="text/css">
031.<!--
032..style7 {
033.    font-size: 16px;
034.    color: #FF00FF;
035.}
036.-->
037.</style>
038.</head>
039.<body bgcolor="#f8b7b8">
040. 
041.<div id="fb-root"></div>
042.<script>(function(d, s, id) {
043.  var js, fjs = d.getElementsByTagName(s)[0];
044.  if (d.getElementById(id)) return;
045.  js = d.createElement(s); js.id = id;
046.  js.src = "//connect.facebook.net/th_TH/all.js#xfbml=1";
047.  fjs.parentNode.insertBefore(js, fjs);
048.}(document, 'script', 'facebook-jssdk'));
049.</script>
050. 
051.<div class="bgFull">
052.<table width="100%" border="0">
053.  <tr align="center">
054.    <td width="31%" valign="top"><table width="100%" border="0" align="center">
055.      <tr>
056.        <td>
057.        <div class="promotion"></div>
058.    <div class="bg_left1">
059.        <div class="dotted">
060.        <!--- promotion -->
061.        <marquee onMouseover="stop()" onmouseout="start()" scrollAmount=2 direction=up width=390 height=100 >
062.        <table width="100%" border="0">
063.        <?php
064.        require_once('class/class.promotion.php');
065.             
066.        $result = $obPromotion->get_promotion();
067.        while($E = mysql_fetch_array($result)){
068.        ?>
069.        <tr>
070.            <td>
071.            <div id="animateList">
072.            &nbsp;<img src="images/b2_head.gif" />&nbsp;
073.            <a href="promotion_detail.php?id=<?=$E['id']?>"><?= "&nbsp;".$E['title'];?></a>
074.            </div>
075.            </td>
076.        </tr>
077.        <? } ?>
078.        </table>
079.         </marquee>
080.         
081.        </div>
082.    </div>
083.    <table width="100%" border="0" align="center">
084.      <tr>
085.        <td> <p>&nbsp;</p></td>
086.      </tr>
087.    </table>
088.    <table width="100%" border="0">
089.      <tr>
090.        <td align="center">หมวดสินค้า</td>
091.      </tr>
092.    </table>
093.    <div class="dotted">
094.    <div class="bg_left1">
095.    <table width="100%" border="0">
096.    <?php
097.    require_once('class/class.category.php');
098.          $i=0;
099.          $result = $obCate->getTyep();
100.          while($R = mysql_fetch_array($result)){
101.          $id = $R['idCate'];
102.    ?>
103.       <tr>
104.        <td>
105.        <div id="animateList">
106.        &nbsp;<img src="images/b2_head.gif" />&nbsp;
107.            <a href="product.php?id=<?=$id;?>"><?=$R['nameCate']?></a>
108.        </div>
109.        </td>
110.      </tr>
111.      <? } ?>
112.    </table>
113.    </div>
114.    </div>
115.    <table width="100%" border="0">
116.      <tr>
117.        <td>&nbsp;</td>
118.      </tr>
119.    </table>
120.    <table width="100%" border="0">
121.      <tr>
122.        <td align="center"><a href="look_order.php"><font color="#000000">ข้อมูลการโอนเงิน</font></a></td>
123.      </tr>
124.    </table>
125.    <table width="100%" border="0">
126.      <tr>
127.        <td>&nbsp;</td>
128.      </tr>
129.    </table>
130.    <table width="100%" border="0">
131.      <tr>
132.        <td><div class="bg_left1">
133.            <div class="facebook">
134.              <div class="fb-like" data-send="true" data-width="350" data-show-faces="true"></div>
135.              <div class="fb-subscribe" data-href="https://www.facebook.com/SweetyLensShop" data-show-faces="true" data-width="350"></div>
136.              <div class="fb-comments" data-href="https://www.facebook.com/SweetyLensShop" data-num-posts="2" data-width="350"></div>
137.            </div>
138.        </div></td>
139.      </tr>
140.    </table>
141.    <table width="100%" border="0">
142.      <tr>
143.        <td>&nbsp;</td>
144.      </tr>
145.    </table>
146.    <p>&nbsp;</p>
147.    <p>&nbsp;</p>
148.    <div class="calenda">
149.      <table width="69%" border="0" align="center">
150.        <tr>
151.          <td>
152.         <embed src="http://www.123mycodes.com/flash/calendar/hearts/4.swf" quality="high"
153.            pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="280" height="215"></embed>
154.             
155.            <embed src="http://www.respectsoft.com/onlineclock/apple.swf" width="200" height="200" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
156.             
157.            <embed src="http://www.respectsoft.com/onlineclock/digitalclock.swf" width="200" height="100" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
158.             
159.         
160.          </td>
161.        </tr>
162.      </table>
163.    </div>
164.    <table width="100%" border="0">
165.      <tr>
166.        <td>&nbsp;</td>
167.      </tr>
168.    </table>
169.    <p>&nbsp;</p>
170.    <p>&nbsp;</p>
171.    <p>&nbsp;</p>
172.    <p>&nbsp;</p>
173.    <p>&nbsp;</p>
174.    <p>&nbsp;</p>
175.    <p>&nbsp;</p>
176.    <p>&nbsp;</p>
177.    <p>&nbsp;</p>
178.    <p>&nbsp;</p>
179.    <p>&nbsp;</p>
180.    <p>&nbsp;</p>
181.    <p>&nbsp;</p>
182.    <p>&nbsp;</p>
183.    <p>&nbsp;</p>
184.    <p>&nbsp;</p>
185.    <p>&nbsp;</p>
186.    <p>&nbsp;</p>
187.    <p>&nbsp;</p>
188.    <p>&nbsp;</p>
189.    <p>&nbsp;</p>
190.    <p>&nbsp;</p>
191.    <p>&nbsp;</p>
192.    <p>&nbsp;</p>
193.    <p>&nbsp;</p>
194.    <p>&nbsp;</p>
195.    <p>&nbsp;</p>
196.    <p>&nbsp;</p>
197.    <p>&nbsp;</p>
198.    <p>&nbsp;</p>
199.    <p>&nbsp;</p>
200.    <p>&nbsp;</p>
201.    <p>&nbsp;</p>
202.    <p>&nbsp;</p>
203.    <p>&nbsp;</p>
204.    <p>&nbsp;</p>
205.    <p>&nbsp;</p>
206.    <p>&nbsp;</p>
207.    <p>&nbsp;</p>
208.    <p>&nbsp;</p>
209.    <p>&nbsp;</p>
210.    <p>&nbsp;</p>
211.    <p>&nbsp;</p>
212.    <p>&nbsp;</p>
213.    <p>&nbsp;</p>
214.    <p>&nbsp;</p>
215.    <p>&nbsp;</p>
216.    <p>&nbsp;</p>
217.    <p>&nbsp;</p>
218.    <p>&nbsp;</p>
219.    <p>&nbsp;</p>
220.    <p>&nbsp;</p>
221.        <p>&nbsp;</p>
222.        <p>&nbsp;</p>
223.        <p>&nbsp;</p>
224.        <p>&nbsp;</p>
225.        <p>&nbsp;</p>
226.        <p>&nbsp;</p>
227.        <p>&nbsp;</p>
228.        <p>&nbsp;</p>
229.        <p>&nbsp;</p>
230.        <p>&nbsp;</p>
231.        <p>&nbsp;</p>
232.        <p>&nbsp;</p>
233.        <p>&nbsp;</p>
234.        <p>&nbsp;</p>
235.        <p>&nbsp;</p>
236.        <p>&nbsp;</p>
237.        </td>
238.      </tr>
239.    </table>    </td>
240.    <td width="1%" valign="top">&nbsp;</td>
241.     
242.    <div class="right">
243.     
244.    <td width="68%" valign="top">
245.    <table width="100%" border="0">
246.  <tr>
247.    <td>
248.    <div id="wrapper">
249.      <div class="slider-wrapper theme-default">
250.        <div id="slider" class="nivoSlider">
251.        <img src="images/slide/slide2.jpg" />
252.        <img src="images/slide/toystory.jpg" />
253.        <img src="images/slide/up.jpg" />
254.        <img src="images/slide/walle.jpg"  data-transition="slideInLeft" />
255.        <img src="images/slide/nemo.jpg" /> </div>
256.      </div>
257.      </div>
258.        <script type="text/javascript" src="scripts/jquery-1.7.1.min.js"></script>
259.        <script type="text/javascript" src="scripts/jquery.nivo.slider.pack.js"></script>
260.        <script type="text/javascript">
261.            var j = jQuery.noConflict(true);
262.            j(window).load(function() {
263.                j('#slider').nivoSlider();
264.            });
265.      </script>      </td>
266.  </tr>
267.</table>
268. 
269.<table width="100%" border="0">
270.  <tr>
271.    <td>
272.         <p>&nbsp;</p>
273.       
274.      </td>
275.  </tr>
276.</table>
277. 
278.     <table width="100%" border="0">
279.      <tr>
280.        <td><table width="100%" border="0">
281.          <tr align="center" valign="top">
282.            <td><table width="93%" border="0" align="left">
283.                <tr>
284.                  <td><a href="track.php"><font color="#000000">แจ้งหมายเลขพัสดุ</font></a></td>
285.                </tr>
286.            </table></td>
287.            <td><table width="100%" border="0">
288.                <tr>
289.                  <td><a href="check_sent_order.php"><font color="#000000"> เช็คสถานะออเดอร์ </font></a></td>
290.                </tr>
291.            </table></td>
292.            <td><table width="100%" border="0">
293.                <tr>
294.                  <td><a href="f_hot.php"><font color="#000000">กระทู้สุดฮิต</font></a></td>
295.                </tr>
296.            </table></td>
297.          </tr>
298.          <tr align="left" valign="top">
299.            <td width="33%"><div class="dotted">
300.                <div class="bg_left1">
301.                  <table width="100%" border="0">
302.                    <?php
303.                    //แจ้งหมายเลขพัสดุ
304.                require_once('class/class.track.php');
305.                $track = $obTrack->look_Limit_track();
306.                while($T = mysql_fetch_array($track)){
307.                $detail = $T['track']."&nbsp;".$T['name'] ;
308.                $sub_detail = substr($detail,0,50)."&nbsp;"."..."
309.                 
310.            ?>
311.                    <tr>
312.                      <td>
313.                      <div id="animateList">
314.                      &nbsp; <img src="images/b2_head.gif" /> &nbsp;
315.                      <a href="trackid.php?id=<?=$T['id']?>">
316.                        <?php echo $sub_detail;   ?>
317.                      </a>
318.                      </div>
319.                        <div id="hr"></div>
320.                          </td>
321.                    </tr>
322.                    <? } ?>
323.                  </table>
324.                </div>
325.            </div></td>
326.            <td width="33%"><div class="dotted">
327.                <div class="bg_left1">
328.                  <table width="100%" border="0">
329.                  <?php
330.                  //เช็คสถานะออเดอร์
331.                  require_once('class/class.transfer.php');
332.                  $check_order = $obTransfer->look_transfer_limit();
333.                  while($cehek_date_con = mysql_fetch_array($check_order)){
334.                  if($cehek_date_con['status']==1){
335.                    $sented = "(ส่งสินค้าแล้ว)";
336.                  }else{
337.                    $sented = "(ยังไม่ได้ส่งสินค้า)";
338.                    }
339.                   
340.                  //$order_sent = "Lot".$cehek_date_con['id']."&nbsp;".$cehek_date_con['firstname']."&nbsp;".$sented;
341.                  //$sub_order_sent = substr($order_sent,0,50)."...";
342.                   
343.                  ?>
344.                   
345.                    <tr>
346.                      <td>
347.                      <div id="animateList">
348.                       &nbsp; <img src="images/b2_head.gif" /> &nbsp;
349.                       <a href="check_sent_orderid.php?id=<?=$cehek_date_con['id']?>"><?= "Lot".$cehek_date_con['id']."&nbsp;".$cehek_date_con['firstname']."&nbsp;".$sented;?></a>
350.                      </div>
351.                      <div id="hr"></div>
352.                      </td>
353.                    </tr>
354.                    <? } ?>
355.                  </table>
356.                </div>
357.            </div></td>
358.            <td width="31%"><div class="dotted">
359.                <div class="bg_left1">
360.                  <table width="100%" border="0">
361.                  <?php
362.                  require_once('class/class.forum.php');
363.                  $hit_forum = $obForum->get_hit_forum();
364.                  while($hit = mysql_fetch_array($hit_forum)){
365.                  $image_hit = $hit['view'];
366.                  //forum hot
367.                  if($image_hit >= 10){
368.                    $f_hot = "<img src=images/hot.gif />";
369.                  }else if($image_hit>=5 && $image_hit<=9 ){
370.                    $f_hot = "<img src=images/cool.gif />";
371.                  }else{
372.                    $f_hot = " ";
373.                  }
374.                  ?>
375.                    <tr>
376.                      <td>
377.                       <div id="animateList">
378.                       &nbsp; <img src="images/b2_head.gif" /> &nbsp;
379.                       <a href="forum_detail.php?id=<?=$hit['id_forum']?>"><?=$hit['title']."&nbsp;".$f_hot?></a>
380.                      </div>
381.                      <div id="hr"></div>
382.                      </td>
383.                    </tr>
384.                    <? } ?>
385.                  </table>
386.                </div>
387.            </div></td>
388.          </tr>
389.        </table>
390.          <table width="100%" border="0">
391.      <tr>
392.        <td align="center"><p>&nbsp;</p>
393.          <p>สินค้าขายดี</p></td>
394.      </tr>
395.    </table>
396.    <table width="100%" border="0">
397.      <tr>
398.        <td align="left" valign="top">
399.        <table width="221" border="0" align="center">
400.          <tr>
401.            <?php
402.        //iframe
403.        //<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> 
404.        //php
405.        //<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>
406.         
407.        //<a href="ajax.PHP?height=220&width=400" class="thickbox" title="add a caption to title attribute / or leave blank">No-scroll content</a>
408.         
409.        /*
410.        <a href="pic/<?=$R['pic'];?>" title="<?=$R['description']?>" class="thickbox"> <img border="1" src="pic/<?=$R['pic'];?>"  width="150" height="180" class="productImg" /></a>
411.        <?php echo '<br />'.$R['namepro']?> <br />
412.        <?= $R['price']." "."บาท"?><br />
413.        <a href="#" onclick="add2cart(this,<?=$R['idpro']?>); return false;"> <img src="images/c_c.png" title="หยิบใส่ตะกร้า" width="24" height="24" border="0" /></a>
414.        */
415.                  require('class/class.product.php');
416.                  $result = $obProduct->get_product_by_rating();
417.                  while($R = mysql_fetch_array($result)){
418.                  ?>
419.        <td width="271" align="center" class="productImg">
420.        <a href="pic/<?=$R['pic'];?>" title="<?=$R['description'];?>" class="thickbox"> <img border="1" src="pic/<?=$R['pic'];?>"  width="165" height="200" class="productImg" /></a>
421.        <?php echo '<br />'.$R['namepro']?> <br />
422.        <?= $R['price']." "."บาท"?><br />
423.        <a href="#" onclick="add2cart(this,<?=$R['idpro']?>); return false;"> <img src="images/c_c.png" title="หยิบใส่ตะกร้า" width="24" height="24" border="0" /></a>
424.        </td>
425.            
426.            <?php
427.            if($ColumnStart==$num_col){//หากคอลัมน์เท่ากับจำนวนคอลัมน์ที่กำหนดไว้
428.                echo '</tr><tr>';//สร้างแท็ก </tr> ปิด เพื่อจบแถว และสร้าง <tr>เพื่อสร้างแถวใหม่
429.                $ColumnStart=0;//เซตเป็น 0 เพื่อเริ่มนับคอลัมน์ใหม่
430.            }
431.            $ColumnStart++;//เพิ่มคอลัมน์ทีละ1คอลัมน์
432.            }
433.             ?>
434.          </tr>
435.        </table>
436.          </td>
437.      </tr>
438.    </table>
439.    <table width="100%" border="0">
440.      <tr>
441.        <td align="center"><img src="images/main_09.jpg" /></td>
442.      </tr>
443.    </table>
444.   <?php
445.        $result = $obCate->getTyep();
446.        $i=0;
447.        while($E = mysql_fetch_array($result)){
448.        $id = $E['idCate'];
449.    ?>
450.    <table width="100%" border="0">
451.      <tr>
452.        <td>
453.        <div id="animateList">
454.        <a href="product.php?id=<?=$id;?>"><?=$E['nameCate']?></a>
455.        </div>
456.        </td>
457.      </tr>
458.    </table>
459.<!------------------------------------------------------------------------------------------------------------------------------------------->
460.    <table width="221" border="0" align="center">
461.         <tr>
462.            <?php
463.                $obProduct->id = $id;
464.                $result2 = $obProduct->get_ProductBytype();
465.                 
466.                $num = mysql_num_rows($result2);
467.                    if($num == 0){
468.                        echo "<font color = red>กรุณาเลือกหมวดสินค้า หรือ หมวดสินค้านี้ไม่มีสินค้า</font>";
469.                    }
470.                while($R = mysql_fetch_array($result2)){
471.                  ?>
472.        <td width="271" align="center" class="productImg">
473.            <a href="pic/<?=$R['pic'];?>" title="<?=$R['description'];?>" class="thickbox">
474.            <img border="1" src="pic/<?=$R['pic'];?>"  width="165" height="200" class="productImg" /></a>
475.            <?php echo '<br />'.$R['namepro']?> <br /><?= $R['price']." "."บาท"?><br />
476.            <a href="#" onclick="add2cart(this,<?=$R['idpro']?>); return false;"> <img src="images/c_c.png" title="หยิบใส่ตะกร้า" width="24" height="24" border="0" /></a>
477.        </td>
478.            <?php
479.                //if($ColumnStart==$num_col){
480.                //  echo '</tr><tr>';
481.                //  $ColumnStart=0;
482.                //}
483.                //$ColumnStart++;
484.            }
485.             ?>
486.         </tr>
487.       </table>
488.<!------------------------------------------------------------------------------------------------------------------------------------------->
489.<table width="100%" border="0">
490.      <tr>
491.        <td><img src="images/main_09.jpg" /></td>
492.      </tr>
493.    </table>
494.      <?
495.      $i++;
496.      }
497.      ?>
498.          <p>&nbsp;</p>
499.          <p>&nbsp;</p>
500.          <p>&nbsp;</p>
501.          <p>&nbsp;</p>
502.          <p>&nbsp;</p>
503.          <p>&nbsp;</p>
504.          <p>&nbsp;</p>
505.          <p>&nbsp;</p>
506.          <p>&nbsp;</p>
507.          <p>&nbsp;</p>
508.          <p>&nbsp;</p>
509.          <p>&nbsp;</p></td>
510.      </tr>
511.    </table>
512.    <p>&nbsp;</p>
513.    <p>&nbsp;</p>
514.    <p>&nbsp;</p>
515.    <p>&nbsp;</p>
516.    <p>&nbsp;</p>
517.    <p>&nbsp;</p>
518.    <p>&nbsp;</p>
519.    <p>&nbsp;</p>
520.    <p>&nbsp;</p>
521.    <p>&nbsp;</p>
522.    </td>
523.    </div>
524. 
525.  </tr>
526.</table>
527.</div>
528. 
529. 
530.<div class="footer">
531.<table width="100%" border="0">
532.  <tr>
533.    <td height="43" align="center">&nbsp;</td>
534.  </tr>
535.</table>
536.</div>
537.</body>
538.</html>

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-02 11:18:14 By : teukkead
 

 

No. 5



โพสกระทู้ ( 169 )
บทความ ( 0 )



สถานะออฟไลน์


order.js

Code (PHP)
001.(function($){
002.    $.box=function(data){
003.    var config={
004.        action : '',
005.        ajaxurl : null,
006.        addClass    :   '',
007.        ajaxdata    :   {}
008.    };
009.    if(typeof data == 'object'){
010.        $.extend(config, data);
011.        $('body').data('box',config);  
012.    }
013.    var divbox;
014.    var divbody;
015.    if($('#box').length==0){
016.        divbox = $('<div/>').attr('id','box').hide();
017.        var html = '';
018.        html += '<table cellpadding="0" cellspacing="0" align="center" class="cartbox">';
019.        html += '<tbody>';
020.        html += '<tr><td></td><td><div class="close">CLOSE</div></td><td></td></tr>';
021.        html += '<tr><td></td><td id="boxbody"></td><td></td></tr>';
022.        html += '<tr><td></td><td></td><td></td></tr>';
023.    html += '</tbody>';
024.        html += '</table>';
025.        divbox.html(html);
026.            divbox.appendTo(document.body);
027.            divbody = $('#boxbody');
028.    }else{
029.            divbox = $('#box');
030.            divbody = $('#boxbody');
031.    }
032.    divbox.addClass('position-absolute');
033.    if(config.addClass!=''){
034.            divbox.addClass(config.addClass);
035.        }
036.        if(config.ajaxurl!=null){
037.            divbody.html('');
038.            $.ajax({
039.                type: 'POST',
040.                url: config.ajaxurl,
041.                cache: false,
042.                data: config.ajaxdata,
043.                success: function(data) {
044.                    divbody.html(data);
045.                    $.boxPosition(divbox);
046.                }
047.            });
048.        }else if(config.html!=null){
049.            divbody.html(config.html);
050.        }else if(config.selector!=null){
051.            $(divbody).empty();
052.            $(config.selector).clone().appendTo(divbody);
053.        }else if(typeof this == 'object' && $(this).length > 0 ){
054.            var w = $(this).outerWidth(true);
055.            divbody.empty();
056.            divbody.width(w);
057.            divbody.html($(this).html());
058.        }
059.        $.boxPosition(divbox);
060.        var divback = null;
061.            if($('#boxback').length==0){
062.                divback = $('<div/>').attr('id','boxback').hide().insertBefore(divbox);
063.            }else{
064.                divback = $('#boxback');
065.            }
066.            $(divback).width($(window).width());
067.            $(window).resize(function(){
068.                $(divback).width($(window).width());
069.            });
070.            if($(document).height()>$(window).height()){
071.                $(divback).height($(document).height());
072.            }else{
073.                $(divback).height($(window).height());
074.                $(window).resize(function(){
075.                    $(divback).height($(window).height());
076.                });
077.            }
078.            $(divback).css('background-color','#000').css('opacity',0.3).css('filter', 'alpha(opacity='+(0.3*100)+')');
079.        if(config.action!=''){
080.            $.boxAction(config.action,divbox,divback,config);
081.            if(config.callback != null){
082.                config.callback();
083.            }
084.        }
085.        //Close box
086.            $('#box, #box .close, #boxback').bind('click.close',function(event){
087.                if(event.target == this){
088.                    $.boxAction('hide',divbox,divback,config);
089.                    $('#box, #box .close, #boxback').unbind('click.close');
090.                }
091.            });
092.    };
093.$.boxAction = function(action,divbox,divback,config){
094.    if(action=='show'){
095.        $(divbox).fadeIn(300);
096.        $(divback).fadeIn(300);
097.        $(document).unbind('keydown.box');
098.        $(document).bind('keydown.box',function(event){
099.            if($(divbox).length==0){
100.                $(document).unbind('keydown.box');
101.            }else{
102.                if(event.keyCode == 27){
103.                    $(document).unbind('keydown.box');
104.                    $.boxAction('hide',divbox,divback,config);
105.                }
106.            }
107.        });
108.    }else if(action=='hide'){
109.        if(config.action=='showhide'){
110.            $(divback).add(divbox).remove();
111.        }else{
112.            $(divbox).fadeOut(300,function(){
113.                $(this).remove();
114.            });
115. 
116.            $(divback).fadeOut(300,function(){
117.                $(this).remove();
118.            });
119.        }
120.    }else if(action=='showhide'){
121.        $(document).one('keydown.box',function(event){
122.            if(event.keyCode == 27){
123.                $.boxAction('hide',divbox,divback,config);
124.            }
125.        });
126.        divbox.add(divback).fadeIn(500).delay(2000).fadeOut(500,function(){
127.            $(divbox).remove();
128.            $(divback).remove();
129.            $(document).unbind('keydown.box',function(event){
130.                if(event.keycode == 27){
131.                    $.boxAction('hide',divbox,divback,config);
132.                }
133.            });
134.        });
135.    }
136.};
137.//var jQuery = jQuery.noConflict(true);  ---->add
138.$.boxPosition = function(divbox){//position of box dialog in center window
139.    var top;
140.    top = ($(window).height()-28)/4;
141.    top_css = parseInt($(document).scrollTop()+top);
142.    divbox.css('top',top_css+'px');
143.    divbox.css('left','0px');
144.}  
145.});//(jQuery);
146.function add2cart(ele,pdid){// add to cart ajax
147.    $.ajax({
148.        url:"chkcart.php?cartid="+pdid,
149.        dataType: 'json',
150.        success: function(data) {
151.        img2cart($(ele).closest('.productItem').find('.productImg'),function(){
152.            $('.cart_num').html(data.num);
153.            $('.cart_quantity').html(data.quantity);
154.        });
155.        }
156.    });
157.}
158.function img2cart(img,success){// animate product image
159.    if(img==null || $(img).length == 0){
160.    }else{
161.        var $imgclone = $(img).clone();
162.        $imgclone.get(0).className='';
163.        var _h = $(img).height();
164.        var _w = $(img).width();
165.        var __h = $('.my-cart').height();
166.        var mycart_position=$('.my-cart').position().left;
167.        var __w = __h*_w/_h;
168.        $imgclone.css({position:'absolute',top:$(img).position().top,left:$(img).position().left,height: _h,width: _w});
169.        $imgclone.appendTo('body');
170.        var prop = {
171.            top: $(window).scrollTop()+40,
172.            left:mycart_position,
173.            opacity: 0.5,
174.            height: __h,
175.            width: __w
176.        };
177.        $imgclone.animate(prop,1000,function(){
178.            $imgclone.remove();
179.            if(typeof success == 'function'){
180.                success();
181.            }
182.        });
183.    }
184.}
185.//jQuery("div p").hide();
186.//$('someid').hide();
187. 
188. 
189.function openMycart(){
190.    var html='';
191.    $.box({
192.        ajaxurl: 'mycart.php',
193.        action  : 'show'
194.    })(j);
195.}

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-02 11:18:47 By : teukkead
 

 

No. 6



โพสกระทู้ ( 169 )
บทความ ( 0 )



สถานะออฟไลน์


มี order-jqury.js อีกตัวค่ะแต่มันยาวไปโพสแล้วเป็นหน้าขาวๆ
ไฟล์ที่เกี่ยวข้องก็มีประมาณนี้ค่ะ

ตอนนี้มันกดตะกร้าสินค้าไม่ขึ้น
แต่ถ้ามันมี jquery ตัวเดียวมันใช้ได้ตามปกติค่ะ
เคยลองเอาฟังก์ชัน

Code (PHP)
1.<script type="text/javascript">
2.            var j = jQuery.noConflict(true);
3.            j(window).load(function() {
4.                j('#slider').nivoSlider();
5.            });
6.      </script>


ออกแล้วฟังก์ชัน
Code (PHP)
1.function openMycart(){
2.    var html='';
3.    $.box({
4.        ajaxurl: 'mycart.php',
5.        action  : 'show'
6.    })(j);
7.}


ใช้ได้แต่ ฟังก์ชันนี้ไม่ทำงาน
Code (PHP)
01.function img2cart(img,success){// animate product image
02.    if(img==null || $(img).length == 0){
03.    }else{
04.        var $imgclone = $(img).clone();
05.        $imgclone.get(0).className='';
06.        var _h = $(img).height();
07.        var _w = $(img).width();
08.        var __h = $('.my-cart').height();
09.        var mycart_position=$('.my-cart').position().left;
10.        var __w = __h*_w/_h;
11.        $imgclone.css({position:'absolute',top:$(img).position().top,left:$(img).position().left,height: _h,width: _w});
12.        $imgclone.appendTo('body');
13.        var prop = {
14.            top: $(window).scrollTop()+40,
15.            left:mycart_position,
16.            opacity: 0.5,
17.            height: __h,
18.            width: __w
19.        };
20.        $imgclone.animate(prop,1000,function(){
21.            $imgclone.remove();
22.            if(typeof success == 'function'){
23.                success();
24.            }
25.        });
26.    }
27.}

ไม่รู้ว่ามันเกี่ยวกันรึป่าว


ประวัติการแก้ไข
2012-03-02 11:24:47
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-02 11:19:54 By : teukkead
 

 

No. 7



โพสกระทู้ ( 169 )
บทความ ( 0 )



สถานะออฟไลน์


พอดีเขียน javascript ไม่เป็นค่ะ แต่พอจะอ่านเข้าในอยุ่นิดหน่อยค่ะ ติดแค่นี้ ถ้าอันนี้ได้ก็เสร็จแล้วค่ะ ช่วยหน่อยนะคะ ขอบคุณล่วงหน้าคะ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-02 11:28:25 By : teukkead
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยหน่อยค่ะอีกนิดเดียวจะเสร็จแล้ว มันขึ้น error เหมือนในรูปค่ะ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)





ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2025 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่