$show_manufacturers= true;
// for large lists of manufacturers uncomment this section
/*
if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or ($request_type == 'SSL')) {
$show_manufacturers= false;
} else {
$show_manufacturers= true;
}
*/
// Set to true to display manufacturers images in place of names
define('DISPLAY_MANUFACTURERS_IMAGES',false);
if ($show_manufacturers) {
// only check products if requested - this may slow down the processing of the manufacturers sidebox
if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
$manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
order by manufacturers_name";
} else {
$manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
order by manufacturers_name";
}
$manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);
if ($manufacturer_sidebox->RecordCount()>0) {
$number_of_rows = $manufacturer_sidebox->RecordCount()+1;
// Display a list
$manufacturer_sidebox_array = array();
// kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
// if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
// } else {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
// }
while (!$manufacturer_sidebox->EOF) {
$manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
$manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
$manufacturer_sidebox_array[] =
array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
'text' => DISPLAY_MANUFACTURERS_IMAGES ?
zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
$manufacturer_sidebox_name);
$manufacturer_sidebox->MoveNext();
}
}
} // $show_manufacturers
for ($i=0;$i';
$content .= $manufacturer_sidebox_array[$i]['text'];
$content .= '' . "\n";
echo $content;
}
?>
Locate in the Silicon Valley, the Eagle-Antenna.COM is dedicated to delivering top quality Ham radio equipments to the enthusiasts around the world, a tradition that has kept many of our customer happy since 2000.
At Eagle-Antenna.COM, we specialize import to the maximum the best radio products from around the world and sell them at the lowest possible prices. Everything we sell comes with a manufactuer warranty. Our customer not only get a good price on a quality item but also Fast Shipping and Great Customer Service.
Any questions or concerns feel free to contact us at eagle@eagle-antenna.com, and we will do our best to answer your questions. Any product you do not see and need? Please ask and we will do our best to locate the items for you.
Eagles Antenna offers a wide range of products for Government, Contract and Nonprofit Organizations orders. We highly suggest you contact us directly to obtain specific information concerning your upcoming project.
Our Email: eagle@eagle-antenna.com
Shop with Confidence
Eagle-Antenna.COM takes great pride in offering a safe and secure online shopping experience. Shopping on Eagle-Antenna.COM is safe. We understand that the safety of your personal information is extremely important to you. We use a wide array of electronic and physical security measures and devices to protect your personal data and credit card information from unauthorized access. Thanks for shopping with confidence!