[ Index ] |
|
Code source de osCommerce 2.2ms2-060817 |
1 <?php 2 /* 3 $Id: popup_image.php,v 1.7 2003/06/20 00:40:23 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 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>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 19:48:25 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |