Add to the “TABLENAME.php” file in the hooks directory in the tablename_header function

			case 'tableview':
				$header=$header="<%%HEADER%%><script>$j(function(){
	$j('td.TABLENAME-FIELDNAME').each(function(){
	  switch ($j(this).text()) {
		case 'Pending': 
			$j(this).parent().css({'background-color': 'red'});
			break;
		case 'Booked':
			$j(this).parent().css({'background-color': 'blue'});
			break;
		case 'Delivered':
			$j(this).parent().css({'background-color': 'green'});
			break;
		default: 
			break;
	  }
	})
})</script>";;