Fiverr

$sale){ foreach($sale[$data_type] as $data){ if($data["name"]==$name){ ${$name} += $data[$variable]; } } } break; case "LASTSALE": //The last sale an item was in $lastsale = 0; foreach($vehicle["SALE"] as $key=>$sale){ $saledate = strtotime($sale["DATE"]); foreach($sale[$data_type] as $data){ if($data["name"]==$name){ if($saledate>$lastsale){ $lastsale =$saledate; ${$name} = $data[$variable]; } } } } break; } return ${$name}; } function vehicle($fastpass){ $url = "http://70.90.141.193/customer.php?data=fact&fastpass=$fastpass"; $json = hub_http($url); $vehicle = array("fastpass"=>"","points_earned"=>0,"points_used"=>0, "credits_earned"=>0,"credits_used"=>0,"SALE"=>array()); $url = "http://70.90.141.193/hidden.php"; $json = hub_http($url); $hidden = array(); $array_hidden = json_decode($json); foreach($array_hidden as $item){ $hidden[] = $item->ITEM; } $url = "http://70.90.141.193/customer.php?data=item&fastpass=$fastpass"; $json = hub_http($url); $vehicle_data = json_decode($json); // customer sale fact relationship foreach($vehicle_data as $row){ $objid = $row->OBJID; if(!in_array($objid,$hidden)){ $fastpass = (string)$row->CODE; $sale_id = (string)$row->SALEID; $item = (string)$row->NAME; $qty = (string)$row->QTY; $amt = (string)$row->AMT; $sale_date = (string)$row->SALEDATE; $val = (string)$row->VAL; $shift =(string)$row->SHIFT; $terminal = (string)$row->TERMINAL; $time = (string)$row->SALETIME; $site = (string)$row->SITE; $salestatus = (string)$row->SALESTATUS; if($vehicle["fastpass"]==""){ $vehicle["fastpass"] = $fastpass; } if(!array_key_exists($sale_id,$vehicle["SALE"])){ $vehicle["SALE"][$sale_id] = array("SALEID"=>$sale_id,"SITE"=>$site,"DATE"=>$sale_date,"TIME"=>$time,"TERMINAL"=>$terminal,"SALESTATUS"=>$salestatus, "SHIFT"=>$shift,"FACTS"=>array(),"ITEMS"=>array()); } $vehicle["SALE"][$sale_id]["ITEMS"][] = array("name"=>$item,"val"=>$val,"qty"=>$qty,"amt"=>$amt); } } $url = "http://70.90.141.193/customer.php?data=fact&fastpass=$fastpass"; $json = hub_http($url); $vehicle_data = json_decode($json); foreach($vehicle_data as $row){ $fastpass = (string)$row->CODE; $sale_id = (string)$row->SALEID; $fact = (string)$row->NAME; $data = (string)$row->DATA; $sale_date = (string)$row->SALEDATE; $shift =(string)$row->SHIFT; $terminal = (string)$row->TERMINAL; $time = (string)$row->SALETIME; $site = (string)$row->SITE; $salestatus = (string)$row->SALESTATUS; if($vehicle["fastpass"]==""){ $vehicle["fastpass"] = $fastpass; } if(!array_key_exists($sale_id,$vehicle["SALE"])){ $vehicle["SALE"][$sale_id] = array("SALEID"=>$sale_id,"SITE"=>$site,"DATE"=>$sale_date,"TIME"=>$time,"TERMINAL"=>$terminal,"SHIFT"=>$shift,"SALESTATUS"=>$salestatus, "FACTS"=>array(),"ITEMS"=>array()); } $vehicle["SALE"][$sale_id]["FACTS"][] = array("name"=>$fact,"data"=>$data); } $vehicle["points_earned"] = data("PointsEarned","FACTS","data","SUM",$vehicle); $vehicle["points_used"] = data("PointsUsed","FACTS","data","SUM",$vehicle); $club_plan = data("ClubPlanType","FACTS","data","LASTSALE",$vehicle); //CreditsEarned,CreditsUsed $vehicle["credits_earned"] = data("CreditsEarned","FACTS","data","SUM",$vehicle); $vehicle["credits_used"] = data("CreditsUsed","FACTS","data","SUM",$vehicle); $url = "http://70.90.141.193/table.php?fields=OBJID,NAME&table=V_PLANTYPE&var=OBJID*$club_plan"; $json = hub_http($url); return $vehicle; } function transaction_contents($sale){ $contents = ""; // list the sale items and get the right facts to display the sale. $items = $sale["ITEMS"]; foreach($items as $item){ $quantity = (int)$item["qty"]>1 ? "(".(string)$item["qty"].")" : ""; $contents .= (string)str_replace("'","" ,$item["name"])." $quantity ".(string)money_format('%(#1n',(double)$item["amt"])."
"; } return (string)$contents; /* $facts = $sale["FACTS"]; foreach($facts as $fact){ if($fact["name"]=="SalesAmount"){ echo (string)$fact["name"]." ".(string)$fact["data"]; echo "
"; break; } } */ } //echo (int)$points_earned-(int)$points_used; ?>
Clear Sunset Car Wash | Rewards Program & FastPass

Become a Rewards Members -- It's free!

 

Preferred Customer Handout (back)

 

How it Works

We place a very special sticker on the bottom-left corner of your Windshield. This sticker has a bar code which is for our greeter to quickly enter your vehicle into the computer on each visit so you will automatically receive your Punches & Points, as well as your 2-Day Clean Car Guarantee (and all the other benefits above).

CLICK HERE TO REGISTER YOUR FASTPASS

 

 
12){ $PM_AM = "PM"; $hour = $hour - 12; } if($minutes<10){ $minutes = "0".(string)$minutes; } return (string)$hour.":".(string)$minutes." ".$PM_AM; } ?>

                                        

CODE==(string)$fastpass){ $groupleader="Yes"; } $group[(string)$row->CODE] = array("fastpass"=>(string)$row->CODE,"name"=>(string)$row->NAME,"birthday"=>substr((string)$row->BIRTHDATE,5,5),"groupleader"=>$groupleader,"vehicle"=>vehicle((string)$row->CODE)); } $points = 0; $credits = 0; foreach($group as $punches_points){ $credits += (int)$punches_points["vehicle"]["credits_earned"] - (int)$punches_points["vehicle"]["credits_used"]; $points += (int)$punches_points["vehicle"]["points_earned"] - (int)$punches_points["vehicle"]["points_used"]; } $html = ""; $groupleaderhtml = ""; $grouplackies = ""; $count = 0; $leader_bd = 0; foreach($group as $object){ $grouped_fastpass = $object["fastpass"]; $name = $object["name"]; $birthday = $object["birthday"]; if($object["groupleader"]=="Yes"){ $groupleaderhtml .= "$grouped_fastpass
"; $groupleaderhtml .= "$name
"; $groupleaderhtml .= "$email"; $leader_bd = $birthday; }else{ if(!strpos($grouped_fastpass,"~")){ $count += 1; $grouplackies .= "$grouped_fastpass  $name    $birthday  "; } } } //if($count<4){ // $grouplackies .= "Group More Vehicles (Max 4)"; //} $vehicle = vehicle($fastpass); $credits_earned = (int)$credits; $points_earned = $points; $groupleaderhtml = "
VEHICLE INFORMATION FOR:
$groupleaderhtml
Punches: $credits_earned
Points: $points_earned
Birthday: $leader_bd
"; $tableheaders = "GROUPED VEHICLESNAMEBIRTHDAY"; $tableheaders = $count==0 ? "" : $tableheaders; $table = "$tableheaders$grouplackies
"; $html = "

$groupleaderhtml
$table


"; echo $html; // for groups look at sale and find the lowest number. Once lowest number is found advance the array a step // next if($page=="transactions"){ $transaction_table = ""; $sales = $vehicle["SALE"]; $grouped = empty($_POST["showall"])==true ? "" : $_POST["showall"]; if($grouped=="yes"){ /* foreach($group as $key=>$object){ $group[$key]["vehicle"] = vehicle((string)$key); } */ $number_of_vehicles = sizeof($group); $number_of_finished = 0; $sales = array(); $finished_vehicles = array(); $firstsale = array("fastpass"=>"","saleid"=>"0","saledate"=>10000000000000); while($number_of_finished<$number_of_vehicles){ foreach($group as $key=>$vehicle){ if(in_array($key,$finished_vehicles)==false){ $sale = current($group[$key]["vehicle"]["SALE"]); $saleid = key($sale); $saledate = strtotime($sale[$saleid]["DATE"]); if($saledate<=$firstsale["saledate"]){ $firstsale["saleid"]= $saleid; $firstsale["saledate"] = $saledate; $firstsale["fastpass"] = $key; } } } $currentfastpass = $firstsale["fastpass"]; $currentsale = current($group[$firstsale["fastpass"]]["vehicle"]["SALE"]); $sdate = strtotime($currentsale["DATE"]); $saleid = $currentsale["SALEID"]; $last = next($group[$firstsale["fastpass"]]["vehicle"]["SALE"]); $status = $currentsale["SALESTATUS"]; if((($startdate=="" && $enddate=="") || ($sdate>=$startdate && $sdate<=$enddate)) && $status!="Adjusted" ){ if(is_array($currentsale["ITEMS"])){ $shift = $currentsale["SHIFT"]; $time = time_of_day($currentsale["TIME"]); //"time"; $location = $currentsale["SITE"]; $terminal = $currentsale["TERMINAL"]; $date = date("M j,Y",$sdate); $salestring = ""; if($location["at_location"]){ $salestring = "
$saleid"; } $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; } } if($last==false){ $number_of_finished +=1; $finished_vehicles[] = $currentfastpass; } } }else{ foreach($sales as $key=>$sale){ $shift = $sale["SHIFT"]; $time = time_of_day($sale["TIME"]); //"time"; $location = $sale["SITE"]; $terminal = $sale["TERMINAL"]; $sdate = strtotime($sale["DATE"]); $date = date("M j,Y",$sdate); $status = $sale["SALESTATUS"]; if((($startdate=="" && $enddate=="") || ($sdate>=$startdate && $sdate<=$enddate)) && $status!="Adjusted" ){ $transaction_table .= ""; $salestring = ""; if($location["at_location"]){ $salestring = "
$key"; } $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $transaction_table .= ""; $trans_content = transaction_contents($sale); $transaction_table .= ""; $send_email = " "; $transaction_table .= ""; } } } $transaction_table .= "
DateTimeSiteFastpass NumberShiftTerminalTransaction Contents
$date $salestring$time$location$currentfastpass$shift$terminal".transaction_contents($currentsale)."
$date $salestring$time$location$fastpass$shift$terminal".$trans_content."".$send_email."
"; //echo $transaction_table; } ?>
From: To:
 INCLUDE GROUPED VEHICLES
'.$transaction_table."
Any FastPass number starting with a ~ indicates that the FastPass has been deactivated.
" : ""; echo $transaction_table; ?>

Welcome Rewards Customer!

Access your account to view your:

  • Punches
  • Points
  • Transaction History

Vehicles must be registered to access your account. If your vehicle isn't registered, click here.
Login to your account will be available THE DAY AFTER your FastPass is registered.

Fast Pass Number:
Email Address:

 


 

Note: Your 11th Wash Free will automatically be issued when we scan your FastPass if eligible.

 

 

 

 

Alert: Invalid FastPass!

Alert: Invalid email address!