require("/home/atsi/pagelayout/header.inc"); require("/home/atsi/pagelayout/footer.inc"); add_header("ATSI - AEMC Products"); // do not uncomment - used to detect the file name... // product_category("View AEMC Product Information"); ?>
AEMC Product Information
ATSI sells the entire line of AEMC products. Contact us today for pricing.
$dirlist = Array(); if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && !is_file('./'.$file)) { array_push($dirlist,$file); } } closedir($handle); } sort($dirlist); $sub_categories = ""; $categories = Array(); foreach($dirlist as $d) { if (is_file('./'.$d.'/index.html')) { $s = implode ('', file('./'.$d.'/index.html')); if (preg_match("/add_product_header\(\"([^\"]*)\"/i",$s,$matches)) { $s2 = "".$matches[1].""; if (preg_match("/product_category\(\"([^\"]*)\"/i",$s,$matches)) { $categories[$matches[1]] .= "".$s2."
"; } else { echo "".$s2."
"; } } else { if (preg_match("/product_category\(\"([^\"]*)\"/i",$s,$matches)) { $sub_categories .= ""; } } } } ksort($categories); foreach ($categories as $key => $cat) { ?>echo "
".$key."
"; echo $cat; } if ($sub_categories) { ?>echo $sub_categories; } ?> add_footer(); ?>