source: branches/version-2_12-multilang/data/Smarty/templates/admin/basis/holiday.tpl @ 22230

Revision 22230, 6.5 KB checked in by Seasoft, 11 years ago (diff)

#1988 (国際化テンプレート:エスケープ処理)
以下 msgid のテンプレートでのエスケープを解除。
tpl_002_1, tpl_009_1, tpl_014_1, tpl_016_1, tpl_022_1, tpl_024_1, tpl_027, tpl_030_1, tpl_033_1, tpl_035, tpl_037_1, tpl_040, tpl_041, tpl_042, tpl_043, tpl_049, tpl_050, tpl_062_1, tpl_063, tpl_065, tpl_066, tpl_075, tpl_080_1, tpl_082, tpl_086, tpl_088, tpl_104, tpl_105, tpl_107, tpl_108_1, tpl_109_1, tpl_116, tpl_117, tpl_118, tpl_119, tpl_120, tpl_126, tpl_158_1, tpl_189_1, tpl_192_1, tpl_207_1, tpl_208_1, tpl_209_1, tpl_210_1, tpl_214_1, tpl_215_1, tpl_218_1, tpl_221_1, tpl_224_1, tpl_226_1, tpl_230, tpl_298, tpl_304, tpl_311_1, tpl_331, tpl_333_1, tpl_352_1, tpl_403, tpl_442, tpl_465, tpl_492_1, tpl_493_1, tpl_498_1, tpl_499_1, tpl_500, tpl_507, tpl_509, tpl_532, tpl_533, tpl_555_1, tpl_557_1, tpl_559_1, tpl_566_1, tpl_580, tpl_585, tpl_586, tpl_601, tpl_603, tpl_604, tpl_605, tpl_611, tpl_639, tpl_645, tpl_647, tpl_648_1, tpl_671, tpl_674, tpl_705, tpl_706, tpl_709, tpl_710, tpl_711, tpl_712, tpl_717, tpl_732, tpl_733, tpl_751, tpl_759, tpl_762, tpl_763, tpl_768, tpl_769, tpl_778, tpl_780, tpl_781, tpl_782, tpl_786

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24
25<script type="text/javascript">
26<!--
27$(function(){
28       
29        $( "#datepicker" ).datepicker({
30        beforeShowDay: function(date) {
31            if(date.getDay() == 0) {
32                return [true,"date-sunday"];
33            } else if(date.getDay() == 6){
34                return [true,"date-saturday"];
35            } else {
36                return [true];
37            }
38        },changeMonth: 'true'
39        ,changeYear: 'false'
40        ,onSelect: function(dateText, inst){
41            setDate(dateText);
42        },
43        showButtonPanel: true,
44        beforeShow: showAdditionalButton,       
45        onChangeMonthYear: showAdditionalButton
46        });
47       
48        $("#datepicker").blur( function() {
49            var dateText = $(this).val();
50            setDate(dateText);
51        });
52       
53    });
54   
55    var btn = $('<button class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Clear</button>');
56   
57    var showAdditionalButton = function (input) {
58        setTimeout(function () {
59            var buttonPane = $(input)
60                     .datepicker("widget")
61                     .find(".ui-datepicker-buttonpane");
62            btn
63                    .unbind("click")
64                    .bind("click", function () {
65                        $.datepicker._clearDate(input);
66                        $("*[name=year]").val("");
67                        $("*[name=month]").val("");
68                        $("*[name=day]").val("");
69                    });
70            btn.appendTo(buttonPane);
71        }, 1);
72    };
73   
74    function setDate(dateText){
75    var dates = dateText.split('/');
76    $("*[name=year]").val(dates[0]);
77    $("*[name=month]").val(dates[1]);
78    $("*[name=day]").val(dates[2]);
79    }
80//-->
81</script>
82
83<form name="form1" id="form1" method="post" action="?">
84<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
85<input type="hidden" name="mode" value="edit" />
86<input type="hidden" name="holiday_id" value="<!--{$tpl_holiday_id}-->" />
87<div id="basis" class="contents-main">
88
89    <table class="form">
90        <tr>
91            <th><!--{t string="tpl_022"}--></th>
92            <td>
93                <!--{if $arrErr.title}--><span class="attention"><!--{$arrErr.title}--></span><!--{/if}-->
94                <input type="text" name="title" value="<!--{$arrForm.title|h}-->" maxlength="<!--{$smarty.const.SMTEXT_LEN}-->" style="" size="60" class="box60"/>
95                <span class="attention"> <!--{t string="tpl_023" T_FIELD=$smarty.const.SMTEXT_LEN}--></span>
96            </td>
97        </tr>
98        <tr>
99            <th><!--{t string="tpl_024_1" escape="none"}--></th>
100            <td>
101                <!--{if $arrErr.date || $arrErr.month || $arrErr.day}-->
102                <span class="attention"><!--{$arrErr.date}--></span>
103                <span class="attention"><!--{$arrErr.month}--></span>
104                <span class="attention"><!--{$arrErr.day}--></span>
105                <!--{/if}-->
106                <input id="datepicker" type="text" value="<!--{if $arrForm.month != "" && $arrForm.day != ""}-->/<!--{$arrForm.month|h|string_format:'%02d'}-->/<!--{$arrForm.day|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
107                <input type="hidden" name="month" value="<!--{$arrForm.month}-->" />
108                <input type="hidden" name="day" value="<!--{$arrForm.day}-->" />
109                <br />
110                <span class="attention"><!--{t string="tpl_025"}--></span>
111            </td>
112        </tr>
113    </table>
114
115    <div class="btn-area">
116        <ul>
117            <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', ''); return false;"><span class="btn-next"><!--{t string="tpl_021"}--></span></a></li>
118        </ul>
119    </div>
120
121    <table class="list">
122        <col width="50%" />
123        <col width="20%" />
124        <col width="10%" />
125        <col width="10%" />
126        <col width="20%" />
127        <tr>
128            <th><!--{t string="tpl_022"}--></th>
129            <th><!--{t string="tpl_024"}--></th>
130            <th class="edit"><!--{t string="tpl_003"}--></th>
131            <th class="delete"><!--{t string="tpl_004"}--></th>
132            <th><!--{t string="tpl_005"}--></th>
133        </tr>
134        <!--{section name=cnt loop=$arrHoliday}-->
135        <tr style="background:<!--{if $tpl_holiday_id != $arrHoliday[cnt].holiday_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->;">
136            <!--{assign var=holiday_id value=$arrHoliday[cnt].holiday_id}-->
137            <td><!--{$arrHoliday[cnt].title|h}--></td>
138            <td><!--{t string="tpl_727" T_FIELD1=$arrHoliday[cnt].month|h T_FIELD2=$arrHoliday[cnt].day|h}--></td>
139            <td class="center">
140                <!--{if $tpl_holiday_id != $arrHoliday[cnt].holiday_id}-->
141                <a href="?" onclick="fnModeSubmit('pre_edit', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;"><!--{t string="tpl_003"}--></a>
142                <!--{else}-->
143                <!--{t string="tpl_026"}-->
144                <!--{/if}-->
145            </td>
146            <td class="center">
147                <!--{if $arrClassCatCount[$class_id] > 0}-->
148                -
149                <!--{else}-->
150                <a href="?" onclick="fnModeSubmit('delete', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;"><!--{t string="tpl_004"}--></a>
151                <!--{/if}-->
152            </td>
153            <td class="center">
154                <!--{if $smarty.section.cnt.iteration != 1}-->
155                <a href="?" onclick="fnModeSubmit('up', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;" /><!--{t string="tpl_077"}--></a>
156                <!--{/if}-->
157                <!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}-->
158                <a href="?" onclick="fnModeSubmit('down', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;" /><!--{t string="tpl_078"}--></a>
159                <!--{/if}-->
160            </td>
161        </tr>
162        <!--{/section}-->
163    </table>
164
165</div>
166</form>
Note: See TracBrowser for help on using the repository browser.