1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2010 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 | <form name="form1" id="form1" method="post" action="?"> |
---|
25 | <input type="hidden" name="mode" value="edit" /> |
---|
26 | <input type="hidden" name="holiday_id" value="<!--{$tpl_holiday_id}-->" /> |
---|
27 | <div id="basis" class="contents-main"> |
---|
28 | |
---|
29 | <table class="form"> |
---|
30 | <tr> |
---|
31 | <th>タイトル<span class="attention"> *</span></th> |
---|
32 | <td> |
---|
33 | <!--{if $arrErr.title}--><span class="attention"><!--{$arrErr.title}--></span><!--{/if}--> |
---|
34 | <input type="text" name="title" value="<!--{$arrForm.title|h}-->" maxlength="<!--{$smarty.const.SMTEXT_LEN}-->" style="" size="60" class="box60"/> |
---|
35 | <span class="attention"> (上限<!--{$smarty.const.SMTEXT_LEN}-->文字)</span> |
---|
36 | </td> |
---|
37 | </tr> |
---|
38 | <tr> |
---|
39 | <th>日付<span class="attention"> *</span></th> |
---|
40 | <td> |
---|
41 | <!--{if $arrErr.date || $arrErr.month || $arrErr.day}--> |
---|
42 | <span class="attention"><!--{$arrErr.date}--></span> |
---|
43 | <span class="attention"><!--{$arrErr.month}--></span> |
---|
44 | <span class="attention"><!--{$arrErr.day}--></span> |
---|
45 | <!--{/if}--> |
---|
46 | <select name="month" style="<!--{$arrErr.month|sfGetErrorColor}-->"> |
---|
47 | <option value="">--</option> |
---|
48 | <!--{html_options options=$arrMonth selected=$arrForm.month}--> |
---|
49 | </select>月 |
---|
50 | <select name="day" style="<!--{$arrErr.day|sfGetErrorColor}-->"> |
---|
51 | <option value="">--</option> |
---|
52 | <!--{html_options options=$arrDay selected=$arrForm.day}--> |
---|
53 | </select>日 |
---|
54 | <br /> |
---|
55 | <span class="attention">振替え休日は自動設定されないので、振替え先の日付を設定してください。</span> |
---|
56 | </td> |
---|
57 | </tr> |
---|
58 | </table> |
---|
59 | |
---|
60 | <div class="btn"> |
---|
61 | <a class="btn-normal" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', '');"><span>この内容で登録する</span></a> |
---|
62 | </div> |
---|
63 | |
---|
64 | <table class="list"> |
---|
65 | <tr> |
---|
66 | <th>タイトル</th> |
---|
67 | <th>日付</th> |
---|
68 | <th>編集</th> |
---|
69 | <th>削除</th> |
---|
70 | <th>移動</th> |
---|
71 | </tr> |
---|
72 | <!--{section name=cnt loop=$arrHoliday}--> |
---|
73 | <tr style="background:<!--{if $tpl_class_id != $arrHoliday[cnt].holiday_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->;"> |
---|
74 | <!--{assign var=holiday_id value=$arrHoliday[cnt].holiday_id}--> |
---|
75 | <td><!--{$arrHoliday[cnt].title|h}--></td> |
---|
76 | <td><!--{$arrHoliday[cnt].month|h}-->月<!--{$arrHoliday[cnt].day|h}-->日</td> |
---|
77 | <td class="center"> |
---|
78 | <!--{if $tpl_holiday_id != $arrHoliday[cnt].holiday_id}--> |
---|
79 | <a href="?" onclick="fnModeSubmit('pre_edit', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">編集</a> |
---|
80 | <!--{else}--> |
---|
81 | 編集中 |
---|
82 | <!--{/if}--> |
---|
83 | </td> |
---|
84 | <td class="center"> |
---|
85 | <!--{if $arrClassCatCount[$class_id] > 0}--> |
---|
86 | - |
---|
87 | <!--{else}--> |
---|
88 | <a href="?" onclick="fnModeSubmit('delete', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">削除</a> |
---|
89 | <!--{/if}--> |
---|
90 | </td> |
---|
91 | <td class="center"> |
---|
92 | <!--{if $smarty.section.cnt.iteration != 1}--> |
---|
93 | <a href="?" onclick="fnModeSubmit('up', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;" />上へ</a> |
---|
94 | <!--{/if}--> |
---|
95 | <!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}--> |
---|
96 | <a href="?" onclick="fnModeSubmit('down', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;" />下へ</a> |
---|
97 | <!--{/if}--> |
---|
98 | </td> |
---|
99 | </tr> |
---|
100 | <!--{/section}--> |
---|
101 | </table> |
---|
102 | |
---|
103 | </div> |
---|
104 | </form> |
---|