[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/ -> wishlist_email.php (source)

   1  <?php
   2  /*

   3  $Id: wishlist_email.php 3 2006-05-27 04:59:07Z user $

   4  

   5    osCMax Power E-Commerce

   6    http://oscdox.com

   7  

   8    Copyright 2006 osCMax2003 osCMax

   9  

  10    Released under the GNU General Public License

  11  */
  12  
  13  // Most of this file is changed or moved to BTS - Basic Template System - format.

  14  // For adding in contribution or modification - parts of this file has been moved to: catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change).

  15  //       catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change).

  16  // (Sub 'fallback' with your current template to see if there is a template specific file.)

  17  
  18    require ('includes/application_top.php');
  19  
  20   if (tep_session_is_registered('customer_id')) {
  21      $account = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");
  22      $account_values = tep_db_fetch_array($account);
  23    } elseif (ALLOW_GUEST_TO_TELL_A_FRIEND == 'false') {
  24      $navigation->set_snapshot();
  25      tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  26    }
  27  
  28   require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WISHLIST_SEND);
  29  
  30   $wishliststring = FORM_FIELD_TEXT_AREA;
  31   $wishlist_query_raw = "select tab2.products_id, tab1.products_name from " . TABLE_WISHLIST . " as tab2, " . TABLE_PRODUCTS_DESCRIPTION . " as tab1 where tab2.customers_id='" . (int)$customer_id . "' and tab1.products_id = tab2.products_id and tab1.language_id = '" . (int)$languages_id . "' order by products_name";
  32   $wishlist_query = tep_db_query($wishlist_query_raw);
  33  
  34   while ($resultarray=mysql_fetch_row($wishlist_query)) {
  35        $wishliststring .=""."<font face=verdana size=2><li><a href=\"". HTTP_SERVER . DIR_WS_CATALOG ."product_info.php?products_id=".$resultarray[0] ."\">".$resultarray[1]."</a></li></font>"  . "\n" . HTTP_SERVER . DIR_WS_CATALOG ."product_info.php?products_id=".$resultarray[0] . "\n";
  36   }
  37  
  38    $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_WISHLIST_SEND, '', 'NONSSL'));
  39  
  40    $content = CONTENT_WISHLIST_SEND;
  41  
  42    include (bts_select('main', $content_template)); // BTSv1.5

  43  
  44    require (DIR_WS_INCLUDES . 'application_bottom.php');
  45  
  46  ?>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7