All pastes #87801 Raw Edit

Stuff

public text v1 · immutable
·published 2006-07-14 06:07 UTC
rendered paste body
<?php
/*
  $Id: popup_image.php,v 1.18 2003/06/05 23:26:23 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  $navigation->remove_current_page();

   $products_query = tep_db_query("select a.ATTRIBUTE,av.ATT_VAL from ATTRBVAL av,ATTRB a where   av.ITM_NUM = '" . $HTTP_GET_VARS['ITM_NUM'] . "' and av.ATT_ID=a.ATT_ID");
   
  
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo $products['products_name']; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<script language="javascript"><!--
var i=0;
function resize() {
  if (navigator.appName == 'Netscape') i=40;
  if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
  self.focus();
}
//--></script>
</head>
<body onload="resize();">
<table border="0" cellspacing="0" cellpadding="1" style="border-color: orange; border-style: solid; border-width: 1px;">
<?php

while ($products = tep_db_fetch_array($products_query))
{
  echo "<tr>";
echo '<td class="main" style="border-color: blue; border-style: solid; border-width: 1px;">'.$products['ATTRIBUTE'].'</td><td class="main" style="border-color: blue; border-style: solid; border-width: 1px;">'. $products['ATT_VAL'].'</td>'; 
  echo "</tr>";
}
?>

</table>
</html>
<?php require('includes/application_bottom.php'); ?>