</td> </tr> <tr> <td><?php echo trad('Zone_transport', 'admin'); ?> </td> <td> <select name="zone"> <option value="0"><?php echo trad('Aucune', 'admin'); ?> </option> <?php $pays = new Pays(); foreach ($pays->query_liste("SELECT * FROM " . Zone::TABLE . " ORDER BY nom") as $zone) { ?> <option value="<?php echo $zone->id; ?> " <?php if ($errorCode > 0 && $request->request->get("zone") == $zone->id) { ?> selected="selected"<?php } ?> ><?php echo $zone->nom; ?> </option> <?php
</td> </tr> <tr> <td><?php echo trad('Zone_transport', 'admin'); ?> </td> <td> <select name="zone"> <option value="0"><?php echo trad('Aucune', 'admin'); ?> </option> <?php $query = "SELECT * FROM " . Zone::TABLE . " ORDER BY nom"; foreach ($pays->query_liste($query) as $zone) { ?> <option value="<?php echo $zone->id; ?> " <?php if ($zone->id == $pays->zone) { ?> selected="selected"<?php } ?> ><?php echo $zone->nom; ?> </option> <?php