<table> <?php if (strlen($auto->getVin()) > 0) { ?> <tr> <th>VIN:</th> <td><?php echo $auto->getVin(); ?> </td> </tr> <?php } ?> <?php if (strlen($auto->getOdometerReading()) > 0) { ?> <tr> <th><?php echo \SquirrelsInventory\Controller::getMileageLabel(TRUE); ?> :</th> <td><?php echo number_format($auto->getOdometerReading()); ?> </td> </tr> <?php } ?> <?php
<tr> <th> <label for="squirrels_year">Year:</label> </th> <td> <input id="squirrels_year" value="<?php echo htmlspecialchars($auto->getYear()); ?> " /> </td> <th> <label for="squirrels_odometer_reading">Odometer:</label> </th> <td> <input id="squirrels_odometer_reading" value="<?php echo number_format($auto->getOdometerReading()); ?> " /> </td> </tr> <tr> <th> <label for="squirrels_exterior">Exterior:</label> </th> <td> <input id="squirrels_exterior" placeholder="ex: Red" value="<?php echo htmlspecialchars($auto->getExterior()); ?> " /> </td>