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