Who's In The Shop?

"; echo "\n"; $colorbit = 1; while($row = mysql_fetch_array($userresult)){ $userID = "$row[userID]"; $inforesult = mysql_query("SELECT first_name,last_name FROM customers WHERE id=$userID ORDER BY last_name ASC"); $visitID = $row[visitID]; while($info = mysql_fetch_array($inforesult)){ $trcolour = "";//#DDDDDD"; if($colorbit == 1){ $trcolour = "#BBBBBB"; $idhide = "#CCCCCC"; $colorbit = 2; }else{ $trcolour = "#DDDDDD"; $idhide = "#999999"; $colorbit = 1; } $isAdmin = false; $isMech = false; $exstyle = ""; if($row[activity] == "Mechanic"){ //$trcolour = "#99FF99"; $isMech = true; $exstyle = "font-weight: bold;font-size: 10px;"; }else if($row[activity] == "Administrator"){ //$trcolour = "#66BBBB"; $isAdmin = true; $exstyle = "font-weight: bold;font-size: 10px;"; } //if($colorbit == 2){//trcolour != ""){ //echo ""; //} $result = mysql_query("SELECT id,first_name,last_name FROM customers ORDER BY last_name ASC"); echo " $info[last_name], $info[first_name]"; if($isAdmin){ echo " $cfg_administratorTitle"; //echo "deposit/payout"; //echo ""; echo " logoutConfirm', 'logout.php')\">Log off"; }else if($isMech){ echo " $cfg_mechanicTitle"; //echo "internal sale"; if($cfg_mechAutoSignin == "yes"){ echo "

Switch It Up
"; }else{ echo " Sign Out In/Out Retroactively "; } }else{ echo " $row[activity]"; //echo " echo " Sign Out In/Out Retroactively "; } echo "\n"; } } echo ""; ?>