Ignore:
Timestamp:
2012/12/26 18:04:29 (11 years ago)
Author:
yomoro
Message:

誕生日セレクトボックスのjquery.ui化(他言語対応)

Location:
branches/version-2_12-multilang/data/Smarty/templates/admin
Files:
2 edited

Legend:

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

    r22134 r22159  
    171171                <th><!--{t string="tpl_217"}--></th> 
    172172                <td> 
    173                     <span class="attention"><!--{$arrErr.year}--></span> 
    174                     <select name="year" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > 
    175                         <option value="" selected="selected">------</option> 
    176                         <!--{html_options options=$arrYear selected=$arrForm.year}--> 
    177                     </select>年 
    178                     <select name="month" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > 
    179                         <option value="" selected="selected">----</option> 
    180                         <!--{html_options options=$arrMonth selected=$arrForm.month}--> 
    181                     </select>月 
    182                     <select name="day" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > 
    183                         <option value="" selected="selected">----</option> 
    184                         <!--{html_options options=$arrDay selected=$arrForm.day"}--> 
    185                     </select>日 
     173                    <!--{assign var=errBirth value="`$arrErr.year``$arrErr.month``$arrErr.day`"}--> 
     174                    <!--{if $errBirth}--> 
     175                        <div class="attention"><!--{$errBirth}--></div> 
     176                    <!--{/if}--> 
     177                    <input id="datepicker" type="text" value="<!--{if $arrForm.year != "" && $arrForm.month != "" && $arrForm.day != ""}--><!--{$arrForm.year|h}-->/<!--{$arrForm.month|h|string_format:'%02d'}-->/<!--{$arrForm.day|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> readonly="readonly" /> 
     178                    <input type="hidden" name="year" value="<!--{$arrForm.year}-->" /> 
     179                    <input type="hidden" name="month" value="<!--{$arrForm.month}-->" /> 
     180                    <input type="hidden" name="day" value="<!--{$arrForm.day}-->" /> 
    186181                </td> 
    187182            </tr> 
  • branches/version-2_12-multilang/data/Smarty/templates/admin/main_frame.tpl

    r22121 r22159  
    4747<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/css.js"></script> 
    4848<script type="text/javascript" src="<!--{$TPL_URLPATH}-->js/file_manager.js"></script> 
     49<!--{if $tpl_mainno eq "customer" && $tpl_subno eq "index"}--> 
     50<link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/ui-datepicker.css" type="text/css" media="all" /> 
     51<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/jquery-ui-1.8.24.custom.min.js"></script> 
     52<link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/smoothness/jquery-ui-1.8.24.custom.css" type="text/css" media="all" /> 
     53<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/jquery-ui-i18n.js"></script> 
     54<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.ui/ui-datepicker.js"></script> 
     55<!--{/if}--> 
    4956<title><!--{$smarty.const.ADMIN_TITLE}--></title> 
    5057<link rel="shortcut icon" href="<!--{$TPL_URLPATH}-->img/common/favicon.ico" /> 
Note: See TracChangeset for help on using the changeset viewer.