here is default one, popup_image.php:
<?php
/*
$Id: popup_image.php 1739 2007-12-20 00:52:16Z hpdl $
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 pd.products_name, p.products_image
from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . "
pd on p.products_id = pd.products_id where p.products_status = '1' and
p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '"
.. (int)$languages_id . "'");
$products = tep_db_fetch_array($products_query);
?>
<!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();">
<?php
echo tep_image(DIR_WS_IMAGES . $products['products_image'],
$products['products_name']);
?>
</body>
</html>
<?php require('includes/application_bottom.php'); ?>
-----------------
S.
It's an open source e-commerce.
After some years working, I can say, give the client what he wants,
just be sure to notify him about the problems and how idiot is such
animations.
Done competently, there shouldn't be any problems. Certainly it
doesn't need to be animated though (that's one more thing to get
wrong.)
If you have knowledge enough, make the code by yourself, frameworks
are a bunch of crap.
Absolutely. This thing is 50K of fantasy code to size an image. It
will only work in IE and a couple other browsers and these rubes are
actually trying to charge for licenses. (!)