Ignore:
Timestamp:
2013/01/08 17:52:03 (9 years ago)
Author:
yomoro
Message:

#1987 (国際化テンプレート:年月日のセレクトボックス廃止)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-multilang/data/Smarty/templates/admin/adminparts/form_customer_search.tpl

    r22179 r22212  
    3434    <th><!--{t string="tpl_339"}--></th> 
    3535    <td colspan="3"> 
    36     <!--{assign var=errkey1 value="search_b_start_year"}--> 
    37     <!--{assign var=errkey2 value="search_b_end_year"}--> 
    38         <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><span class="attention"><!--{$arrErr[$errkey1]}--><!--{$arrErr[$errkey2]}--></span><br /><!--{/if}--> 
    39         <!--{assign var=key value="search_b_start_year"}--> 
    40         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    41             <option value="" selected="selected">----</option> 
    42             <!--{html_options options=$arrBirthYear selected=$arrForm[$key].value}--> 
    43         </select>年 
    44         <!--{assign var=key value="search_b_start_month"}--> 
    45         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    46             <option value="" selected="selected">--</option> 
    47             <!--{html_options options=$arrMonth selected=$arrForm[$key].value}--> 
    48         </select>月 
    49         <!--{assign var=key value="search_b_start_day"}--> 
    50         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    51             <option value="" selected="selected">--</option> 
    52             <!--{html_options options=$arrDay selected=$arrForm[$key].value}--> 
    53         </select>日 
     36        <!--{if $arrErr.search_b_start_year || $arrErr.search_b_end_year}--> 
     37        <span class="attention"><!--{$arrErr.search_b_start_year}--></span> 
     38        <span class="attention"><!--{$arrErr.search_b_endy_ear}--></span> 
     39        <!--{/if}--> 
     40        <input id="datepickercustomersearch_b_start" type="text" value="<!--{if $arrForm.search_b_start_year.value != "" && $arrForm.search_b_start_month.value != "" && $arrForm.search_b_start_day.value != ""}--><!--{$arrForm.search_b_start_year.value|h}-->/<!--{$arrForm.search_b_start_month.value|h|string_format:'%02d'}-->/<!--{$arrForm.search_b_start_day.value|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_b_start_year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 
     41        <input type="hidden" name="search_b_start_year" value="<!--{$arrForm.search_start_year.value}-->" /> 
     42        <input type="hidden" name="search_b_start_month" value="<!--{$arrForm.search_start_month.value}-->" /> 
     43        <input type="hidden" name="search_b_start_day" value="<!--{$arrForm.search_start_day.value}-->" /> 
    5444        <!--{t string="-"}--> 
    55         <!--{assign var=key value="search_b_end_year"}--> 
    56         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    57             <option value="" selected="selected">----</option> 
    58             <!--{html_options options=$arrBirthYear selected=$arrForm[$key].value}--> 
    59         </select>年 
    60         <!--{assign var=key value="search_b_end_month"}--> 
    61         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    62             <option value="" selected="selected">--</option> 
    63             <!--{html_options options=$arrMonth selected=$arrForm[$key].value}--> 
    64         </select>月 
    65         <!--{assign var=key value="search_b_end_day"}--> 
    66         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    67             <option value="" selected="selected">--</option> 
    68             <!--{html_options options=$arrDay selected=$arrForm[$key].value}--> 
    69         </select>日 
     45        <input id="datepickercustomersearch_b_end" type="text" value="<!--{if $arrForm.search_b_end_year.value != "" && $arrForm.search_b_end_month.value != "" && $arrForm.search_b_end_day.value != ""}--><!--{$arrForm.search_b_end_year.value|h}-->/<!--{$arrForm.search_b_end_month.value|h|string_format:'%02d'}-->/<!--{$arrForm.search_b_end_day.value|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_b_end_year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 
     46        <input type="hidden" name="search_b_end_year" value="<!--{$arrForm.search_b_end_year.value}-->" /> 
     47        <input type="hidden" name="search_b_end_month" value="<!--{$arrForm.search_b_end_month.value}-->" /> 
     48        <input type="hidden" name="search_b_end_day" value="<!--{$arrForm.search_b_end_day.value}-->" /> 
    7049    </td> 
    7150</tr> 
     
    133112    <th><!--{t string="tpl_330"}--></th> 
    134113    <td colspan="3"> 
    135     <!--{assign var=errkey1 value="search_start_year"}--> 
    136     <!--{assign var=errkey2 value="search_end_year"}--> 
    137         <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><span class="attention"><!--{$arrErr[$errkey1]}--><!--{$arrErr[$errkey2]}--></span><br /><!--{/if}--> 
    138         <!--{assign var=key value="search_start_year"}--> 
    139         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    140             <option value="" selected="selected">----</option> 
    141             <!--{html_options options=$arrRegistYear selected=$arrForm[$key].value}--> 
    142         </select>年 
    143         <!--{assign var=key value="search_start_month"}--> 
    144         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    145             <option value="" selected="selected">--</option> 
    146             <!--{html_options options=$arrMonth selected=$arrForm[$key].value}--> 
    147         </select>月 
    148         <!--{assign var=key value="search_start_day"}--> 
    149         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    150             <option value="" selected="selected">--</option> 
    151             <!--{html_options options=$arrDay selected=$arrForm[$key].value}--> 
    152         </select>日 
     114        <!--{if $arrErr.search_start_year || $arrErr.search_end_year}--> 
     115        <span class="attention"><!--{$arrErr.search_start_year}--></span> 
     116        <span class="attention"><!--{$arrErr.search_endy_ear}--></span> 
     117        <!--{/if}--> 
     118        <input id="datepickercustomersearch_start" type="text" value="<!--{if $arrForm.search_start_year.value != "" && $arrForm.search_start_month.value != "" && $arrForm.search_start_day.value != ""}--><!--{$arrForm.search_start_year.value|h}-->/<!--{$arrForm.search_start_month.value|h|string_format:'%02d'}-->/<!--{$arrForm.search_start_day.value|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_start_year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 
     119        <input type="hidden" name="search_start_year" value="<!--{$arrForm.search_start_year.value}-->" /> 
     120        <input type="hidden" name="search_start_month" value="<!--{$arrForm.search_start_month.value}-->" /> 
     121        <input type="hidden" name="search_start_day" value="<!--{$arrForm.search_start_day.value}-->" /> 
    153122        <!--{t string="-"}--> 
    154         <!--{assign var=key value="search_end_year"}--> 
    155         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    156             <option value="" selected="selected">----</option> 
    157             <!--{html_options options=$arrRegistYear selected=$arrForm[$key].value}--> 
    158         </select>年 
    159         <!--{assign var=key value="search_end_month"}--> 
    160         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    161             <option value="" selected="selected">--</option> 
    162             <!--{html_options options=$arrMonth selected=$arrForm[$key].value}--> 
    163         </select>月 
    164         <!--{assign var=key value="search_end_day"}--> 
    165         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    166             <option value="" selected="selected">--</option> 
    167             <!--{html_options options=$arrDay selected=$arrForm[$key].value}--> 
    168         </select>日 
     123        <input id="datepickercustomersearch_end" type="text" value="<!--{if $arrForm.search_end_year.value != "" && $arrForm.search_end_month.value != "" && $arrForm.search_end_day.value != ""}--><!--{$arrForm.search_end_year.value|h}-->/<!--{$arrForm.search_end_month.value|h|string_format:'%02d'}-->/<!--{$arrForm.search_end_day.value|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_end_year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 
     124        <input type="hidden" name="search_end_year" value="<!--{$arrForm.search_end_year.value}-->" /> 
     125        <input type="hidden" name="search_end_month" value="<!--{$arrForm.search_end_month.value}-->" /> 
     126        <input type="hidden" name="search_end_day" value="<!--{$arrForm.search_end_day.value}-->" /> 
    169127    </td> 
    170128</tr> 
     
    172130    <th><!--{t string="tpl_342"}--></th> 
    173131    <td colspan="3"> 
    174     <!--{assign var=errkey1 value="search_buy_start_year"}--> 
    175     <!--{assign var=errkey2 value="search_buy_end_year"}--> 
    176         <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><span class="attention"><!--{$arrErr[$errkey1]}--><!--{$arrErr[$errkey2]}--></span><br /><!--{/if}--> 
    177         <!--{assign var=key value="search_buy_start_year"}--> 
    178         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    179             <option value="" selected="selected">----</option> 
    180             <!--{html_options options=$arrRegistYear selected=$arrForm[$key].value}--> 
    181         </select>年 
    182         <!--{assign var=key value="search_buy_start_month"}--> 
    183         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    184             <option value="" selected="selected">--</option> 
    185             <!--{html_options options=$arrMonth selected=$arrForm[$key].value}--> 
    186         </select>月 
    187         <!--{assign var=key value="search_buy_start_day"}--> 
    188         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    189             <option value="" selected="selected">--</option> 
    190             <!--{html_options options=$arrDay selected=$arrForm[$key].value}--> 
    191         </select>日 
     132        <!--{if $arrErr.search_buy_start_year || $arrErr.search_buy_end_year}--> 
     133        <span class="attention"><!--{$arrErr.search_buy_start_year}--></span> 
     134        <span class="attention"><!--{$arrErr.search_buy_end_year}--></span> 
     135        <!--{/if}--> 
     136        <input id="datepickercustomersearch_buy_start" type="text" value="<!--{if $arrForm.search_buy_start_year.value != "" && $arrForm.search_buy_start_month.value != "" && $arrForm.search_buy_start_day.value != ""}--><!--{$arrForm.search_buy_start_year.value|h}-->/<!--{$arrForm.search_buy_start_month.value|h|string_format:'%02d'}-->/<!--{$arrForm.search_buy_start_day.value|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_buy_start_year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 
     137        <input type="hidden" name="search_buy_start_year" value="<!--{$arrForm.search_buy_start_year.value}-->" /> 
     138        <input type="hidden" name="search_buy_start_month" value="<!--{$arrForm.search_buy_start_month.value}-->" /> 
     139        <input type="hidden" name="search_buy_start_day" value="<!--{$arrForm.search_buy_start_day.value}-->" /> 
    192140        <!--{t string="-"}--> 
    193         <!--{assign var=key value="search_buy_end_year"}--> 
    194         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    195             <option value="" selected="selected">----</option> 
    196             <!--{html_options options=$arrRegistYear selected=$arrForm[$key].value}--> 
    197         </select>年 
    198         <!--{assign var=key value="search_buy_end_month"}--> 
    199         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    200             <option value="" selected="selected">--</option> 
    201             <!--{html_options options=$arrMonth selected=$arrForm[$key].value}--> 
    202         </select>月 
    203         <!--{assign var=key value="search_buy_end_day"}--> 
    204         <select name="<!--{$key}-->" <!--{if $arrErr[$errkey1] || $arrErr[$errkey2]}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
    205             <option value="" selected="selected">--</option> 
    206             <!--{html_options options=$arrDay selected=$arrForm[$key].value}--> 
    207         </select>日 
     141        <input id="datepickercustomersearch_buy_end" type="text" value="<!--{if $arrForm.search_buy_end_year.value != "" && $arrForm.search_buy_end_month.value != "" && $arrForm.search_buy_end_day.value != ""}--><!--{$arrForm.search_buy_end_year.value|h}-->/<!--{$arrForm.search_buy_end_month.value|h|string_format:'%02d'}-->/<!--{$arrForm.search_buy_end_day.value|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_buy_end_year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 
     142        <input type="hidden" name="search_buy_end_year" value="<!--{$arrForm.search_buy_end_year.value}-->" /> 
     143        <input type="hidden" name="search_buy_end_month" value="<!--{$arrForm.search_buy_end_month.value}-->" /> 
     144        <input type="hidden" name="search_buy_end_day" value="<!--{$arrForm.search_buy_end_day.value}-->" /> 
    208145    </td> 
    209146</tr> 
Note: See TracChangeset for help on using the changeset viewer.