Ignore:
Timestamp:
2013/07/08 13:07:51 (11 years ago)
Author:
Seasoft
Message:

#2059 (HTML構文誤り for 2.13.0)

  • 閉じ漏れ

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.13.0)

  • インデント
  • wordwrap の引数

#2140 (標準テンプレートのカスタマイズ性を高める)

  • インデント
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/admin/basis/holiday.tpl

    r22575 r22954  
    2424 
    2525<form name="form1" id="form1" method="post" action="?"> 
    26 <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
    27 <input type="hidden" name="mode" value="edit" /> 
    28 <input type="hidden" name="holiday_id" value="<!--{$tpl_holiday_id}-->" /> 
    29 <div id="basis" class="contents-main"> 
     26    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
     27    <input type="hidden" name="mode" value="edit" /> 
     28    <input type="hidden" name="holiday_id" value="<!--{$tpl_holiday_id}-->" /> 
     29    <div id="basis" class="contents-main"> 
    3030 
    31     <table class="form"> 
    32         <tr> 
    33             <th>タイトル<span class="attention"> *</span></th> 
    34             <td> 
    35                 <!--{if $arrErr.title}--><span class="attention"><!--{$arrErr.title}--></span><!--{/if}--> 
    36                 <input type="text" name="title" value="<!--{$arrForm.title.value|h}-->" maxlength="<!--{$smarty.const.SMTEXT_LEN}-->" style="" size="60" class="box60"/> 
    37                 <span class="attention"> (上限<!--{$smarty.const.SMTEXT_LEN}-->文字)</span> 
    38             </td> 
    39         </tr> 
    40         <tr> 
    41             <th>日付<span class="attention"> *</span></th> 
    42             <td> 
    43                 <!--{if $arrErr.date || $arrErr.month || $arrErr.day}--> 
    44                 <span class="attention"><!--{$arrErr.date}--></span> 
    45                 <span class="attention"><!--{$arrErr.month}--></span> 
    46                 <span class="attention"><!--{$arrErr.day}--></span> 
    47                 <!--{/if}--> 
    48                 <select name="month" style="<!--{$arrErr.month|sfGetErrorColor}-->"> 
    49                     <option value="">--</option> 
    50                     <!--{html_options options=$arrMonth selected=$arrForm.month.value}--> 
    51                 </select>月 
    52                 <select name="day" style="<!--{$arrErr.day|sfGetErrorColor}-->"> 
    53                     <option value="">--</option> 
    54                     <!--{html_options options=$arrDay selected=$arrForm.day.value}--> 
    55                 </select>日 
    56                 <br /> 
    57                 <span class="attention">振替休日は自動設定されないので、振替え先の日付を設定してください。</span> 
    58             </td> 
    59         </tr> 
    60     </table> 
     31        <table class="form"> 
     32            <tr> 
     33                <th>タイトル<span class="attention"> *</span></th> 
     34                <td> 
     35                    <!--{if $arrErr.title}--><span class="attention"><!--{$arrErr.title}--></span><!--{/if}--> 
     36                    <input type="text" name="title" value="<!--{$arrForm.title.value|h}-->" maxlength="<!--{$smarty.const.SMTEXT_LEN}-->" style="" size="60" class="box60"/> 
     37                    <span class="attention"> (上限<!--{$smarty.const.SMTEXT_LEN}-->文字)</span> 
     38                </td> 
     39            </tr> 
     40            <tr> 
     41                <th>日付<span class="attention"> *</span></th> 
     42                <td> 
     43                    <!--{if $arrErr.date || $arrErr.month || $arrErr.day}--> 
     44                    <span class="attention"><!--{$arrErr.date}--></span> 
     45                    <span class="attention"><!--{$arrErr.month}--></span> 
     46                    <span class="attention"><!--{$arrErr.day}--></span> 
     47                    <!--{/if}--> 
     48                    <select name="month" style="<!--{$arrErr.month|sfGetErrorColor}-->"> 
     49                        <option value="">--</option> 
     50                        <!--{html_options options=$arrMonth selected=$arrForm.month.value}--> 
     51                    </select>月 
     52                    <select name="day" style="<!--{$arrErr.day|sfGetErrorColor}-->"> 
     53                        <option value="">--</option> 
     54                        <!--{html_options options=$arrDay selected=$arrForm.day.value}--> 
     55                    </select>日 
     56                    <br /> 
     57                    <span class="attention">振替休日は自動設定されないので、振替え先の日付を設定してください。</span> 
     58                </td> 
     59            </tr> 
     60        </table> 
    6161 
    62     <div class="btn-area"> 
    63         <ul> 
    64             <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li> 
    65         </ul> 
     62        <div class="btn-area"> 
     63            <ul> 
     64                <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li> 
     65            </ul> 
     66        </div> 
     67 
     68        <table class="list"> 
     69            <col width="50%" /> 
     70            <col width="20%" /> 
     71            <col width="10%" /> 
     72            <col width="10%" /> 
     73            <col width="20%" /> 
     74            <tr> 
     75                <th>タイトル</th> 
     76                <th>日付</th> 
     77                <th class="edit">編集</th> 
     78                <th class="delete">削除</th> 
     79                <th>移動</th> 
     80            </tr> 
     81            <!--{section name=cnt loop=$arrHoliday}--> 
     82            <tr style="background:<!--{if $tpl_holiday_id != $arrHoliday[cnt].holiday_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->;"> 
     83                <!--{assign var=holiday_id value=$arrHoliday[cnt].holiday_id}--> 
     84                <td><!--{$arrHoliday[cnt].title|h}--></td> 
     85                <td><!--{$arrHoliday[cnt].month|h}-->月<!--{$arrHoliday[cnt].day|h}-->日</td> 
     86                <td class="center"> 
     87                    <!--{if $tpl_holiday_id != $arrHoliday[cnt].holiday_id}--> 
     88                    <a href="?" onclick="fnModeSubmit('pre_edit', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">編集</a> 
     89                    <!--{else}--> 
     90                    編集中 
     91                    <!--{/if}--> 
     92                </td> 
     93                <td class="center"> 
     94                    <!--{if $arrClassCatCount[$class_id] > 0}--> 
     95                    - 
     96                    <!--{else}--> 
     97                    <a href="?" onclick="fnModeSubmit('delete', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">削除</a> 
     98                    <!--{/if}--> 
     99                </td> 
     100                <td class="center"> 
     101                    <!--{if $smarty.section.cnt.iteration != 1}--> 
     102                    <a href="?" onclick="fnModeSubmit('up', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">上へ</a> 
     103                    <!--{/if}--> 
     104                    <!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}--> 
     105                    <a href="?" onclick="fnModeSubmit('down', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">下へ</a> 
     106                    <!--{/if}--> 
     107                </td> 
     108            </tr> 
     109            <!--{/section}--> 
     110        </table> 
     111 
    66112    </div> 
    67  
    68     <table class="list"> 
    69         <col width="50%" /> 
    70         <col width="20%" /> 
    71         <col width="10%" /> 
    72         <col width="10%" /> 
    73         <col width="20%" /> 
    74         <tr> 
    75             <th>タイトル</th> 
    76             <th>日付</th> 
    77             <th class="edit">編集</th> 
    78             <th class="delete">削除</th> 
    79             <th>移動</th> 
    80         </tr> 
    81         <!--{section name=cnt loop=$arrHoliday}--> 
    82         <tr style="background:<!--{if $tpl_holiday_id != $arrHoliday[cnt].holiday_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->;"> 
    83             <!--{assign var=holiday_id value=$arrHoliday[cnt].holiday_id}--> 
    84             <td><!--{$arrHoliday[cnt].title|h}--></td> 
    85             <td><!--{$arrHoliday[cnt].month|h}-->月<!--{$arrHoliday[cnt].day|h}-->日</td> 
    86             <td class="center"> 
    87                 <!--{if $tpl_holiday_id != $arrHoliday[cnt].holiday_id}--> 
    88                 <a href="?" onclick="fnModeSubmit('pre_edit', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">編集</a> 
    89                 <!--{else}--> 
    90                 編集中 
    91                 <!--{/if}--> 
    92             </td> 
    93             <td class="center"> 
    94                 <!--{if $arrClassCatCount[$class_id] > 0}--> 
    95                 - 
    96                 <!--{else}--> 
    97                 <a href="?" onclick="fnModeSubmit('delete', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">削除</a> 
    98                 <!--{/if}--> 
    99             </td> 
    100             <td class="center"> 
    101                 <!--{if $smarty.section.cnt.iteration != 1}--> 
    102                 <a href="?" onclick="fnModeSubmit('up', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">上へ</a> 
    103                 <!--{/if}--> 
    104                 <!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}--> 
    105                 <a href="?" onclick="fnModeSubmit('down', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">下へ</a> 
    106                 <!--{/if}--> 
    107             </td> 
    108         </tr> 
    109         <!--{/section}--> 
    110     </table> 
    111  
    112 </div> 
    113113</form> 
Note: See TracChangeset for help on using the changeset viewer.