[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/includes/boxes/ -> manufacturer_info.php (source)

   1  <?php
   2  /*

   3  $Id: manufacturer_info.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  // Most of this file is changed or moved to BTS - Basic Template System - format.

  14  
  15  
  16    if (isset($HTTP_GET_VARS['products_id'])) {
  17      $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int)$languages_id . "'), " . TABLE_PRODUCTS . " p  where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id");
  18      if (tep_db_num_rows($manufacturer_query)) {
  19        $manufacturer = tep_db_fetch_array($manufacturer_query);
  20  ?>
  21  <!-- manufacturer_info //-->
  22  <?php
  23        $boxHeading = BOX_HEADING_MANUFACTURER_INFO;
  24        $corner_left = 'square';
  25        $corner_right = 'square';
  26        $box_base_name = 'manufacturer_info'; // for easy unique box template setup (added BTSv1.2)

  27  
  28        $box_id = $box_base_name . 'Box';  // for CSS styling paulm (editted BTSv1.2)

  29        $boxContent = '<table border="0" width="100%" cellspacing="0" cellpadding="0">';
  30        if (tep_not_null($manufacturer['manufacturers_image'])) $boxContent .= '<tr><td align="center" class="infoBoxContents" colspan="2">' . tep_image(DIR_WS_IMAGES . $manufacturer['manufacturers_image'], $manufacturer['manufacturers_name']) . '</td></tr>';
  31        if (tep_not_null($manufacturer['manufacturers_url'])) $boxContent .= '<tr><td valign="top" class="infoBoxContents">-&nbsp;</td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_REDIRECT, 'action=manufacturer&manufacturers_id=' . $manufacturer['manufacturers_id']) . '" target="_blank">' . sprintf(BOX_MANUFACTURER_INFO_HOMEPAGE, $manufacturer['manufacturers_name']) . '</a></td></tr>';
  32        $boxContent .= '<tr><td valign="top" class="infoBoxContents">-&nbsp;</td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer['manufacturers_id']) . '">' . BOX_MANUFACTURER_INFO_OTHER_PRODUCTS . '</a></td></tr>' .
  33                                     '</table>';
  34  
  35  
  36  
  37  
  38  
  39  include (bts_select('boxes', $box_base_name)); // BTS 1.5

  40      }
  41    }
  42  ?>


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