[22624] | 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}-->" /> |
---|
[22642] | 7 | <input type="hidden" name="mode" value="edit" /> |
---|
| 8 | <input type="hidden" name="tax_rule_id" value="<!--{$tpl_tax_rule_id}-->" /> |
---|
[22624] | 9 | <!--{* ▼登録テーブルここから *}--> |
---|
| 10 | <div id="basis" class="contents-main"> |
---|
| 11 | |
---|
| 12 | <h2>税金管理</h2> |
---|
| 13 | |
---|
| 14 | <table id="basis-tax-func"> |
---|
| 15 | <tr> |
---|
| 16 | <th>消費税率<span class="attention"> *</span></th> |
---|
| 17 | <td> |
---|
| 18 | <span class="attention"><!--{$arrErr.tax_rate}--></span> |
---|
[22642] | 19 | <input type="text" name="tax_rate" value="<!--{$arrForm.tax_rate.value|h}-->" maxlength="<!--{$smarty.const.PERCENTAGE_LEN}-->" size="6" class="box6" style="<!--{if $arrErr.tax_rate != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" /> % |
---|
[22624] | 20 | </td> |
---|
| 21 | </tr> |
---|
| 22 | <tr> |
---|
| 23 | <th>課税規則<span class="attention"> *</span></th> |
---|
| 24 | <td> |
---|
[22642] | 25 | <span class="attention"><!--{$arrErr.calc_rule}--></span> |
---|
| 26 | <!--{html_radios name="calc_rule" options=$arrTAXCALCRULE selected=$arrForm.calc_rule.value}--> |
---|
[22624] | 27 | </td> |
---|
| 28 | </tr> |
---|
[22667] | 29 | <!--{if $tpl_tax_rule_id != "0"}--> |
---|
[22624] | 30 | <tr> |
---|
| 31 | <th>適用日時<span class="attention"> *</span></th> |
---|
[22642] | 32 | <td><span class="attention"><!--{$arrErr.apply_date}--></span> |
---|
| 33 | <!--{assign var=key value="apply_date_year"}--> |
---|
[22624] | 34 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 35 | <select name="<!--{$key}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
| 36 | <option value="" selected="selected">------</option> |
---|
[22642] | 37 | <!--{html_options options=$arrYear selected=$arrForm[$key].value|h}--> |
---|
[22624] | 38 | </select>年 |
---|
| 39 | <!--{assign var=key value="apply_date_month"}--> |
---|
| 40 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 41 | <select name="<!--{$key}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
| 42 | <option value="" selected="selected">----</option> |
---|
[22642] | 43 | <!--{html_options options=$objDate->getMonth() selected=$arrForm[$key].value|h}--> |
---|
[22624] | 44 | </select>月 |
---|
| 45 | <!--{assign var=key value="apply_date_day"}--> |
---|
| 46 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 47 | <select name="<!--{$key}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
| 48 | <option value="" selected="selected">----</option> |
---|
[22642] | 49 | <!--{html_options options=$objDate->getDay() selected=$arrForm[$key].value|h}--> |
---|
[22624] | 50 | </select>日 |
---|
| 51 | <!--{assign var=key value="apply_date_hour"}--> |
---|
| 52 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 53 | <select name="<!--{$key}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
| 54 | <option value="" selected="selected">----</option> |
---|
[22642] | 55 | <!--{html_options options=$objDate->getHour() selected=$arrForm[$key].value|h}--> |
---|
[22624] | 56 | </select>時 |
---|
| 57 | <!--{assign var=key value="apply_date_minutes"}--> |
---|
| 58 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 59 | <select name="<!--{$key}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
| 60 | <option value="" selected="selected">----</option> |
---|
[22642] | 61 | <!--{html_options options=$arrMinutes selected=$arrForm[$key].value|h}--> |
---|
[22624] | 62 | </select>分 |
---|
| 63 | </td> |
---|
| 64 | </tr> |
---|
[22667] | 65 | <!--{else}--> |
---|
| 66 | <input type="hidden" name="apply_date_year" value="<!--{$arrForm.apply_date_year.value|h}-->" /> |
---|
| 67 | <input type="hidden" name="apply_date_month" value="<!--{$arrForm.apply_date_month.value|h}-->" /> |
---|
| 68 | <input type="hidden" name="apply_date_day" value="<!--{$arrForm.apply_date_day.value|h}-->" /> |
---|
| 69 | <input type="hidden" name="apply_date_hour" value="<!--{$arrForm.apply_date_hour.value|h}-->" /> |
---|
| 70 | <input type="hidden" name="apply_date_minutes" value="<!--{$arrForm.apply_date_minutes.value|h}-->" /> |
---|
| 71 | <!--{/if}--> |
---|
[22624] | 72 | </table> |
---|
| 73 | |
---|
| 74 | <div class="btn-area"> |
---|
| 75 | <ul> |
---|
[22642] | 76 | <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li> |
---|
[22624] | 77 | </ul> |
---|
| 78 | </div> |
---|
[22642] | 79 | <!--{if count($arrTaxrule) > 0}--> |
---|
| 80 | <table class="list"> |
---|
| 81 | <col width="5%" /> |
---|
| 82 | <col width="20%" /> |
---|
| 83 | <col width="20%" /> |
---|
| 84 | <col width="35%" /> |
---|
| 85 | <col width="10%" /> |
---|
| 86 | <col width="10%" /> |
---|
| 87 | <tr> |
---|
| 88 | <th>ID</th> |
---|
| 89 | <th>消費税率</th> |
---|
| 90 | <th>課税規則</th> |
---|
| 91 | <th>適用日時</th> |
---|
| 92 | <th class="edit">編集</th> |
---|
| 93 | <th class="delete">削除</th> |
---|
| 94 | </tr> |
---|
[22667] | 95 | <!--{section name=cnt loop=$arrTaxrule}--> |
---|
[22642] | 96 | <tr style="background:<!--{if $tpl_tax_rule_id != $arrTaxrule[cnt].tax_rule_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->;"> |
---|
| 97 | <!--{assign var=tax_rule_id value=$arrTaxrule[cnt].tax_rule_id}--> |
---|
[22667] | 98 | <td class="center"><!--{$tax_rule_id|h}--></td> |
---|
| 99 | <td class="center"><!--{$arrTaxrule[cnt].tax_rate|h}--></td> |
---|
| 100 | <td class="center"><!--{assign var=calc_rule value=$arrTaxrule[cnt].calc_rule}--> |
---|
[22642] | 101 | <!--{$arrTAXCALCRULE[$calc_rule]}--></td> |
---|
| 102 | <td class="center"> |
---|
[22667] | 103 | <!--{if $arrTaxrule[cnt].tax_rule_id == 0}--> |
---|
| 104 | 基本税率設定 |
---|
| 105 | <!--{else}--> |
---|
| 106 | <!--{$arrTaxrule[cnt].apply_date|h}--> |
---|
| 107 | <!--{/if}--> |
---|
| 108 | </td> |
---|
| 109 | <td class="center"> |
---|
[22642] | 110 | <!--{if $tpl_tax_rule_id != $arrTaxrule[cnt].tax_rule_id}--> |
---|
[22667] | 111 | <a href="?" onclick="fnModeSubmit('pre_edit', 'tax_rule_id', '<!--{$arrTaxrule[cnt].tax_rule_id}-->'); return false;">編集</a> |
---|
| 112 | <!--{else}--> |
---|
[22642] | 113 | 編集中 |
---|
[22667] | 114 | <!--{/if}--> |
---|
[22642] | 115 | </td> |
---|
| 116 | <td class="center"> |
---|
| 117 | <!--{if $arrTaxrule[cnt].tax_rule_id == 0}--> |
---|
| 118 | - |
---|
[22667] | 119 | <!--{else}--> |
---|
| 120 | <a href="?" onclick="fnModeSubmit('delete', 'tax_rule_id', '<!--{$arrTaxrule[cnt].tax_rule_id}-->'); return false;">削除</a> |
---|
| 121 | <!--{/if}--> |
---|
[22642] | 122 | </td> |
---|
| 123 | </tr> |
---|
[22667] | 124 | <!--{/section}--> |
---|
[22642] | 125 | </table> |
---|
| 126 | <!--{/if}--> |
---|
[22624] | 127 | </div> |
---|
| 128 | |
---|
| 129 | <!--{* ▲登録テーブルここまで *}--> |
---|
| 130 | </form> |
---|