echo number_format($violations[$i]['map'], 2); ?> <?php } ?> </td> <td> $<?php echo number_format($violations[$i]['price'], 2); ?> </td> <td> <?php $violation = '<img src="' . frontImageUrl() . 'icons/arrow-orange-down.png" alt="MAP Violation"> LOW'; // for non-violation reports we - don't really have the shot value from the violations table $shot = get_violation_image($violations[$i]); if (!empty($shot)) { $violation = '<a href="' . $shot . '" target="_blank">' . $violation . '</a>'; } echo $violation; ?> </td> <td> <a href="<?php echo $violations[$i]['url']; ?> " target="_blank"><img src="<?php echo frontImageUrl(); ?> icons/link.png"></a> </td>
?> >$<?php echo number_format($productData[$i]['price'], 2); ?> </td> <td <?php echo $style; ?> > <?php //until we start keeping correct map values in dynamo - just grab from google data $map = $productData[$i]['map']; if ($productData[$i]['price'] < $map) { $violation = '<img src="' . frontImageUrl() . 'icons/arrow-orange-down.png" alt="" style="margin-right:5px;"> LOW'; //for non-violation reports we - don't really have the shot value from the violations table $shot = get_violation_image($productData[$i]); if (!empty($shot)) { $violation = '<a href="' . $shot . '" target="_blank">' . $violation . '</a>'; } echo $violation; } ?> </td> <td <?php echo $style; ?> ><a href="<?php echo $productData[$i]['url']; ?> " target="_blank"><?php echo extractDomainByURL($productData[$i]['url']);
} } ?> </td> <td <?php echo $style; ?> > <?php if ($comparison) { //until we start keeping correct map values in dynamo - just grab from google data $map = $comparison['map']; if ($comparison['price'] < $map) { $violation = '<img src="' . frontImageUrl() . 'floor.png" alt="" style="margin-right:5px;"> LOW'; //for non-violation reports we - don't really have the shot value from the violations table $shot = get_violation_image($comparison); if (!empty($shot)) { $violation = '<a href="' . $shot . '" target="_blank">' . $violation . '</a>'; } echo $violation; } } ?> </td> <td <?php echo $style; ?> ><?php if ($comparison) { ?> <a href="<?php
<td><?php if (!empty($data['map']) && $data['map'] != 0 && $data['map'] != 0.0) { ?> $<?php echo number_format($data['map'], 2); } ?> </td> <td>$<?php echo number_format($data['price'], 2); ?> </td> <td><?php $violation = $image = ''; if ($data['price'] < $data['map']) { $image = get_violation_image($data); if (trim($image)) { $violation = '<a href="' . $image . '" target="_blank"><img src="' . frontImageUrl() . 'icons/arrow-orange-down.png" alt="" style="margin-right:5px;"/> LOW</a>'; } else { $violation = '<img src="' . frontImageUrl() . 'icons/arrow-orange-down.png" alt="" style="margin-right:5px;"/> LOW'; } echo $violation; } ?> </td> <td><a href="<?php echo $data['url']; ?> " target="_blank"><img src="<?php echo frontImageUrl(); ?>