[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/ -> affiliate_validproducts.php (source)

   1  <?php
   2  /*

   3    $Id: affiliate_validproducts.php,v 2.00 2003/10/12

   4  

   5    OSC-Affiliate

   6  

   7    Contribution based on:

   8  

   9    osCommerce, Open Source E-Commerce Solutions

  10    http://www.oscommerce.com

  11  

  12    Copyright (c) 2002 - 2003 osCommerce

  13  

  14    Released under the GNU General Public License

  15  */
  16  
  17    require ('includes/application_top.php');
  18  
  19    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_AFFILIATE_BANNERS_BUILD);
  20  
  21    $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_AFFILIATE_BANNERS_BUILD));
  22  ?>
  23  <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
  24  <html <?php echo HTML_PARAMS; ?>>
  25  <head>
  26  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  27  <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
  28  <title><?php echo TITLE; ?></title>
  29  <link rel="stylesheet" type="text/css" href="stylesheet.css">
  30  <head>
  31  <body>
  32  <table width="580" class="infoBoxContents">
  33  <tr>
  34  <td colspan="2" class="infoBoxHeading" align="center"><?php echo TEXT_VALID_PRODUCTS_LIST; ?></td>
  35  </tr>
  36  <?php
  37      echo "<tr><td><b>". TEXT_VALID_PRODUCTS_ID . "</b></td><td><b>" . TEXT_VALID_PRODUCTS_NAME . "</b></td></tr><tr>";
  38      $result = mysql_query("SELECT * FROM products, products_description WHERE products.products_id = products_description.products_id and products_description.language_id = '" . $languages_id . "' ORDER BY products_description.products_name");
  39      if ($row = mysql_fetch_array($result)) {
  40          do {
  41              echo "<td class='infoBoxContents'>&nbsp;".$row["products_id"]."</td>\n";
  42              echo "<td class='infoBoxContents'>".$row["products_name"]."</td>\n";
  43              echo "</tr>\n";
  44          }
  45          while($row = mysql_fetch_array($result));
  46      }
  47      echo "</table>\n";
  48  ?>
  49  <p class="smallText" align="right"><?php echo '<a href="javascript:window.close()">' . TEXT_CLOSE_WINDOW . '</a>'; ?>&nbsp;&nbsp;&nbsp;</p>
  50  <br>
  51  </body>
  52  </html>
  53  <?php require ('includes/application_bottom.php'); ?>


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