I have a similar request and want to see first recent year, not 1900 as first option.
I have latest version of the component.
Moreover, where do i have to edit in order to add/remove years?
Now the code is:
Code: |
<?php
echo "<option value=''>";
echo _VEHICLE_MANAGER_OPTION_SELECT;
echo "</option>";
$num = 1900;
for ($i = 0; $num <= date('Y'); $i++) {
echo "<option value="";
echo $num;
echo """;
if ($num == $row->year)
{
echo " selected= "true" ";
}
echo ">";
echo $num;
echo "</option>";
$num++;
}
?>
|
Thanks