Quote:
Originally Posted by Socket-uk
Thanks for the hack
Now that is handy...when u have the time can you post that tweak
Cheers
Nige
|
Sure, here's the (basic) code -- you'll need to modify it, of course, to suit your needs. Here is the code for the Year dropdown:
In VBGARAGE_EDITGARAGE:
Find:
HTML Code:
<input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" />
REPLACE with:
HTML Code:
<select name="year">
<option <if condition="$data[year]==2002"> selected</if>>2002</option>
<option <if condition="$data[year]==2001"> selected</if>>2001</option>
<option <if condition="$data[year]==2000"> selected</if>>2000</option>
etc ..
</select>
You can obviously use this for the other fields as well, just be sure the <select name="foo"> variable matches the <input name="foo"> variable you're replacing.