-->-->-->-->-->-->--> require '/usr50/home/retrovox/public_html/manage/php-lib/RETROVOX-CONSTANT-VARIABLES.php'; require '/usr50/home/retrovox/public_html/manage/php-lib/fnRetrovoxParseXml.php'; $sDataPath = '/usr50/home/retrovox/public_html/product-data'; $sProductId = $_GET["product"]; $sFilePath = "$sDataPath/product-$sProductId.xml"; if ($sProductId == '') { echo " Retrovox Product Display, (No product specified) ${S-RETROVOX-TITLE-IMAGE-HTML}

No product was specified to edit


  1. View the product data directory
  2. Add a new product to the Retrovox database
  3. Select a product to edit from the list below "; $iCurrentProductId = 0; $sExtractedId = ''; //-- to get the product-id from the file name $sFileContents = ''; $aaProductData = ''; $iCount = '0'; //-- used to shade alternate rows of display table $dh = opendir($sDataPath); while (false !== ($sCurrentFileName = readdir($dh))) { $sExtractedId = str_replace('.xml', '', str_replace('product-', '', $sCurrentFileName)); if (is_numeric($sExtractedId)) { $iCurrentProductId = $sExtractedId; $sFileContents = implode('', file($sDataPath."/".$sCurrentFileName)); $aaProductData = fnRetrovoxParseXml($sFileContents); if (($iCount % 2) == 0) { $sBackgroundColour = "#ffffff"; } else { $sBackgroundColour = "#efefef"; } echo " "; $iCount++; } //-- if is product data file } //-- while more files echo "
    IDProduct Nameactionaction actionaction
    ". $aaProductData['product-id']."". $aaProductData['product-name']. "view page view data view xml edit
TIP: You can specify a product to edit using a 'query string' in the URL for this page. For example, you could type http://www.retrovox.com.au/product-data/display-product-tabular.php?product=62 in your browsers address-bar in order to view the product with the id 62 "; exit; } //-- if no product if (!file_exists($sFilePath)) { echo " Retrovox Product Display, (The item doesn't exist) ${S-RETROVOX-TITLE-IMAGE-HTML}

The item doesn't exist

There is no product on the Retrovox site with the product-id which you just specified. Please try again


  1. View the product data directory
  2. Add a new product to the Retrovox database
"; exit; } //-- if product doesnt exist if (!is_readable($sFilePath)) { echo " Retrovox Product Display, (The product file is not readable) ${S-RETROVOX-TITLE-IMAGE-HTML}

The product file is not readable

The file containing the data for the product which you specified is not readable. The permissions for this file will need to be altered by the system administrator


"; return; } //-- if product file not readable //$aaProductData = parse_ini_file($sFilePath); //echo "short-description=".$aaProductData["short-description"]; $sProductData = implode('', file($sFilePath)); $aaProductData = fnRetrovoxParseXml($sProductData); //--<--<--<--<--< ?> Edit Retrovox Product Information
-->-->-->-->-->-->--> echo " \n"; foreach ($aaProductData as $key => $value) { if (($key != 'long-description') && ($key != 'product-id')) { echo " \n"; } } //-- foreach echo " \n"; //--<--<--<--<--<--<--<--< ?>
product-id ".$aaProductData['product-id']. "
$key
long-description
  1. View the web-page for this product
  2. View the raw XML data for this product
  3. View the XML data for this product in a web-page
  4. View the data for this product in a tabular format