Hidden Link - Please help.

Reply

Join Date: Sep 2008
Posts: 6
Reputation: rosepleasure is an unknown quantity at this point 
Solved Threads: 0
rosepleasure rosepleasure is offline Offline
Newbie Poster

Hidden Link - Please help.

 
0
  #1
Oct 31st, 2008
Please help checking the following code. It may look too mess. It's from other programmer. I try to fix it but I start to get headache now. It's make our product's page showing 3 hidden links of its own products' link on Google.
For example: The page of http://www.mywebsite.com/product-name-1.html, currently showing 3 hidden links of http://www.mywebsite.com/product-name-1.html on Google.

  1. <?php
  2. /*
  3.   $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $
  4.  
  5.   osCommerce, Open Source E-Commerce Solutions
  6.   http://www.oscommerce.com
  7.  
  8.   Copyright (c) 2003 osCommerce
  9.  
  10.   Released under the GNU General Public License
  11. */
  12. //header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  13. //header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
  14. //header("Cache-Control: no-store, no-cache, must-revalidate");
  15. //header("Cache-Control: post-check=0, pre-check=0", false);
  16. header("Pragma: no-cache");
  17.  
  18. $info = 1;
  19. require('includes/application_top.php');
  20.  
  21. require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);
  22.  
  23. //################## Added Enable / Disable Categories #################"
  24. // $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
  25. $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
  26. //################## End Added Enable / Disable Categories #################
  27. $product_check = tep_db_fetch_array($product_check_query);
  28. ?>
  29.  
  30. <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
  31. <html <?php echo HTML_PARAMS; ?>>
  32. <head>
  33. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  34. <TITLE><?php echo $titletag; ?></TITLE>
  35. <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
  36. <META NAME="Keywords" content="<?php echo $keywordtag; ?>">
  37. <META NAME="Description" content="<?php echo $description; ?>">
  38. <META NAME="Robots" content="INDEX, FOLLOW">
  39. <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
  40. <script language="JavaScript" type="text/javascript">
  41. <!--
  42. window.status="Shopping Cart Contents / <?php echo $cart->count_contents(); ?> Items In Basket / Current Total = <?php echo 'L'.$cart->show_total(); ?> (+ GST) "
  43. // -->
  44. </script>
  45. <script type="text/javascript" src="jquery-1.2.2.pack.js"></script>
  46. <script type="text/javascript" src="stepcarousel.js"></script>
  47. <link rel="stylesheet" type="text/css" href="stylesheet.css">
  48. <link rel="shortcut icon" href="http://www.1staudiovisual.co.uk/images/favicon.ico">
  49. <script language="javascript"><!--
  50. function popupWindow(url) {
  51. window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=400,height=400,screenX=150,screenY=150,top=150,left=150')
  52. }
  53. function popup(mylink, windowname)
  54. {
  55. if (! window.focus)return true;
  56. var href;
  57. if (typeof(mylink) == 'string')
  58. href=mylink;
  59. else
  60. href=mylink.href;
  61. window.open(href, windowname, 'width=400,height=400,scrollbars=yes');
  62. return false;}
  63. function popupWindow(url) {
  64. window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=400,height=400,screenX=150,screenY=150,top=150,left=150')
  65. }
  66. function popupPricematch(url) {
  67. window.open(url,'popupPricematch','toolbar=no,status=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=400,screenX=10,screenY=150,top=10,left=150')
  68. }
  69. //--></script>
  70. <!-- Bundle Query Start -->
  71. <script language="javascript">
  72. var xmlHttp
  73. function showBundle(bundle_id,p_set,pageElement,callMessage,customer_id,product_id,product_type)
  74. {
  75. document.getElementById(pageElement).innerHTML = callMessage;
  76. xmlHttp=GetXmlHttpObject();
  77. if (xmlHttp==null)
  78. {
  79. alert ("Your browser does not support AJAX!");
  80. return;
  81. }
  82. var url="getbundle.php";
  83. url=url+"?bundle_id="+bundle_id;
  84. url=url+"&p_set="+p_set;
  85. url=url+"&customer_id="+customer_id;
  86. url=url+"&product_id="+product_id;
  87. url=url+"&product_type="+product_type;
  88. xmlHttp.onreadystatechange=stateChanged;
  89. xmlHttp.open("GET",url,true);
  90. xmlHttp.send(null);
  91. }
  92.  
  93. function stateChanged()
  94. {
  95. if (xmlHttp.readyState==4)
  96. {
  97. document.getElementById("bundle_offer").innerHTML=xmlHttp.responseText;
  98. }
  99. }
  100. function GetXmlHttpObject()
  101. {
  102. var xmlHttp=null;
  103. try
  104. {
  105. // Firefox, Opera 8.0+, Safari
  106. xmlHttp=new XMLHttpRequest();
  107. }
  108. catch (e)
  109. {
  110. // Internet Explorer
  111. try
  112. {
  113. xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  114. }
  115. catch (e)
  116. {
  117. xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  118. }
  119. }
  120. return xmlHttp;
  121. }
  122. </script>
  123. <!-- Bundle Query End -->
  124. <!-- -->
  125. <script language="javascript">
  126. var xmlHttp3
  127.  
  128. function showShopCart(pageElement,callMessage,customer_id)
  129. {
  130. document.getElementById(pageElement).innerHTML = callMessage;
  131. xmlHttp3=GetXmlHttpObject3();
  132. if (xmlHttp3==null)
  133. {
  134. alert ("Your browser does not support AJAX!");
  135. return;
  136. }
  137. //alert (customer_id);
  138. var url5="item_box2.php";
  139. url5=url5+"?customer_id="+customer_id;
  140. //alert (url5);
  141. xmlHttp3.onreadystatechange=stateChanged3;
  142. xmlHttp3.open("GET",url5,true);
  143. xmlHttp3.send(null);
  144. }
  145. function stateChanged3()
  146. {
  147. if (xmlHttp3.readyState==4)
  148. {
  149. document.getElementById("item_box").innerHTML=xmlHttp3.responseText;
  150. }
  151. }
  152.  
  153.  
  154. function GetXmlHttpObject3()
  155. {
  156. var xmlHttp3=null;
  157. try
  158. {
  159. // Firefox, Opera 8.0+, Safari
  160. xmlHttp3=new XMLHttpRequest();
  161. }
  162. catch (e)
  163. {
  164. // Internet Explorer
  165. try
  166. {
  167. xmlHttp3=new ActiveXObject("Msxml2.XMLHTTP");
  168. }
  169. catch (e)
  170. {
  171. xmlHttp3=new ActiveXObject("Microsoft.XMLHTTP");
  172. }
  173. }
  174. return xmlHttp3;
  175. }
  176. </script>
  177. <!-- -->
  178. <!-- Bundle Query Start -->
  179. <script language="javascript">
  180. var xmlHttp2
  181.  
  182. function UpdateBundle(pageElement,callMessage)
  183. {
  184.  
  185. document.getElementById(pageElement).innerHTML = callMessage;
  186. xmlHttp2=GetXmlHttpObject2();
  187. if (xmlHttp2==null)
  188. {
  189. alert ("Your browser does not support AJAX!");
  190. return;
  191. }
  192. alert("Get Product Id");
  193. for( i = 0; i < bundle_set.add_recommended.length; i++ ){
  194. if( bundle_set["add_recommended"][i].checked )
  195. val = bundle_set["add_recommended"][i].value;
  196. }
  197.  
  198. //alert( "val = " + val );
  199.  
  200. var url2="ajax/updatebundle.php";
  201. url2 = url2+"?p_id=".val
  202. xmlHttp2.onreadystatechange=stateChanged2;
  203. xmlHttp2.open("GET",url2,true);
  204. xmlHttp2.send(null);
  205. }
  206.  
  207. function stateChanged2()
  208. {
  209. if (xmlHttp2.readyState==4)
  210. {
  211. document.getElementById("bundle_offer").innerHTML=xmlHttp2.responseText;
  212. }
  213. }
  214.  
  215. function GetXmlHttpObject2()
  216. {
  217. var xmlHttp2=null;
  218. try
  219. {
  220. // Firefox, Opera 8.0+, Safari
  221. xmlHttp2=new XMLHttpRequest();
  222. }
  223. catch (e)
  224. {
  225. // Internet Explorer
  226. try
  227. {
  228. xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
  229. }
  230. catch (e)
  231. {
  232. xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
  233. }
  234. }
  235. return xmlHttp2;
  236. }
  237.  
  238. var http_request = false;
  239. function makeRequest(url, parameters) {
  240. http_request = false;
  241. if (window.XMLHttpRequest) { // Mozilla, Safari,...
  242. http_request = new XMLHttpRequest();
  243. if (http_request.overrideMimeType) {
  244. // set type accordingly to anticipated content type
  245. //http_request.overrideMimeType('text/xml');
  246. http_request.overrideMimeType('text/html');
  247. }
  248. } else if (window.ActiveXObject) { // IE
  249. try {
  250. http_request = new ActiveXObject("Msxml2.XMLHTTP");
  251. } catch (e) {
  252. try {
  253. http_request = new ActiveXObject("Microsoft.XMLHTTP");
  254. } catch (e) {}
  255. }
  256. }
  257. if (!http_request) {
  258. alert('Cannot create XMLHTTP instance');
  259. return false;
  260. }
  261. http_request.onreadystatechange = alertContents;
  262. http_request.open('GET', url + parameters, true);
  263. http_request.send(null);
  264. }
  265.  
  266. function alertContents() {
  267. if (http_request.readyState == 4) {
  268. if (http_request.status == 200) {
  269. //alert(http_request.responseText);
  270. result = http_request.responseText;
  271. document.getElementById('bundle_offer').innerHTML = result;
  272. } else {
  273. alert('There was a problem with the request.');
  274. }
  275. }
  276. }
  277.  
  278.  
  279. function get(obj,customer_id,bundle_id,p_set,product_id,product_name) {
  280. var getstr = "?";
  281. for (i=0; i<obj.childNodes.length; i++) {
  282. if (obj.childNodes[i].tagName == "INPUT") {
  283. if (obj.childNodes[i].type == "hidden") {
  284. getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";
  285. }
  286. }
  287. }
  288. getstr += "customer_id=" +customer_id;
  289. //alert(getstr);
  290. makeRequest('updatebundle.php', getstr);
  291. //alert('update');
  292. document.getElementById('des_bun').innerHTML = "You have added "+product_name+" to cart.";
  293. document.getElementById('bundle_offer').innerHTML = '<center><img src=images/loading.gif></center>';
  294. document.getElementById('item_box').innerHTML = '<center><img src=images/loading.gif></center>';
  295. showBundle(bundle_id,p_set,'bundle_offer','<center><img src=images/loading.gif></center>',customer_id,product_id);
  296. //window.setTimeout("showBundle("+bundle_id+","+p_set+",'bundle_offer','<center><img src=images/loading.gif></center>',"+customer_id+","+product_id+")",1000);
  297. //window.setTimeout("showShopCart('item_box','<center><img src=images/loading.gif></center>',"+customer_id+")",3000);
  298. showShopCart('item_box','<center><img src=images/loading.gif></center>',customer_id);
  299. }
  300.  
  301. </script>
  302. <!-- Bundle Query End -->
  303. <!-- Add Cart Start -->
  304. <script language="javascript">
  305. var xmlHttp4
  306.  
  307. function add_cart(product_id,customer_id)
  308. {
  309. //document.getElementById(pageElement).innerHTML = callMessage;
  310. xmlHttp4=GetXmlHttpObject4();
  311. if (xmlHttp4==null)
  312. {
  313. alert ("Your browser does not support AJAX!");
  314. return;
  315. }
  316. var url_addcart="add_cart.php";
  317. url_addcart=url_addcart+"?product_id="+product_id+"&customer_id="+customer_id;
  318. xmlHttp4.onreadystatechange=stateChanged4;
  319. xmlHttp4.open("GET",url_addcart,true);
  320. xmlHttp4.send(null);
  321. }
  322.  
  323. function stateChanged4()
  324. {
  325. if (xmlHttp4.readyState==4)
  326. {
  327. document.getElementById("item_box").innerHTML=xmlHttp4.responseText;
  328. }
  329. }
  330. function GetXmlHttpObject4()
  331. {
  332. var xmlHttp4=null;
  333. try
  334. {
  335. // Firefox, Opera 8.0+, Safari
  336. xmlHttp4=new XMLHttpRequest();
  337. }
  338. catch (e)
  339. {
  340. // Internet Explorer
  341. try
  342. {
  343. xmlHttp4=new ActiveXObject("Msxml2.XMLHTTP");
  344. }
  345. catch (e)
  346. {
  347. xmlHttp4=new ActiveXObject("Microsoft.XMLHTTP");
  348. }
  349. }
  350. return xmlHttp4;
  351. }
  352. </script>
  353. <!-- Add Cart End -->
  354. <script type="text/javascript">
  355. function hidediv(divId,divId2,divId3,divId4,divId5,divId6,divId7,divId8){
  356. var arr = document.getElementById(divId)
  357. if ( arr!= null ) {
  358. arr.style.display = (arr.style.display == 'none')? 'block':'none';
  359. }
  360. var arr2 = document.getElementById(divId2)
  361. if ( arr2!= null ) {
  362. arr2.style.display = (arr2.style.display == 'none')? 'block':'none';
  363. }
  364. var arr3 = document.getElementById(divId3)
  365. if ( arr3!= null ) {
  366. arr3.style.display = (arr3.style.display == 'none')? 'block':'none';
  367. }
  368. var arr4 = document.getElementById(divId4)
  369. if ( arr4!= null ) {
  370. arr4.style.display = (arr4.style.display == 'none')? 'block':'none';
  371. }
  372. var arr5 = document.getElementById(divId5)
  373. if ( arr5!= null ) {
  374. arr5.style.display = (arr5.style.display == 'none')? 'block':'none';
  375. }
  376. var arr6 = document.getElementById(divId6)
  377. if ( arr6!= null ) {
  378. arr6.style.display = (arr6.style.display == 'none')? 'block':'none';
  379. }
  380. var arr7 = document.getElementById(divId7)
  381. if ( arr7!= null ) {
  382. arr7.style.display = (arr7.style.display == 'none')? 'block':'none';
  383. }
  384. var arr8 = document.getElementById(divId8)
  385. if ( arr8!= null ) {
  386. arr8.style.display = (arr8.style.display == 'none')? 'block':'none';
  387. }
  388. }
  389. function actionstep(divId){
  390. var arr = document.getElementById(divId)
  391. if ( arr!= null ) {
  392. arr.style.display = (arr.style.display == 'none')? 'block':'block';
  393. }
  394. }
  395. function warranty(id){
  396. var pro_id = document.getElementById(id).value;
  397. document.getElementById("newvalue").value = pro_id;
  398. }
  399. </script>
  400. <!-- This script requires PROTOTYPE AND SCRIPTACULOUS.
  401. Please alter the following import statements if you have the scripts installed in a different directory. -->
  402. <script type="text/javascript" src="javascript/prototype.js"></script>
  403. <script type="text/javascript" src="javascript/scriptaculous.js"></script>
  404. <script type="text/javascript" language="javascript">
  405. //<!--
  406.  
  407. /* escapeOverlay's construction is a bit hard to grasp. It is needed to be able to
  408. stop the event listener. See the prototype API docs for more information:
  409. http://www.prototypejs.org/api/event
  410. */
  411. var escapeOverlay = {
  412. fx: function(e)
  413. {
  414. // To make script compatable with both MSIE and Firefox
  415. var kC = (window.event) ? event.keyCode : e.keyCode;
  416. var Esc = (window.event) ? 27 : e.DOM_VK_ESCAPE;
  417.  
  418. // If keypressed is escape and the new entry field is empty
  419. if(kC==Esc && ($F('newvalue') == '' || $F('newvalue') == null) )
  420. closeDialogue();
  421. else if(kC==Esc && window.confirm('Are you sure you wish to close the dialogue box?') )
  422. closeDialogue();
  423. }
  424. }
  425.  
  426. // Save in cache (to be able to stopObserving() it), see Prototype API docs for more info:
  427. // http://www.prototypejs.org/api/event
  428. escapeOverlay.bfx = escapeOverlay.fx.bindAsEventListener(escapeOverlay);
  429.  
  430. // loadPopup shows the overlay and dialogue box
  431. function loadPopup(ch)
  432. {
  433. // Show the overlay (disables rest of page)
  434. showOverlay();
  435.  
  436. // Show dialogue and focus on newvalue
  437. if(ch=="cart_button")
  438. {
  439. $('dialogue').show();
  440. }
  441. if(ch=="bundle")
  442. {
  443. $('dialogue_bundle').show();
  444. }
  445. }
  446.  
  447. // Shows the overlay and starts the ESCAPE event listener
  448. function showOverlay()
  449. {
  450. $('overlay').show();
  451. //document.body.scroll="no";
  452. Event.observe(document, 'keypress', escapeOverlay.bfx );
  453. }
  454.  
  455. // Hides the overlay and stops the ESCAPE event listener
  456. function hideOverlay()
  457. {
  458. $('overlay').hide();
  459. //document.body.scroll="yes";
  460. Event.stopObserving(document, 'keypress', escapeOverlay.bfx );
  461.  
  462. }
  463.  
  464. // Closes the dialogue box, resets it and hides the overlay
  465. function closeDialogue()
  466. {
  467. hideOverlay();
  468.  
  469. // Hide dialogue
  470. $('dialogue').hide();
  471. $('dialogue_bundle').hide();
  472. // Clear dialogue
  473. $('newvalue').value = '';
  474. }
  475.  
  476. /* Event handler for onKeyPress for the newvalue field. Enables the use of the ENTER (RETURN)
  477. key when adding a new entry in the dialogue box */
  478. function enterKey(event, field)
  479. {
  480. // If the event key pressed was a return (code 13)
  481. if (event.which == 13 || event.keyCode == 13)
  482. addEntry(field.value);
  483. }
  484.  
  485. // count is used to number the entries LI IDs
  486. var count = 1;
  487.  
  488. // Adds an entry
  489. function addEntry(message,type,warranty)
  490. {
  491. // Close the dialogue
  492.  
  493. if(type=='continue')
  494. {
  495. closeDialogue();
  496. }
  497. if(type=='continue_bun' || warranty=='no_warranty')
  498. {
  499. closeDialogue();
  500. }
  501. // If the value entered for the new entry is not empty
  502. if (message != '' && message != null)
  503. {
  504. closeDialogue();
  505. // Build a new LI, set its value and id and add it
  506. //newLI= Builder.node('li', {id: count});
  507. //newLI.innerHTML = message;
  508. //count++;
  509. if(message!='free')
  510. {
  511. //add_cart(message);
  512. //showShopCart('item_box','<center><img src=images/loading.gif></center>');
  513. document.getElementById("item_box").value=add_cart(message);
  514.  
  515. }
  516. //alert(message);
  517. if(type=='checkout')
  518. {
  519. var url="<?=tep_href_link("shopping_cart.php");?>";
  520. window.location.href=url;
  521. }
  522. // Append the new LI to the entries UL
  523. //$('entries').appendChild(newLI);
  524. }
  525.  
  526. if(type=='checkout_bun')
  527. {
  528. closeDialogue();
  529. var url="<?=tep_href_link("shopping_cart.php");?>";
  530. window.location.href=url;
  531. }
  532. if(type=='checkout' && (warranty=='no_warranty' || warranty=='warranty'))
  533. {
  534. closeDialogue();
  535. var url="<?=tep_href_link("shopping_cart.php");?>";
  536. window.location.href=url;
  537. }
  538. }
  539. //-->
  540. </script>
  541. <style type="text/css">
  542.  
  543. #overlay
  544. {
  545. position: absolute;
  546. left: 0px;
  547. top: 0px;
  548.  
  549. width: 100%;
  550. height: 180%;
  551.  
  552. background:#000 url(images/overlay1.gif);
  553.  
  554. /* Set both opacity and filter, for MSIE and firefox compatability */
  555. opacity: .7;
  556. filter: alpha(opacity=70);
  557.  
  558. /* z-index sets the layer order, so that the overlay rests on top.
  559. Bear in mind that the popup dialogue needs to be even higher! */
  560. z-index: 1000;
  561. }
  562.  
  563. #dialogue
  564. {
  565. position: absolute;
  566.  
  567. left: 50%;
  568. margin-left: -250px;
  569. top: 30%;
  570.  
  571. width: 450px;
  572. /*padding: 20px;
  573.  
  574. border: 0px solid #c4d8df;*/
  575. background-color: #FFFFFF;
  576.  
  577. z-index: 2000;
  578. }
  579. #dialogue_bundle
  580. {
  581. position: absolute;
  582.  
  583. left: 50%;
  584. margin-left: -250px;
  585. top: 60%;
  586.  
  587. width: 450px;
  588. /*padding: 20px;
  589.  
  590. border: 0px solid #c4d8df;*/
  591. background-color: #FFFFFF;
  592.  
  593. z-index: 2000;
  594. }
  595. /* set millions of background images */
  596.  
  597. .t {background: url(images/dot.gif) 0 0 repeat-x; width: 100%}
  598. .b {background: url(images/dot.gif) 0 100% repeat-x}
  599. .l {background: url(images/dot.gif) 0 0 repeat-y}
  600. .r {background: url(images/dot.gif) 100% 0 repeat-y}
  601. .bl {background: url(images/bl.gif) 0 100% no-repeat}
  602. .br {background: url(images/br.gif) 100% 100% no-repeat}
  603. .tl {background: url(images/tl2.gif) 0 0 no-repeat}
  604. .tr {background: url(images/tr.gif) 100% 0 no-repeat; padding:10px}
  605.  
  606.  
  607.  
  608. </style>
  609. <!-- Gray POP UP End -->
  610. <link rel="stylesheet" type="text/css" href="tabcontent2.css" />
  611. <script type="text/javascript" src="tabcontent.js"></script>
  612. </head>
  613. <? $id = $_SESSION['customer_id'];?>
  614. <body id="body" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onLoad="javascript:showShopCart('item_box','<center><img src=images/loading.gif></center>','<?=$id;?>');">
  615. <div id="overlay" style="display:none;"></div>
  616. <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  617. <tr>
  618. <td colspan="3"> <!-- header //-->
  619. <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
  620. <!-- header_eof //--></td>
  621. </tr>
  622. <tr style="padding-top:5px;">
  623. <td valign="top" width="150"> <table border="0" width="150" cellspacing="0" cellpadding="2">
  624. <!-- left_navigation //-->
  625. <?php require(DIR_WS_INCLUDES . 'column_left_products.php'); ?>
  626. <!-- left_navigation_eof //-->
  627. </table> </td>
  628. <td width="77%" valign="top">
  629. <?php echo tep_draw_form('cart_quantity', tep_href_link('product_info.php', tep_get_all_get_params(array('action')) . 'action=add_products')); ?>
  630. <input name="customer_id" type="hidden" value="<?= $_SESSION['customer_id']; ?>" />
  631. <table border="0" width="100%" cellspacing="0" cellpadding="0">
  632. <?php
  633. if ($product_check['total'] < 1) {
  634. ?>
  635. <tr>
  636. <td colspan="3"><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>
  637. </tr>
  638. <tr>
  639. <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  640. </tr>
  641. <tr>
  642. <td colspan="3"><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  643. <tr class="infoBoxContents">
  644. <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  645. <tr>
  646. <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  647. <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
  648. <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  649. </tr>
  650. </table></td>
  651. </tr>
  652. </table></td>
  653. </tr>
  654. <?php
  655. } else {
  656. $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, pd.products_short_description, pd.products_spec, pd.products_musthave, pd.products_extraimage, pd.products_manual, pd.products_extra1,
  657. pd.products_moreinfo, p.products_pdf, p.products_pdf_name, p.products_description_image, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_start_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, p.products_nostock, p.products_stockdate, p.products_instock from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
  658. $product_info = tep_db_fetch_array($product_info_query);
  659. tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
  660. //print_r($product_info);
  661. $GST = 17.5;
  662. $products_price1 = $product_info['products_price'] + ($GST*($product_info['products_price']/100));
  663. $products_price = '<b>&pound;' . number_format($products_price1, 2, '.', '') .'</b>' ;
  664. $products_price_start = $product_info['products_start_price'];
  665. ?>
  666. <tr>
  667. <td width="31%" valign="top">
  668. <table border="0"><tr><td>
  669. <?php
  670. //echo '<div><h1>'.$product_info['products_name'].'</h1></div>';
  671. echo tep_image(DIR_WS_IMAGES . $product_info['products_image'],$product_info['products_image'], 250, 250, 'hspace="0" vspace="0"'); ?>
  672. <? include('includes/modules/product_tab_query.php'); ?>
  673. </td></tr></table> </td>
  674. <td width="21%" valign="top"><table border="0">
  675. <tr>
  676. <td><?php $pro_info = explode(" ", $product_info['products_name'],3);
  677. echo '<table border="0" cellspacing="0" cellpadding="3"><tr><td><h1>'.$pro_info[0].'<br>'.$pro_info[1].'</h1></td></tr></table>';
  678. echo '<table border="0" cellspacing="0" cellpadding="3"><tr><td><h2><span style="font-size:12px;color:#5c96d6;"><b>'.$pro_info[2].'</b></span></h2></td></tr>';
  679. echo '<tr><td><h2><font style="font-size:12px;">['.$pro_info[1].']</font></h2></td></tr></table>';
  680. ?> </td>
  681. </tr>
  682. <tr>
  683. <td nowrap="nowrap" class="main">
  684. <table><tr><td>
  685. <?php
  686. if (($product_info['products_start_price']*1)>0 && $product_info['products_start_price'] > $products_price1){
  687. echo "<font color='red' class='main' style='font-weight:bold;font-size:14px;'>";
  688. echo "WAS : <s>&pound;".$products_price_start."</s><br>";
  689. echo "</font>";
  690. echo '<font color="#008000" class="main" style="font-weight:bold;font-size:14px;">';
  691. echo "NOW : ".$products_price;
  692. echo "</font><br>";
  693. $save = ((( number_format($products_price_start, 2, '.', '')-number_format($products_price1, 2, '.', ''))/number_format($products_price1, 2, '.', '')))*100;
  694. echo "<font color='#5c96d6' class='main' style='font-weight:bold;font-size:14px;'>";
  695. echo "SAVE : ".number_format($save, 0, '', '')."%";
  696. echo "</font><br/>";
  697. }
  698. else{
  699. echo "<font color='red' class='main' style='font-weight:bold;font-size:14px;'>";
  700. echo "WAS : <s>&pound;";
  701.  
  702.  
  703. $products_price_start= number_format($products_price1* 1.2, 2, '.', '') ;
  704.  
  705. echo $products_price_start."</s><br>";
  706. echo "</font>";
  707. echo '<font color="#008000" class="main" style="font-weight:bold;font-size:14px;">';
  708. echo "NOW : ".$products_price;
  709. echo "</font><br>";
  710. echo "<font color='#5c96d6' class='main' style='font-weight:bold;font-size:14px;'>";
  711. echo "SAVE : 20%";
  712. echo "</font><br/>";
  713. }
  714. ?>
  715. </td></tr></table> </td>
  716. </tr>
  717. <tr>
  718. <td>
  719. <table><tr><td>
  720. <?
  721. //Query stock status
  722. $stock_query = tep_db_query("select products_stock from products where products_id = '".(int) $products_id."'");
  723. $stock_status_result = tep_db_fetch_array($stock_query);
  724. //$stock_status = '';
  725. if($stock_status_result['products_stock'] == '1'){
  726. echo '<div align="left">'.tep_image('images/instock.gif', 'In Stock','113','31').'<br>
  727. <span class="smallText">Available for Next Business Day.</span>
  728. </div>';
  729. }else if($stock_status_result['products_stock'] == '3'){
  730. // Query stock date
  731. $stockdate_query = tep_db_query("select products_stockdate from products where products_id = '".(int) $products_id."'");
  732. $stockdate_result = tep_db_fetch_array($stockdate_query);
  733. if($stockdate_result['products_stockdate'] != ''){
  734. $stockdate = $stockdate_result['products_stockdate'];
  735. }else{
  736. $stockdate = date('F j, Y');
  737. }
  738.  
  739. echo '<div align="left">'.tep_image('images/due_stock.gif', 'Due in Stock','113','31').'<br>
  740. <span class="smallText"><font color="#FF0000"><b>'.$stockdate.'</b></font><br>
  741. Preorder now to reserve stock
  742. </span>
  743. </div>';
  744. }else{
  745. ?>
  746. <div>
  747. <!-- BEGIN PHP Live! code, (c) OSI Codes Inc. -->
  748. <script language="JavaScript" src="http://www.1staudiovisual.co.uk/catalog/phplive/js/status_image.php?base_url=http://www.1staudiovisual.co.uk/catalog/phplive&l=1staudiovisual&x=1&deptid=10&"></script>
  749. <!-- END PHP Live! code : (c) OSI Codes Inc. -->
  750. </div>
  751. <? } ?>
  752. </td></tr></table> </td>
  753. </tr>
  754. <tr>
  755. <td align="left">
  756. <table><tr><td>
  757. <!-- These DIVs are the popups and overlay. Leave these here. -->
  758.  
  759. <div id="dialogue" style="display: none;">
  760. <!--div id="close"><a href="javascript: void(0);" onClick="closeDialogue()">X</a></div-->
  761. <? include('includes/modules/warranty.php'); ?>
  762. <!-- New entry value: <input type="text" name="newvalue" id="newvalue" onKeyPress="enterKey(event, this)"> <input type="button" onClick="addEntry($F('newvalue'));" value="Add"> !-->
  763. </div>
  764. <div>
  765. <?php
  766. if($id=='')
  767. {
  768. $id=0;
  769. }
  770. echo '<a href="javascript:void(0);" onclick="javascript:loadPopup(\'cart_button\')">'. tep_image('includes/languages/english/images/buttons/cart_button.gif', IMAGE_BUTTON_IN_CART,'','','onclick="javascript:actionstep(\'warranty\');actionstep(\'ready_to_cart\');javascript:add_cart('.$HTTP_GET_VARS['products_id'].','.$id.');"').'</a>'; ?>
  771. </div>
  772. </td></tr></table> </td>
  773. </tr>
  774. </table></td>
  775. <td width="41%" rowspan="2" valign="top">
  776. <? include('includes/modules/specifications.php'); ?>
  777. <table cellpadding="0" width="100%">
  778. <tr><td>
  779. <div id="dialogue_bundle" style="display: none;">
  780. <table width="500" border="0" cellspacing="0" cellpadding="0" align="left">
  781. <tr>
  782. <td valign="bottom" class="main"><img src="images/top_left.gif" width="13" height="15" /></td>
  783. <td valign="bottom" class="main" style="background-image:url(images/top1.gif)">&nbsp;</td>
  784. <td valign="bottom" class="main"><img src="images/top_right.gif" width="14" height="15" /></td>
  785. </tr>
  786. <tr>
  787. <td class="main" style="background-image:url(images/left2.gif)">&nbsp;</td>
  788. <td class="main" align="center">
  789. <table width="460" border="0" cellpadding="0" cellspacing="0">
  790. <tr bgcolor="#ffffff">
  791. <td bgcolor="#ffffff" class="main" style="font-size:10px" colspan="2" align="center"><div id="des_bun"></div></td>
  792. </tr>
  793. </table>
  794. <br/>
  795. <table width="450" border="0" cellpadding="0" cellspacing="0" align="center">
  796. <tr bgcolor="#ffffff" align="center">
  797. <td><? echo tep_image("includes/languages/english/images/buttons/button_continue_shopping.gif", 'Continue Shopping','','','onClick="addEntry($F(\'newvalue\'),\'continue_bun\');"');?></td>
  798. <td><? echo tep_image("includes/languages/english/images/buttons/button_checkout.gif", 'Checkout','','','onClick="addEntry($F(\'newvalue\'),\'checkout_bun\');"');?></td>
  799. </tr>
  800. </table>
  801. <td width="14" class="main" style="background-image:url(images/right2.gif)">&nbsp;</td>
  802. </tr>
  803. <tr>
  804. <td width="13" valign="top" class="main"><img src="images/bottom_left.gif" width="13" height="15" /></td>
  805. <td class="main" style="background-image:url(images/bottom2.gif)">&nbsp;</td>
  806. <td width="14" valign="top" class="main"><img src="images/bottom_right.gif" width="14" height="15" /></td>
  807. </tr>
  808. </table>
  809. </div>
  810. <div id="product_bundle">
  811. <?php include('product_bundle.php');?>
  812. </div>
  813. </td></tr>
  814. </table></td>
  815. </tr>
  816. <?
  817. ///////////////////////////////////////////////////////////////////////////////////////
  818. $categories_query = tep_db_query("SELECT
  819. categories.categories_id,
  820. categories.parent_id
  821. FROM
  822. products_to_categories
  823. Inner Join categories ON categories.categories_id = products_to_categories.categories_id
  824. WHERE
  825. products_to_categories.products_id = '".(int)$HTTP_GET_VARS['products_id']."'");
  826. $categories_info = tep_db_fetch_array($categories_query);
  827. $cid=$categories_info['categories_id'];
  828. $c_pid=$categories_info['parent_id'];
  829.  
  830.  
  831. ?>
  832. <tr>
  833. <!-- start tab -->
  834. <td colspan="2">
  835. <table width="99%"><tr><td>
  836. <div id="tab">
  837. <ul id="maintab" class="shadetabs">
  838. <?
  839. if(($c_pid=='52' or $c_pid=='135' or $c_pid=='136' or $c_pid=='22' or $c_pid=='121' or $c_pid=='129' or $c_pid=='23' or $cid=='207' or $c_pid=='73' or $cid=='111' or $cid=='106') and $products_price1>=400)
  840. {
  841. ?> <li class="selected"><a href="#" rel="tcontent1" id="v12">&nbsp;</a></li>
  842. <?
  843. }?>
  844. <li
  845. <?
  846. if( !( ($c_pid=='52' or $c_pid=='135' or $c_pid=='136' or $c_pid=='22' or $c_pid=='121' or $c_pid=='129' or $c_pid=='23' or $cid=='207' or $c_pid=='73' or $cid=='111' or $cid=='106') and $products_price1>=400) )
  847. echo 'class="selected"';
  848. ?>
  849. ><a href="#" rel="tcontent2" id="delivery">&nbsp;</a></li>
  850.  
  851. <? if($bracket_set==1 or $bracket_set==2 or $bracket_set==3 or $bracket_set==4)
  852. {
  853. ?>
  854. <li><a href="#" rel="tcontent3" id="install">&nbsp;</a></li>
  855. <?
  856. }
  857. ?>
  858. </ul>
  859. </div>
  860. <div class="tabcontentstyle">
  861. <?
  862. if(($c_pid=='52' or $c_pid=='135' or $c_pid=='136' or $c_pid=='22' or $c_pid=='121' or $c_pid=='129' or $c_pid=='23' or $cid=='207' or $c_pid=='73' or $cid=='111' or $cid=='106') and $products_price1>=400)
  863. {
  864. ?>
  865. <div id="tcontent1" class="tabcontent">
  866. <?php
  867. // work out percentages and display
  868. $vat = 17.5;
  869. $start_price = $product_info['products_price'] + ($vat*($product_info['products_price']/100));
  870. $percentage_start = $start_price;
  871.  
  872.  
  873. //Able2Buy Calculate
  874. $factor_forty =0.02986;
  875. $factor_thirty =0.03674;
  876. $factor_twenty =0.05504;
  877. // the deposit is here
  878. $deposit1 = $start_price/10;
  879. $deposit = number_format($deposit1, 2, '.', '');
  880.  
  881. $fortyeight_month = number_format($percentage_start * $factor_forty, 2);
  882. $fortyeight_total = number_format($percentage_start * $factor_forty * 48, 2);
  883. $thirtysix_month = number_format($percentage_start * $factor_thirty, 2);
  884. $thirtysix_total = number_format($percentage_start * $factor_thirty * 36, 2);
  885. $twentyfour_month = number_format($percentage_start * $factor_twenty, 2);
  886. $twentyfour_total = number_format($percentage_start * $factor_twenty * 24, 2);
  887.  
  888.  
  889. //-------------------------------------------------------------------------------//
  890. // V12 Calculate //
  891. //-------------------------------------------------------------------------------//
  892.  
  893. // apr ammount is here
  894. $apr = 19.9;
  895. $apr2 = 29.8;
  896.  
  897. $factor_thirtysix = 0.0363;
  898. $factor_bnpl_six = 0.04092;
  899. $factor_bnpl_nine = 0.04574;
  900.  
  901. // the deposit is here
  902. $deposit1 = $start_price/10;
  903. $deposit = number_format($deposit1, 2, '.', '');
  904.  
  905. $BalanceBeforeCharges = $percentage_start - $deposit;
  906.  
  907. $MonthlyInstalment_36 = number_format($BalanceBeforeCharges * $factor_thirtysix, 2);
  908. $MonthlyInstalment_bnpl_6 = number_format($BalanceBeforeCharges * $factor_bnpl_six, 2);
  909. $MonthlyInstalment_bnpl_9 = number_format($BalanceBeforeCharges * $factor_bnpl_nine, 2);
  910.  
  911. $MonthlyPPI_36 = number_format($MonthlyInstalment_36*0.16, 2);
  912. $MonthlyPPI_bnpl_6 = number_format($MonthlyInstalment_bnpl_6*0.16, 2);
  913. $MonthlyPPI_bnpl_9 = number_format($MonthlyInstalment_bnpl_9*0.16, 2);
  914.  
  915. $MonthlyWithPPI_36 = ($MonthlyPPI_36*1)+($MonthlyInstalment_36*1);
  916.  
  917. $BalancePayable_36 = $MonthlyInstalment_36 * 36;
  918. $BalancePayable_bnpl_6 = $MonthlyInstalment_bnpl_6 * 42;
  919. $BalancePayable_bnpl_9 = $MonthlyInstalment_bnpl_9 * 39;
  920.  
  921. $ChargeForCredit_36 = $BalancePayable_36 - $BalanceBeforeCharges;
  922. $ChargeForCredit_bnpl_6 = $BalancePayable_bnpl_6 - $BalanceBeforeCharges;
  923. $ChargeForCredit_bnpl_9 = $BalancePayable_bnpl_9 - $BalanceBeforeCharges;
  924.  
  925. $TotalAmountPayable_36 = ($BalanceBeforeCharges*1)+ ($ChargeForCredit_36*1);
  926. $TotalAmountPayable_bnpl_6 = ($BalanceBeforeCharges*1)+ ($ChargeForCredit_bnpl_6*1) + 29;
  927. $TotalAmountPayable_bnpl_9 = ($BalanceBeforeCharges*1)+ ($ChargeForCredit_bnpl_9*1) + 49;
  928.  
  929.  
  930. ?>
  931. <div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl"><div class="tr">
  932. <div id="textv12" class="main" align="justify" style="font-size:10px;">V12 provide finance packages to our customers. To read more detailed info please <?php echo'<a href="' . tep_href_link('v12.php') .'" target="_blank"><font color="#5C96D6"><u>click here</u></font></a>'; ?>. This option is available at checkout and will redirect you to the V12 website automatically!</div>
  933. <table width="95%" border="0" >
  934. <tr>
  935. <td class="main" style="font-size:10px;"><div id="buypayclassic_all"><strong>Classic Credit 36 Months<br>
  936. of &pound;<?php echo $MonthlyInstalment_36; ?> per month</strong></div></td>
  937. <td class="main" style="font-size:10px;" align="right"><div id="buypayclassic_show"><a href="#" onClick="javascript:hidediv('buypayclassic','buypayclassic_show','buypayclassic_hide','textv12','buypay6month_all','buypay9month_all','buypay6month_show','buypay9month_show');return false;"><font color="#5C96D6"><u>Read more</u></font></a></div>
  938. <div id="buypayclassic_hide" style="display:none;" align="center"><a href="#" onClick="javascript:hidediv('buypayclassic','buypayclassic_show','buypayclassic_hide','textv12','buypay6month_all','buypay9month_all','buypay6month_show','buypay9month_show');return false;"><font color="#5C96D6"><u>Back</u></font></a></div></td>
  939. </tr>
  940. <tr>
  941. <td class="main" colspan="2" style="font-size:10px;"><div id="buypayclassic" style="display:none;"> 10% deposit (&pound;<?php echo $deposit;?>)<br>
  942. Total payable &pound;<?php echo $TotalAmountPayable_36; ?> at 19.9% APR<br>
  943. </div></td>
  944. </tr>
  945. <tr>
  946. <td class="main" style="font-size:10px;"><div id="buypay6month_all"><strong>Buy now pay 6 months later 0% interest</strong></div></td>
  947. <td class="main" align="right" style="font-size:10px;"><div id="buypay6month_show"><a href="#" onClick="javascript:hidediv('buypay6month','buypay6month_show','buypay6month_hide','textv12','buypayclassic_all','buypay9month_all','buypayclassic_show','buypay9month_show');return false;"><font color="#5C96D6"><u>Read more</u></font></a></div>
  948. <div id="buypay6month_hide" style="display:none;" align="center"><a href="#" onClick="javascript:hidediv('buypay6month','buypay6month_show','buypay6month_hide','textv12','buypayclassic_all','buypay9month_all','buypayclassic_show','buypay9month_show');return false;"><font color="#5C96D6"><u>Back</u></font></a></div></td>
  949. </tr>
  950. <tr>
  951. <td class="main" colspan="2" style="font-size:10px;"><div id="buypay6month" style="display:none;"> 10% deposit (&pound;<?php echo $deposit;?>) plus &pound;29 Set Up fee<br>
  952. Settle in full inside 6 months and pay <strong>no interest</strong> or wait 6 months and make 42 monthly payments of &pound;<?php echo $MonthlyInstalment_bnpl_6; ?> per month<br>
  953. Total payable &pound;<?php echo $TotalAmountPayable_bnpl_6; ?> at 29.8% APR<br>
  954. </div></td>
  955. </tr>
  956. <tr>
  957. <td class="main" style="font-size:10px;"><div id="buypay9month_all"><strong>Buy now pay 9 months later 0% interest</strong></div></td>
  958. <td class="main" align="right" style="font-size:11px;"><div id="buypay9month_show"><a href="#" onClick="javascript:hidediv('buypay9month','buypay9month_show','buypay9month_hide','textv12','buypayclassic_all','buypay6month_all','buypayclassic_show','buypay6month_show');return false;"><font color="#5C96D6"><u>Read more</u></font></a></div>
  959. <div id="buypay9month_hide" style="display:none;" align="center"><a href="#" onClick="javascript:hidediv('buypay9month','buypay9month_show','buypay9month_hide','textv12','buypayclassic_all','buypay6month_all','buypayclassic_show','buypay6month_show');return false;"><font color="#5C96D6"><u>Back</u></font></a></div></td>
  960. </tr>
  961. <tr>
  962. <td class="main" colspan="2" style="font-size:10px;"><div id="buypay9month" style="display:none;"> 10% deposit (&pound;<?php echo $deposit;?>) plus &pound;49 Set Up fee<br>
  963. Settle in full inside 9 months and pay <strong>no interest</strong> or wait 9 months and make 39 monthly payments of &pound;<?php echo $MonthlyInstalment_bnpl_9; ?> per month<br>
  964. Total payable &pound;<?php echo $TotalAmountPayable_bnpl_9; ?> at 29.8% APR<br>
  965. </div></td>
  966. </tr>
  967. </table>
  968.  
  969. </div>
  970. </div></div></div></div></div></div></div></div>
  971.  
  972. <?
  973. }
  974. ?>
  975.  
  976. <div id="tcontent2" class="tabcontent">
  977. <div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl"><div class="tr">
  978. <div align="justify">
  979. <?php
  980. // non mainland delivery
  981. if($products_price1 < 40){$non1 = 10.00; $non2 = 5.00;}
  982. else if($products_price1 >= 40 && $products_price1 < 200){$non1 = 29.00; $non2 = 19.00;}
  983. else if($products_price1 >= 200 && $products_price1 < 1500){$non1 = 99.00; $non2 = 59.00;}
  984. else{$non1 = 129.00; $non2 = 89.00;}
  985. //delivery prices
  986. $delivery_query = tep_db_query("SELECT p.products_id, p.products_ship_price_one, p.products_ship_price_two, p.products_ship_price_three from " . TABLE_PRODUCTS . " p where p.products_id =". (int) $products_id ."");
  987. while ($delivery_results = tep_db_fetch_array($delivery_query)) {
  988. $delivery_sat = number_format($delivery_results['products_ship_price_one'], 2, '.', '');
  989. $delivery_nbd = number_format($delivery_results['products_ship_price_two'], 2, '.', '');
  990. $delivery_ndbpre = number_format($delivery_results['products_ship_price_three'], 2, '.', '');
  991. echo '<table width="95%" border="0" >
  992. <tr>
  993. <td class="main" style="font-size:10px;" width="65%" valign="top"><b>Free delivery available</b></td>
  994. <td class="main" style="font-size:10px;" valign="top">3 to 5 working days.</td>
  995. </tr>
  996. <tr>
  997. <td class="main" style="font-size:10px;" valign="top">Next Business Day</td>
  998. <td class="main" style="font-size:10px;" valign="top">&pound;' . $delivery_nbd . '</td>
  999. </tr>
  1000. <tr>
  1001. <td class="main" style="font-size:10px;" valign="top">Next Business Day Pre 12</td>
  1002. <td class="main" style="font-size:10px;" valign="top">&pound;' . $delivery_ndbpre . '</td>
  1003. </tr>
  1004. <tr>
  1005. <td class="main" style="font-size:10px;" valign="top">Saturday Delivery</td>
  1006. <td class="main" style="font-size:10px;" valign="top">&pound;' . $delivery_sat . '</td>
  1007. </tr>
  1008. <tr>
  1009. <td class="main" style="font-size:10px;"><b>Non UK Mainland Delivery</b></td>
  1010. <td class="main" style="font-size:10px;" valign="top">Delivery price at Checkout.</td>
  1011. </tr>
  1012. </table>';
  1013. }
  1014. ?>
  1015. </div>
  1016. </div></div></div></div></div></div></div></div>
  1017. </div>
  1018.  
  1019. <div id="tcontent3" class="tabcontent">
  1020. <div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl"><div class="tr">
  1021. <table width="95%" border="0" cellspacing="0">
  1022. <!-- <tr>
  1023. <td class="main">Small Installation </td>
  1024. <td class="main">&pound;129.99</td>
  1025. <td class="main">&nbsp;</td>
  1026. </tr>-->
  1027. <?
  1028. if($bracket_set==1)
  1029. {
  1030. echo '<tr>
  1031. <td class="main" style="font-size:10px;" ><b><u>MEDIUM INSTALLATION SERVICE - sceen size up to 32"</u></b><br>1staudiovisual have teamed up with the UK\'s leading TV installation company wecanfit.</u></b></td><td width="5">&nbsp;</td>
  1032. <td class="main" align="center" style="font-size:10px;" valign=top>&pound;149.99</td>
  1033. <td class="main">&nbsp;</td>
  1034. </tr>
  1035. <tr>
  1036. <td class="main" colspan=4 align="right"><a href="http://www.1staudiovisual.co.uk/catalog/product_info.php?products_id=3914" target="_blank"><img src="images/small_moreinfo.gif" border="0" align="absmiddle" alt="for more information" width="70" height="20"></a></td>
  1037. </tr>';
  1038. }
  1039. if($bracket_set==2)
  1040. {
  1041. echo '<tr>
  1042. <td class="main" style="font-size:10px;" ><b><u>LARGE INSTALLATION SERVICE '.$bracket_text.'</u></b><br>1staudiovisual have teamed up with the UK\'s leading TV installation company wecanfit.</u></b></td><td width="5">&nbsp;</td>
  1043. <td class="main" align="center" style="font-size:10px;" valign=top>&pound;189.99</td>
  1044. <td class="main">&nbsp;</td>
  1045. </tr>
  1046. <tr>
  1047. <td class="main" colspan=4 align="right"><a href="http://www.1staudiovisual.co.uk/catalog/product_info.php?products_id=3913" target="_blank"><img src="images/small_moreinfo.gif" border="0" align="absmiddle" alt="for more information"></a></td>
  1048. </tr>';
  1049. }
  1050. if($bracket_set==3)
  1051. {
  1052. echo '<tr>
  1053. <td class="main" style="font-size:10px;" ><b><u>LARGE INSTALLATION SERVICE '.$bracket_text.'</u></b><br>1staudiovisual have teamed up with the UK\'s leading TV installation company wecanfit.</u></b></td><td width="5">&nbsp;</td>
  1054. <td class="main" align="center" style="font-size:10px;" valign=top>&pound;189.99</td>
  1055. <td class="main">&nbsp;</td>
  1056. </tr>
  1057. <tr>
  1058. <td class="main" colspan=4 align="right"><a href="http://www.1staudiovisual.co.uk/catalog/product_info.php?products_id=3913" target="_blank"><img src="images/small_moreinfo.gif" border="0" align="absmiddle" alt="for more information"></a></td>
  1059. </tr>';
  1060. }
  1061. if($bracket_set==4)
  1062. {
  1063. echo '<tr>
  1064. <td class="main" style="font-size:10px;"><b><u>LARGE INSTALLATION SERVICE '.$bracket_text.'</u></b><br>1staudiovisual have teamed up with the UK\'s leading TV installation company wecanfit.</u></b></td>
  1065. <td class="main" align="center" style="font-size:10px;" valign=top>&pound;189.99</td><td width="5">&nbsp;</td>
  1066. <td class="main">&nbsp;</td>
  1067. </tr>
  1068. <tr>
  1069. <td class="main" colspan=4 align="right"><a href="http://www.1staudiovisual.co.uk/catalog/product_info.php?products_id=3913" target="_blank"><img src="images/small_moreinfo.gif" border="0" align="absmiddle" alt="for more information"></a></td>
  1070. </tr>';
  1071. }
  1072.  
  1073. ?>
  1074. </table>
  1075. </div></div></div></div></div></div></div></div>
  1076. </div>
  1077.  
  1078. </div>
  1079. <script type="text/javascript">
  1080. //Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
  1081. initializetabcontent("maintab")
  1082. </script>
  1083. </td></tr></table> </td>
  1084. <!--eof tab -->
  1085. <!--warranty-->
  1086.  
  1087. <!--warranty eof-->
  1088. </tr>
  1089.  
  1090. <tr>
  1091. <td colspan="3"><table width="99%" border="0">
  1092. <tr>
  1093. <td width="100%" align="center" valign="top">
  1094. <?
  1095. $bluray_logo_query = tep_db_query("SELECT *
  1096. FROM
  1097. products_to_products_extra_fields
  1098. WHERE
  1099. products_to_products_extra_fields.products_id = '".(int)$HTTP_GET_VARS['products_id']."' AND
  1100. products_to_products_extra_fields.products_extra_fields_id = '1006' AND
  1101. products_to_products_extra_fields.products_extra_fields_value LIKE '%Blu Ray%' ");
  1102. if(tep_db_num_rows($bluray_logo_query)>0)
  1103. echo '<a href="http://dvdretail.at/1staudiovisual?CTY=2&amp;CID=10456" target="_blank"><img src="http://b1.perfb.com/o1.php?ID=10456&amp;PURL=dvdretail.at/1staudiovisual" alt="Low prices on Blu-ray" border="0" /></a>';
  1104. else
  1105. echo '&nbsp;';
  1106. /*
  1107. // Start How To and Already
  1108. if($c_pid=='52' or $c_pid=='135' or $c_pid=='136' or $c_pid=='22' or $c_pid=='121' or $c_pid=='129' or $c_pid=='23' or $cid=='207' or $c_pid=='73' or $cid=='111' or $cid=='106')
  1109. {
  1110. ?><table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  1111.   <tr>
  1112.   <td valign="bottom" class="main"><img src="images/top_left.gif" width="13" height="15" /></td>
  1113.   <td valign="bottom" class="main" style="background-image:url(images/top1.gif)">&nbsp;</td>
  1114.   <td valign="bottom" class="main"><img src="images/top_right.gif" width="14" height="15" /></td>
  1115.   </tr>
  1116.   <tr>
  1117.   <td class="main" style="background-image:url(images/left2.gif)">&nbsp;</td>
  1118.   <td class="main"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/help.gif" style="background-position:right; background-repeat:no-repeat;">
  1119.   <tr>
  1120.   <td class="main" style="font-size:10px;"><strong>Need some help? Here is how to Purchase:</strong>
  1121.   <ol>
  1122.   <li>Click the green 'add to cart' button in the middle of the screen to add the main item to your cart.</li>
  1123.   <li>Select your Warranty from the pop up box. Extended warranties are provided by Domestic and General.</li>
  1124.   <li>Check out our recommended accessories for this product. Click on the category to see individual items.</li>
  1125.   <li>All done? OK. click in the bottom right corner to review your shopping cart and check out.</li>
  1126.   </ol></td>
  1127.   </tr>
  1128.   </table></td>
  1129.   <td width="14" class="main" style="background-image:url(images/right2.gif)">&nbsp;</td>
  1130.   </tr>
  1131.   <tr>
  1132.   <td width="13" valign="top" class="main"><img src="images/bottom_left.gif" width="13" height="15" /></td>
  1133.   <td class="main" style="background-image:url(images/bottom2.gif)">&nbsp;</td>
  1134.   <td width="14" valign="top" class="main"><img src="images/bottom_right.gif" width="14" height="15" /></td>
  1135.   </tr>
  1136.   </table>
  1137. <?
  1138. }else
  1139. {
  1140. echo "&nbsp;";
  1141. }
  1142. ?> </td>
  1143.   <td width="26%" align="right">
  1144. <?php
  1145. echo '<div id="ready_to_cart" style="display:none;">'.tep_image_submit('ready_to_cart.gif', IMAGE_BUTTON_IN_CART).'</div>'; ?>*/ ?></td>
  1146. </tr>
  1147. </table></td>
  1148. </tr>
  1149. <? } ?>
  1150. </table></td>
  1151. <td valign="top" width="137">
  1152. <table border="0" width="137" cellspacing="0" cellpadding="2">
  1153. <!-- right_navigation //-->
  1154. <tr><td>
  1155. <!-- Start of item Box -->
  1156. <table width="137" align="left" cellpadding="0" cellspacing="0" border="0">
  1157. <tr>
  1158. <td height="14"><img src="/catalog/images/infobox/corner_left.gif" border="0"/></td>
  1159. <td width="100%"class="infoBoxHeading">Shopping Cart</td>
  1160. <td height="14"><img src="/catalog/images/infobox/corner_right.gif" border="0"/></td>
  1161. </tr>
  1162. <tr>
  1163. <td width="137" colspan="3" class="smallText">
  1164. <table cellpadding="1" cellspacing="0" width="100%" style="border:solid 1px #c4d8df">
  1165. <tr><td class="smallText" align="center" >
  1166. <div id="item_box" class="smallText"> </div>
  1167. </td></tr>
  1168. </table>
  1169. </td>
  1170. </tr>
  1171. </table>
  1172.  
  1173. <!-- end of item Box -->
  1174. </td></tr>
  1175. <?php require(DIR_WS_INCLUDES . 'column_right_products.php'); ?>
  1176. <!-- right_navigation_eof //-->
  1177. </table></td>
  1178. </tr>
  1179. <tr>
  1180. <td colspan="3"><!-- footer //-->
  1181. <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
  1182. <!-- footer_eof //--></td>
  1183. </tr>
  1184. </table>
  1185. </body>
  1186. </html>
  1187. <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Thank you very much for your help.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 93
Reputation: humbug is an unknown quantity at this point 
Solved Threads: 13
humbug's Avatar
humbug humbug is offline Offline
Junior Poster in Training

Re: Hidden Link - Please help.

 
0
  #2
Oct 31st, 2008
I don't understand what your asking...
"If your not having fun, your doing something wrong." - Humbug
★ Did I help you out? Did I piss you off? Add to my reputation!
The Gabriel Method is a great book for losing weight and keeping healthy - I know Jon Gabriel Personally.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC