ThinkPHP模板select年份
<select name="s_deduct_year">
<option value="">年度</option>
<for start="2019" end="date('Y')" comparison="elt">
<option value="{$i}" <if condition="$i==$year">selected</if> >{$i}</option>
</for>
</select>
<select name="s_deduct_year">
<option value="">年度</option>
<for start="2019" end="date('Y')" comparison="elt">
<option value="{$i}" <if condition="$i==$year">selected</if> >{$i}</option>
</for>
</select>