Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Created January 21, 2016 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurozumi/ef1ff0c0489df7cb5067 to your computer and use it in GitHub Desktop.
Save kurozumi/ef1ff0c0489df7cb5067 to your computer and use it in GitHub Desktop.
【EC-CUBE2.12.6】ポイント一括更新機能を追加する
<!--{*
/*
* This file is part of EC-CUBE
*
* Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
*
* http://www.lockon.co.jp/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
*}-->
<form name="change_point_form" id="change_point_form" method="post" action="">
<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
<input type="hidden" name="mode" value="" />
<div id="basis" class="contents-main">
<table>
<tr>
<th>商品種別<span class="attention"> *</span></th>
<td>
<!--{assign var=key value="product_type_id"}-->
<!--{if $arrErr[$key]}-->
<span class="attention"><!--{$arrErr[$key]}--></span>
<!--{/if}-->
<!--{html_radios name="product_type_id" options=$arrProductType selected=$arrForm[$key].value separator='&nbsp;&nbsp;'}-->
</td>
</tr>
<tr>
<th>ポイント付与率<span class="attention"> *</span></th>
<td>
<!--{assign var=key value="point_rate"}-->
<!--{if $arrErr[$key]}-->
<span class="attention"><!--{$arrErr[$key]}--></span>
<!--{/if}-->
<input type="text" name="<!--{$arrForm[$key].keyname}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="6" class="box6" />
% 小数点以下切り捨て</td>
</tr>
</table>
<div class="btn-area">
<ul>
<li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('change_point_form', '', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li>
</ul>
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment