[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/admin/ -> validproducts.php (source)

   1  <?php
   2  /*

   3    $Id: validproducts.php,v 0.01 2002/08/17 15:38:34 Richard Fielder

   4  

   5    osCMax Power E-Commerce

   6    http://oscdox.com

   7  

   8    Copyright 2006 osCMax2002 Richard Fielder

   9  

  10    Released under the GNU General Public License

  11  */
  12  
  13  require ('includes/application_top.php');
  14  
  15  
  16  ?>
  17  <html>
  18  <head>
  19  <title>Valid Categories/Products List</title>
  20  <style type="text/css">
  21  <!--
  22  h4 {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-small; text-align: center}
  23  p {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small}
  24  th {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small}
  25  td {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small}
  26  -->
  27  </style>
  28  <head>
  29  <body>
  30  <table width="550" border="1" cellspacing="1" bordercolor="gray">
  31  <tr>
  32  <td colspan="3">
  33  <h4><?php echo TEXT_VALID_PRODUCTS_LIST; ?></h4>
  34  </td>
  35  </tr>
  36  <?php
  37      echo "<tr><th>". TEXT_VALID_PRODUCTS_ID . "</th><th>" . TEXT_VALID_PRODUCTS_NAME . "</th><th>" . TEXT_VALID_PRODUCTS_MODEL . "</th></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>".$row["products_id"]."</td>\n";
  42              echo "<td>".$row["products_name"]."</td>\n";
  43              echo "<td>".$row["products_model"]."</td>\n";
  44              echo "</tr>\n";
  45          }
  46          while($row = mysql_fetch_array($result));
  47      }
  48      echo "</table>\n";
  49  ?>
  50  <br>
  51  <table width="550" border="0" cellspacing="1">
  52  <tr>
  53  <td align=middle><input type="button" value="Close Window" onClick="window.close()"></td>
  54  </tr></table>
  55  </body>
  56  </html>


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