[ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 $Id: popup_image.php 3 2006-05-27 04:59:07Z user $ 4 5 osCMax Power E-Commerce 6 http://oscdox.com 7 8 Copyright 2006 osCMax 9 10 Released under the GNU General Public License 11 */ 12 13 require ('includes/application_top.php'); 14 15 reset($HTTP_GET_VARS); 16 while (list($key, ) = each($HTTP_GET_VARS)) { 17 switch ($key) { 18 case 'banner': 19 $banners_id = tep_db_prepare_input($HTTP_GET_VARS['banner']); 20 21 $banner_query = tep_db_query("select banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where banners_id = '" . (int)$banners_id . "'"); 22 $banner = tep_db_fetch_array($banner_query); 23 24 $page_title = $banner['banners_title']; 25 26 if ($banner['banners_html_text']) { 27 $image_source = $banner['banners_html_text']; 28 } elseif ($banner['banners_image']) { 29 $image_source = tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $banner['banners_image'], $page_title); 30 } 31 break; 32 } 33 } 34 ?> 35 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> 36 <html <?php echo HTML_PARAMS; ?>> 37 <head> 38 <title><?php echo $page_title; ?></title> 39 <script language="javascript"><!-- 40 var i=0; 41 42 function resize() { 43 if (navigator.appName == 'Netscape') i = 40; 44 window.resizeTo(document.images[0].width + 30, document.images[0].height + 60 - i); 45 } 46 //--></script> 47 </head> 48 49 <body onload="resize();"> 50 51 <?php echo $image_source; ?> 52 53 </body> 54 55 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Jan 1 13:43:16 2010 | Cross-referenced by PHPXref 0.7 |