[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 // 3 // +----------------------------------------------------------------------+ 4 // |zen-cart Open Source E-commerce | 5 // +----------------------------------------------------------------------+ 6 // | Copyright (c) 2003 The zen-cart developers | 7 // | | 8 // | http://www.zen-cart.com/index.php | 9 // | | 10 // | Portions Copyright (c) 2003 osCommerce | 11 // +----------------------------------------------------------------------+ 12 // | This source file is subject to version 2.0 of the GPL license, | 13 // | that is bundled with this package in the file LICENSE, and is | 14 // | available through the world-wide-web at the following url: | 15 // | http://www.zen-cart.com/license/2_0.txt. | 16 // | If you did not receive a copy of the zen-cart license and are unable | 17 // | to obtain it through the world-wide-web, please send a note to | 18 // | license@zen-cart.com so we can mail you a copy immediately. | 19 // +----------------------------------------------------------------------+ 20 // $Id: salemaker_popup.php 1969 2005-09-13 06:57:21Z drbyte $ 21 // 22 23 require ("includes/application_top.php"); 24 25 require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . FILENAME_SALEMAKER_POPUP . '.php'); 26 ?> 27 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> 28 <html <?php echo HTML_PARAMS; ?>> 29 <head> 30 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 31 <title><?php echo TITLE; ?></title> 32 <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> 33 </head> 34 <body> 35 <p class="main"><center><h1><?php echo HEADING_TITLE . ' - ' . $_GET['cname']; ?><?php echo zen_draw_separator(); ?></h1></center></p> 36 <table width="90%" align="center"> 37 <tr> 38 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 39 <tr> 40 <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 41 <tr class="dataTableHeadingRow"> 42 <td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_SALE_NAME; ?></td> 43 <td colspan="2"><table border="0" width="100%" cellpadding="0"cellspacing="2"> 44 <tr> 45 <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_SALE_DEDUCTION; ?></td> 46 </tr> 47 </table></td> 48 <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_SALE_DATE_START; ?></td> 49 <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_SALE_DATE_END; ?></td> 50 <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_STATUS; ?></td> 51 </tr> 52 <?php 53 //print_r($_GET); 54 $salemaker_sales_query_raw = "select sale_id, sale_status, sale_name, sale_categories_all, sale_deduction_value, sale_deduction_type, sale_pricerange_from, sale_pricerange_to, sale_specials_condition, sale_categories_selected, sale_date_start, sale_date_end, sale_date_added, sale_date_last_modified, sale_date_status_change from " . TABLE_SALEMAKER_SALES . " order by sale_name"; 55 $salemaker_sales = $db->Execute($salemaker_sales_query_raw); 56 while (!$salemaker_sales->EOF) { 57 $categories = explode(',', $salemaker_sales->fields['sale_categories_all']); 58 while (list($key,$value) = each($categories)) { 59 if ($value == $_GET['cid']) { 60 ?> 61 <tr> 62 <td class="dataTableContent" align="left"><?php echo $salemaker_sales->fields['sale_name']; ?></td> 63 <td class="dataTableContent" align="right"><?php echo $salemaker_sales->fields['sale_deduction_value']; ?></td> 64 <td class="dataTableContent" align="left"><?php echo $deduction_type_array[$salemaker_sales->fields['sale_deduction_type']]['text']; ?></td> 65 <td class="dataTableContent" align="center"><?php echo (($salemaker_sales->fields['sale_date_start'] == '0001-01-01') ? TEXT_SALEMAKER_IMMEDIATELY : zen_date_short($salemaker_sales->fields['sale_date_start'])); ?></td> 66 <td class="dataTableContent" align="center"><?php echo (($salemaker_sales->fields['sale_date_end'] == '0001-01-01') ? TEXT_SALEMAKER_NEVER : zen_date_short($salemaker_sales->fields['sale_date_end'])); ?></td> 67 <td class="dataTableContent" align="center"> 68 <?php 69 if ($salemaker_sales->fields['sale_status'] == '1') { 70 echo zen_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10); 71 } else { 72 echo zen_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10); 73 } 74 ?></td> 75 76 77 </tr> 78 <?php 79 } 80 } 81 $salemaker_sales->MoveNext(); 82 } 83 ?> 84 </table></td> 85 </tr> 86 </table></td> 87 </tr> 88 </table> 89 <p align="center" class="main"><a href="javascript:window.close();"><?php echo TEXT_CLOSE_WINDOW; ?></a></p> 90 </body> 91 </html> 92 <?php 93 require(DIR_WS_INCLUDES . 'application_bottom.php'); 94 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |