$status = $_COOKIE['status'];
$repped=$_COOKIE['ecorep'];
$mycat=$_COOKIE['ecosmartmycat'];
$print = $_GET['print'];
$ctd=$_GET['ctd'];
if($print == "yes"){
if($ctd==""){
$goprint = "onLoad='javascript:printWindow()'";
}//if not coming from mycatalog
$status="";
$repped="";
$pgbg="white";
}else{
$goprint = "";
$pgbg="#BDDEA0";
}
/////////////////////////////////////////////////////////
$fr=$_GET['fr'];
if($fr == "iaq"){
$subcat = "Indoor Air Quality";//category name
$back = "IAQ/catiaq.php";//category address
$head = "catiaqhead.js";
if($print=="yes"){
$head = "catiaqheadprint.js";
}
}else{
$subcat = "HVAC";//category name
$back = "catac.php";//category address
$head = "catachead.js";
if($print=="yes"){
$head = "catacheadprint.js";
}
}
$page_name = "catac6";
$here=$page_name.".php";
$mycathere=$page.".php";
$hereprint=$here."?print=yes";
$page=$page_name;//change folder if needed
$prodname="Compact Dehumidifiers";
if($mycat!=""){
$mycat_link="Add to My Catalog";
}else{
$mycat_link="My Catalog";
}
$item="AC-EVD*";
$price_display="Quoted";
$items[]="AC-EVD300";
$itemnames[]="Eva-Dry Mini Dehumidifier";
$items[]="AC-EVD500";
$itemnames[]="Eva-Dry High Capacity Renewable Dehumidifier";
$items[]="AC-EVD1100";
$itemnames[]="Eva-Dry Electric Petite Dehumidifier";
$dbcnx = new mysqli('localhost', 'ecoszzqh_produser', 'cata1og', 'ecoszzqh_products');
foreach($items as $value){
$result = $dbcnx->query("SELECT list,retail,special,dealer,unit,cs FROM price WHERE item = '$value'");
if (!$result) {
//echo("ERROR:".mysql_error()."
");
$mess[]="Eco-\$mart Price: Quoted*";
$pay[] = "no";
}else{
$row = $result->fetch_row();
$list = $row['list'];
$retail = $row['retail'];
$special = $row['special'];
$dealer = $row['dealer'];
$unit = $row['unit'];
$units[]=$unit;
$cs = $row['cs']*1;
if($unit == "CS" and $cs > 0){
$unit = "CS*".$cs;
$caseit = "on";
}else{
$caseit = "off";
}
if($special>0 or $dealer>0){
$qoks[]=$value;
}
if($status == 'wholesale'){$charge=$special; $bergen = 'Special';}
elseif($status == 'dealer'){$charge=$dealer; $bergen = 'Wholesale';}
else{$charge=$retail; $bergen = "";}
if($retail == "0.00" and $list == "0.00" or $retail="" or $list==""){
$mess[]="Eco-\$mart Price: Quoted";
$pay[] = "no";
}else{
if($retail != "0.00" and $list == "0.00"){
$pay[] = "yes";
if($bergen != ""){
$mess[]="Regular Price: \$".$retail."" .
"
Eco-\$mart ".$bergen." Price: \$".$charge."";
}else{
$mess[]="Eco-\$mart Price: \$".$charge." ".$unit."";
}//no special pricing
}//retail is not 0 and list is
else{//all present
$pay[] = "yes";
if($bergen != ""){
$mess[]="List Price: \$".$list."".
"
Regular Price: \$".$retail."" .
"
Eco-\$mart ".$bergen." Price: \$".$charge." ".$unit."";
}else{//list but no special pricing
$mess[]="List Price: \$".$list."".
"
Eco-\$mart Price: \$".$charge." ".$unit."";
}
}//allpresent
}//retail and list are 0.00
if($caseit == "on"){
$cso[] = $cs.":".$charge;
$casecharge = $charge * $cs;
$price[] = sprintf("%01.2f", $casecharge);
}else{
$price[] = $charge;
$cso[] = "";
}//no cases
}//got result
}//4eachitem
//////////////////////////divide table cells for quote request
//$labels[]="Item Number";
//$itcount=count($items);
//$labcount=count($labels);
//$dibby=$itcount/$labcount;
//$codes=array();
$libdot = " ";
$libdotnew = "
";
?>
Eva-dry Compact Dehumidifiers
Protect your family and your valuables from the damaging and unhealthy effects of mold, mildew, and moisture rot with the Eva-dry line of compact dehumidifiers. Where ever moisture in enclosed spaces is a problem there is an Eva-dry model to meet the need. Cabinets, closets, safes, display cases, book shelves, boats, home offices, bathrooms and kitchens are just a few examples. Smaller units are wireless so you can use them anywhere. All models are environmentally safe and eliminate the need for disposable dehumidifiers that waste money and resources.
if($print!="yes"){
echo("![]() ![]() |
if($print!="yes"){
echo("Eva-Dry Mini Dehumidifier");
}else{
echo("Eva-Dry Mini Dehumidifier");
}
?>
This mini dehumidifier has been designed to adsorb moisture from small, enclosed areas. It can be used anywhere because it needs no power to operate. The mini will absorb 6 ounces of moisture in six to eight weeks and is 100% renewable. Renewing is easy. Just plug the unit into an electrical outlet for 8 hours and the mini dehumidifier will be ready to go back to work. | |
Item Number:
if($print!="yes"){
if($pay[0]=="yes"){
echo(" $mess[0] " . ""); }else{ echo(" $mess[0]"); if($print!="yes"){ echo(" " . "" . "Quote "); }//print is not yes }//pay is no }//print is not yes else{ echo(" $mess[0]"); }//print is yes ?> | if($print!="yes"){ echo("Details & Specifications"); }else{ echo(" "); } ?> |
if($print!="yes"){
echo("![]() ![]() |
if($print!="yes"){
echo("Eva-Dry High Capacity Dehumidifier");
}else{
echo("Eva-Dry High Capacity Dehumidifier");
}
?>
This high capacity renewable dehumidifier has been designed to adsorb moisture from larger enclosed areas. Like the mini, it can be used anywhere because it needs no power to operate. This unit will absorb 10 ounces of moisture in six to eight weeks and is 100% renewable. Renewing is easy. Just plug the unit into an electrical outlet for 12-14 hours and the high capacity dehumidifier will be ready to go back to work. | |
Item Number:
if($print!="yes"){
if($pay[1]=="yes"){
echo(" $mess[1] " . ""); }else{ echo(" $mess[1]"); if($print!="yes"){ echo(" " . "" . "Quote "); }//print is not yes }//pay is no }//print is not yes else{ echo(" $mess[1]"); }//print is yes ?> | if($print!="yes"){ echo("Details & Specifications"); }else{ echo(" "); } ?> |
if($print!="yes"){
echo("![]() ![]() |
if($print!="yes"){
echo("Eva-Dry Electric Petite Dehumidifier");
}else{
echo("Eva-Dry Electric Petite Dehumidifier");
}
?>
This electric dehumidifier is compact, light-weight, and whisper quiet because it uses Peltier Technology that requires no compressor. It is perfect for small to mid-sized rooms and is small enough to fit on a desk or table. Plug it in and it extracts up to 16 ounces of moisture from the air in 8 hours and stores it in a spill-proof reservoir. An automatic shut off switch stops the unit when the reservoir is full and an indicator light alerts you that it needs to be emptied. | |
Item Number:
if($print!="yes"){
if($pay[2]=="yes"){
echo(" $mess[2] " . ""); }else{ echo(" $mess[2]"); if($print!="yes"){ echo(" " . "" . "Quote "); }//print is not yes }//pay is no }//print is not yes else{ echo(" $mess[2]"); }//print is yes ?> | if($print!="yes"){ echo("Details & Specifications"); }else{ echo(" "); } ?> |
" . "" . "©2010 Eco-\$mart, Inc." . " (888) 329-2705" . " info@eco-smart.com" . " www.eco-smart.com" . " |
" .
" $mycat_link " . " << Return to $subcat" . " | ||
" . "" . " ©2010 Eco-\$mart, Inc." . " (888) 329-2705" . " info@eco-smart.com" . " www.eco-smart.com" . " | " . " QUOTE " . " | " . " PRINT " . " |
" .
"
" . " Eco-\$mart Representative $repped Logged In. "); mysql_select_db('ecosmar_inv', $dbcnx); $getquote = $dbcnx->query("SELECT ID,CID FROM quotes WHERE usrn='$repped'"); if(!$getquote){ $air[]="Could not get quotes for ".$repped.". Error: ".mysql_error(); $show="off"; }else{ $numquos=mysql_num_rows($getquote); if($numquos < 1){ $show="off"; $air[]="No Quotes Started."; }else{//there are quotes while($rowq=mysql_fetch_array($getquote)){ $QIDs[]=$rowq['ID']; $CIDs[]=$rowq['CID']; }//while getting and filling arrays mysql_select_db('ecosmar_contacts', $dbcnx); foreach($CIDs as $value){ $getcon=mysql_query("SELECT first_Name,Name,Company FROM con_main WHERE ID='$value'"); if(!$getcon){ $air[]="Could not get contact info for contact. Error: ".mysql_error(); $show="off"; }else{ $rowc=mysql_fetch_array($getcon); $first_Name=$rowc[0]; $Name=$rowc[1]; $Company=$rowc[2]; if($Company!=""){ $quocos[]=$Company; }else{ $quocos[]=$first_Name." ".$Name; } }//got contact }//4each quote/contact ID }//there are quotes }//got quote $i=0; $countem=count($items); while($i<$countem){ if(in_array($items[$i],$qoks)){ $ast[]=$items[$i]; $astname[]=$itemnames[$i]; }//in array with dealer prices $i=$i+1; }//while counting items if(empty($ast)){ $air[]="No Quotes. No qualifying prices."; $show="off"; } if($show=="on"){ echo("");
foreach($air as $value){
echo(" ");
}//air is not empty
}//print is not yes
?>
$value"); }//4each echo(" |