<tr>
<th>販売開始期間</th>
<td>
- <%= date_select 'search', 'sale_start_from', :use_month_numbers => true, :include_blank => true %>~
- <%= date_select 'search', 'sale_start_to', :use_month_numbers => true, :include_blank => true %>
+ <%= calendar_date_select(:search,:sale_start_from,
+ {:start_year => 5.years.ago.year,
+ :end_year => 5.years.since.year,
+ :use_month_numbers => true,
+ :include_blank =>true}) %>
+ 〜
+ <%= calendar_date_select(:search,:sale_start_to,
+ {:start_year => 5.years.ago.year,
+ :end_year => 5.years.since.year,
+ :use_month_numbers => true,
+ :include_blank =>true}) %>
</td>
</tr>
</table>
<tr>
<th style="width:10%">期間集計</th>
<td style="width:90%">
- <%= date_select 'search', 'date_from', :use_month_numbers => true %>~
- <%= date_select 'search', 'date_to', :use_month_numbers => true %>
+ <%= calendar_date_select(:search,:date_from,
+ {:start_year => 5.years.ago.year,
+ :end_year => 5.years.since.year,
+ :use_month_numbers => true}) %>
+ ~
+ <%= calendar_date_select(:search,:date_to,
+ {:start_year => 5.years.ago.year,
+ :end_year => 5.years.since.year,
+ :use_month_numbers => true}) %>
<%= submit_tag '期間で集計する', :name=>'search[by_date]', :class => "btn_s" %>
</td>
</tr>