1 | <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.mousewheel-3.0.4.pack.js"></script> |
---|
2 | <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.fancybox-1.3.4.pack.js"></script> |
---|
3 | <link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" /> |
---|
4 | |
---|
5 | <form name="form1" id="form1" method="post" action="?"> |
---|
6 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
7 | <input type="hidden" name="mode" value="edit" /> |
---|
8 | <input type="hidden" name="tax_rule_id" value="<!--{$tpl_tax_rule_id|h}-->" /> |
---|
9 | <!--{* ▼登録テーブルここから *}--> |
---|
10 | <div id="basis" class="contents-main"> |
---|
11 | |
---|
12 | <!--{* 軽減税率対応 軽減税率が無いとなれば、税率設定より下に移動しても良いかと思います。 *}--> |
---|
13 | <h2>個別税率設定</h2> |
---|
14 | |
---|
15 | <table id="basis-tax-func"> |
---|
16 | <tr> |
---|
17 | <th>商品別税率機能<span class="attention"> *</span></th> |
---|
18 | <td> |
---|
19 | <span class="attention"><!--{$arrErr.product_tax_flg}--></span> |
---|
20 | <span style="<!--{$arrErr.product_tax_flg|sfGetErrorColor}-->"> |
---|
21 | <!--{html_radios name="product_tax_flg" options=$arrEnable selected=$arrForm.product_tax_flg.value}--> |
---|
22 | </span> |
---|
23 | </td> |
---|
24 | </tr> |
---|
25 | </table> |
---|
26 | <div class="btn-area"> |
---|
27 | <ul> |
---|
28 | <li><a class="btn-action" href="javascript:;" onclick="eccube.fnFormModeSubmit('form1', 'param_edit', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li> |
---|
29 | </ul> |
---|
30 | </div> |
---|
31 | |
---|
32 | |
---|
33 | <h2>共通税率設定</h2> |
---|
34 | <span class="attention"><!--{$arrErr.tax_rule_id}--></span> |
---|
35 | |
---|
36 | <table id="basis-tax-func"> |
---|
37 | <tr> |
---|
38 | <th>消費税率<span class="attention"> *</span></th> |
---|
39 | <td> |
---|
40 | <span class="attention"><!--{$arrErr.tax_rate}--></span> |
---|
41 | <input type="text" name="tax_rate" value="<!--{$arrForm.tax_rate.value|h}-->" maxlength="<!--{$smarty.const.PERCENTAGE_LEN}-->" size="6" class="box6" style="<!--{$arrErr.tax_rate|sfGetErrorColor}-->" /> % |
---|
42 | </td> |
---|
43 | </tr> |
---|
44 | <tr> |
---|
45 | <th>課税規則<span class="attention"> *</span></th> |
---|
46 | <td> |
---|
47 | <span class="attention"><!--{$arrErr.calc_rule}--></span> |
---|
48 | <span style="<!--{$arrErr.calc_rule|sfGetErrorColor}-->"> |
---|
49 | <!--{html_radios name="calc_rule" options=$arrTAXCALCRULE selected=$arrForm.calc_rule.value}--> |
---|
50 | </span> |
---|
51 | </td> |
---|
52 | </tr> |
---|
53 | <!--{if $tpl_tax_rule_id != "0"}--> |
---|
54 | <tr> |
---|
55 | <th>適用日時<span class="attention"> *</span></th> |
---|
56 | <td><span class="attention"><!--{$arrErr.apply_date}--></span> |
---|
57 | <!--{assign var=key1 value="apply_date_year"}--> |
---|
58 | <!--{assign var=key2 value="apply_date_month"}--> |
---|
59 | <!--{assign var=key3 value="apply_date_day"}--> |
---|
60 | <!--{assign var=key4 value="apply_date_hour"}--> |
---|
61 | <!--{assign var=key5 value="apply_date_minutes"}--> |
---|
62 | |
---|
63 | <span class="attention"><!--{$arrErr[$key1]}--></span> |
---|
64 | <span class="attention"><!--{$arrErr[$key2]}--></span> |
---|
65 | <span class="attention"><!--{$arrErr[$key3]}--></span> |
---|
66 | <span class="attention"><!--{$arrErr[$key4]}--></span> |
---|
67 | <span class="attention"><!--{$arrErr[$key5]}--></span> |
---|
68 | |
---|
69 | <select name="<!--{$key1}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"> |
---|
70 | <option value="" selected="selected">------</option> |
---|
71 | <!--{html_options options=$arrYear selected=$arrForm[$key1].value|h}--> |
---|
72 | </select>年 |
---|
73 | <select name="<!--{$key2}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"> |
---|
74 | <option value="" selected="selected">----</option> |
---|
75 | <!--{html_options options=$objDate->getMonth() selected=$arrForm[$key2].value|h}--> |
---|
76 | </select>月 |
---|
77 | <select name="<!--{$key3}-->" style="<!--{$arrErr[$key3]|sfGetErrorColor}-->"> |
---|
78 | <option value="" selected="selected">----</option> |
---|
79 | <!--{html_options options=$objDate->getDay() selected=$arrForm[$key3].value|h}--> |
---|
80 | </select>日 |
---|
81 | <select name="<!--{$key4}-->" style="<!--{$arrErr[$key4]|sfGetErrorColor}-->"> |
---|
82 | <option value="" selected="selected">----</option> |
---|
83 | <!--{html_options options=$objDate->getHour() selected=$arrForm[$key4].value|h}--> |
---|
84 | </select>時 |
---|
85 | <select name="<!--{$key5}-->" style="<!--{$arrErr[$key5]|sfGetErrorColor}-->"> |
---|
86 | <option value="" selected="selected">----</option> |
---|
87 | <!--{html_options options=$arrMinutes selected=$arrForm[$key5].value|h}--> |
---|
88 | </select>分 |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | <!--{else}--> |
---|
92 | <input type="hidden" name="apply_date_year" value="<!--{$arrForm.apply_date_year.value|h}-->" /> |
---|
93 | <input type="hidden" name="apply_date_month" value="<!--{$arrForm.apply_date_month.value|h}-->" /> |
---|
94 | <input type="hidden" name="apply_date_day" value="<!--{$arrForm.apply_date_day.value|h}-->" /> |
---|
95 | <input type="hidden" name="apply_date_hour" value="<!--{$arrForm.apply_date_hour.value|h}-->" /> |
---|
96 | <input type="hidden" name="apply_date_minutes" value="<!--{$arrForm.apply_date_minutes.value|h}-->" /> |
---|
97 | <!--{/if}--> |
---|
98 | </table> |
---|
99 | |
---|
100 | <div class="btn-area"> |
---|
101 | <ul> |
---|
102 | <li><a class="btn-action" href="javascript:;" onclick="eccube.fnFormModeSubmit('form1', 'edit', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li> |
---|
103 | </ul> |
---|
104 | </div> |
---|
105 | <!--{if count($arrTaxrule) > 0}--> |
---|
106 | <table class="list"> |
---|
107 | <col width="22%" /> |
---|
108 | <col width="23%" /> |
---|
109 | <col width="35%" /> |
---|
110 | <col width="10%" /> |
---|
111 | <col width="10%" /> |
---|
112 | <tr> |
---|
113 | <th>消費税率</th> |
---|
114 | <th>課税規則</th> |
---|
115 | <th>適用日時</th> |
---|
116 | <th class="edit">編集</th> |
---|
117 | <th class="delete">削除</th> |
---|
118 | </tr> |
---|
119 | <!--{section name=cnt loop=$arrTaxrule}--> |
---|
120 | <tr style="background:<!--{if $tpl_tax_rule_id != $arrTaxrule[cnt].tax_rule_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->;"> |
---|
121 | <td class="center"><!--{$arrTaxrule[cnt].tax_rate|h}--></td> |
---|
122 | <td class="center"><!--{assign var=calc_rule value=$arrTaxrule[cnt].calc_rule}--> |
---|
123 | <!--{$arrTAXCALCRULE[$calc_rule]}--></td> |
---|
124 | <td class="center"> |
---|
125 | <!--{if $arrTaxrule[cnt].tax_rule_id == 0}--> |
---|
126 | 基本税率設定 |
---|
127 | <!--{else}--> |
---|
128 | <!--{$arrTaxrule[cnt].apply_date|h}--> |
---|
129 | <!--{/if}--> |
---|
130 | </td> |
---|
131 | <td class="center"> |
---|
132 | <!--{if $tpl_tax_rule_id != $arrTaxrule[cnt].tax_rule_id}--> |
---|
133 | <a href="?" onclick="eccube.setModeAndSubmit('pre_edit', 'tax_rule_id', '<!--{$arrTaxrule[cnt].tax_rule_id}-->'); return false;">編集</a> |
---|
134 | <!--{else}--> |
---|
135 | 編集中 |
---|
136 | <!--{/if}--> |
---|
137 | </td> |
---|
138 | <td class="center"> |
---|
139 | <!--{if $arrTaxrule[cnt].tax_rule_id == 0}--> |
---|
140 | - |
---|
141 | <!--{else}--> |
---|
142 | <a href="?" onclick="eccube.setModeAndSubmit('delete', 'tax_rule_id', '<!--{$arrTaxrule[cnt].tax_rule_id}-->'); return false;">削除</a> |
---|
143 | <!--{/if}--> |
---|
144 | </td> |
---|
145 | </tr> |
---|
146 | <!--{/section}--> |
---|
147 | </table> |
---|
148 | <!--{/if}--> |
---|
149 | </div> |
---|
150 | |
---|
151 | <!--{* ▲登録テーブルここまで *}--> |
---|
152 | </form> |
---|