[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/admin/ -> validcategories.php (source)

   1  <?php
   2  /*

   3    $Id: validcategories.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="4">
  33  <h4><?php echo TEXT_VALID_CATEGORIES_LIST; ?></h4>
  34  </td>
  35  </tr>
  36  <?php
  37      echo "<tr><th>" . TEXT_VALID_CATEGORIES_ID . "</th><th>" . TEXT_VALID_CATEGORIES_NAME . "</th></tr><tr>";
  38      $result = mysql_query("SELECT * FROM categories, categories_description WHERE categories.categories_id = categories_description.categories_id and categories_description.language_id = '" . $languages_id . "' ORDER BY categories.categories_id");
  39      if ($row = mysql_fetch_array($result)) {
  40          do {
  41              echo "<td>".$row["categories_id"]."</td>\n";
  42              echo "<td>".$row["categories_name"]."</td>\n";
  43              echo "</tr>\n";
  44          }
  45          while($row = mysql_fetch_array($result));
  46      }
  47      echo "</table>\n";
  48  ?>
  49  <br>
  50  <table width="550" border="0" cellspacing="1">
  51  <tr>
  52  <td align=middle><input type="button" value="Close Window" onClick="window.close()"></td>
  53  </tr></table>
  54  </body>
  55  </html>


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