
04-10-2004, 05:51 PM
|
|
|
Join Date: Aug 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by magnus
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.
|
Thanks Magnus
|