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