| 1 | <!--{* |
|---|
| 2 | /* |
|---|
| 3 | * This file is part of EC-CUBE |
|---|
| 4 | * |
|---|
| 5 | * Copyright(c) 2000-2013 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 | |
|---|
| 25 | <script type="text/javascript"><!-- |
|---|
| 26 | function submitRegister() { |
|---|
| 27 | var form = document.form1; |
|---|
| 28 | var msg = "テンプレートを変更します。"; |
|---|
| 29 | |
|---|
| 30 | if (window.confirm(msg)) { |
|---|
| 31 | form['mode'].value = 'register'; |
|---|
| 32 | form.submit(); |
|---|
| 33 | } |
|---|
| 34 | } |
|---|
| 35 | // --> |
|---|
| 36 | </script> |
|---|
| 37 | |
|---|
| 38 | <form name="form1" method="post" action="?"> |
|---|
| 39 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
|---|
| 40 | <input type="hidden" name="mode" value="" /> |
|---|
| 41 | <input type="hidden" name="template_code" value="" /> |
|---|
| 42 | <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" /> |
|---|
| 43 | <div id="design" class="contents-main"> |
|---|
| 44 | <p class="remark"> |
|---|
| 45 | テンプレートを選択し、「この内容で登録する」ボタンを押すと、<br /> |
|---|
| 46 | 選択したテンプレートへデザインを変更することが出来ます。 |
|---|
| 47 | </p> |
|---|
| 48 | |
|---|
| 49 | <!--{if $arrErr.err != ""}--> |
|---|
| 50 | <div class="message"> |
|---|
| 51 | <span class="attention"><!--{$arrErr.err}--></span> |
|---|
| 52 | </div> |
|---|
| 53 | <!--{/if}--> |
|---|
| 54 | |
|---|
| 55 | <table class="list center"> |
|---|
| 56 | <col width="5%" /> |
|---|
| 57 | <col width="30%" /> |
|---|
| 58 | <col width="50%" /> |
|---|
| 59 | <col width="10%" /> |
|---|
| 60 | <col width="5%" /> |
|---|
| 61 | <tr> |
|---|
| 62 | <th>選択</th> |
|---|
| 63 | <th>名前</th> |
|---|
| 64 | <th>保存先</th> |
|---|
| 65 | <th>ダウンロード</th> |
|---|
| 66 | <th class="delete">削除</th> |
|---|
| 67 | </tr> |
|---|
| 68 | <!--{foreach from=$templates item=tpl}--> |
|---|
| 69 | <!--{assign var=tplcode value=$tpl.template_code}--> |
|---|
| 70 | <tr class="center"> |
|---|
| 71 | <td><input type="radio" name="template_code" value="<!--{$tplcode|h}-->" <!--{if $tplcode == $tpl_select}-->checked="checked"<!--{/if}--> /></td> |
|---|
| 72 | <td class="left"><!--{$tpl.template_name|h}--></td> |
|---|
| 73 | <td class="left">data/Smarty/templates/<!--{$tplcode|h}-->/</td> |
|---|
| 74 | <td><span class="icon_confirm"><a href="javascript:;" onclick="fnFormModeSubmit('form2', 'download','template_code','<!--{$tplcode}-->');return false;">ダウンロード</a></span></td> |
|---|
| 75 | <td><span class="icon_delete"><a href="javascript:;" onclick="fnFormModeSubmit('form2', 'delete','template_code','<!--{$tplcode}-->');return false;">削除</a></span></td> |
|---|
| 76 | </tr> |
|---|
| 77 | <!--{/foreach}--> |
|---|
| 78 | </table> |
|---|
| 79 | <div class="btn-area"> |
|---|
| 80 | <ul> |
|---|
| 81 | <li><a class="btn-action" href="javascript:;" onclick="submitRegister();return false;"><span class="btn-next">この内容で登録する</span></a></li> |
|---|
| 82 | </ul> |
|---|
| 83 | </div> |
|---|
| 84 | </div> |
|---|
| 85 | </form> |
|---|
| 86 | <form name="form2" method="post" action="?"> |
|---|
| 87 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
|---|
| 88 | <input type="hidden" name="mode" value="" /> |
|---|
| 89 | <input type="hidden" name="template_code" value="" /> |
|---|
| 90 | <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" /> |
|---|
| 91 | </form> |
|---|