| 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 | <!-- |
---|
| 27 | function fnTargetSelf(){ |
---|
| 28 | document.form_edit.target = "_self"; |
---|
| 29 | } |
---|
| 30 | //--> |
---|
| 31 | </script> |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | <form name="form_edit" id="form_edit" method="post" action="?" > |
---|
| 35 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
| 36 | <input type="hidden" name="mode" value="" /> |
---|
| 37 | <input type="hidden" name="page_id" value="<!--{$page_id|h}-->" /> |
---|
| 38 | <input type="hidden" name="device_type_id" value="<!--{$device_type_id|h}-->" /> |
---|
| 39 | |
---|
| 40 | <!--{if $arrErr.err != ""}--> |
---|
| 41 | <div class="message"> |
---|
| 42 | <span class="attention"><!--{$arrErr.err}--></span> |
---|
| 43 | </div> |
---|
| 44 | <!--{/if}--> |
---|
| 45 | <table> |
---|
| 46 | <tr> |
---|
| 47 | <th>名称</th> |
---|
| 48 | <td> |
---|
| 49 | <!--{assign var=key value="page_name"}--> |
---|
| 50 | <!--{if $arrForm.edit_flg.value == 2}--> |
---|
| 51 | <!--{$arrForm[$key].value|h}--><input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" /> |
---|
| 52 | <!--{else}--> |
---|
| 53 | <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length|h}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="60" class="box60" /><span class="attention"> (上限<!--{$arrForm[$key].length|h}-->文字)</span> |
---|
| 54 | <!--{/if}--> |
---|
| 55 | <!--{if $arrErr[$key] != ""}--> |
---|
| 56 | <div class="message"> |
---|
| 57 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 58 | </div> |
---|
| 59 | <!--{/if}--> |
---|
| 60 | </td> |
---|
| 61 | </tr> |
---|
| 62 | <tr> |
---|
| 63 | <th>URL</th> |
---|
| 64 | <td> |
---|
| 65 | <!--{assign var=key value="filename"}--> |
---|
| 66 | <!--{if $arrForm.edit_flg.value == 2}--> |
---|
| 67 | <!--{$smarty.const.HTTP_URL|h}--><!--{$arrForm[$key].value|h}-->.php |
---|
| 68 | <input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" /> |
---|
| 69 | <!--{else}--> |
---|
| 70 | <!--{$smarty.const.USER_URL|h}--><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length|h}-->" style="ime-mode: disabled;<!--{$arrErr[$key]|sfGetErrorColor}-->" size="40" class="box40" />.php<span class="attention"> (上限<!--{$arrForm[$key].length|h}-->文字)</span> |
---|
| 71 | <!--{/if}--> |
---|
| 72 | <!--{if $arrErr[$key] != ""}--> |
---|
| 73 | <div class="attention"> |
---|
| 74 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 75 | </div> |
---|
| 76 | <!--{/if}--> |
---|
| 77 | </td> |
---|
| 78 | </tr> |
---|
| 79 | <tr> |
---|
| 80 | <td colspan="2"> |
---|
| 81 | <label for="header-chk"><input type="checkbox" name="header_chk" id="header-chk" value="1" <!--{if $arrForm.header_chk.value == "1"}-->checked="checked"<!--{/if}--> />共通のヘッダーを使用する</label> |
---|
| 82 | <label for="footer-chk"><input type="checkbox" name="footer_chk" id="footer-chk" value="1" <!--{if $arrForm.footer_chk.value == "1"}-->checked="checked"<!--{/if}--> />共通のフッターを使用する</label> |
---|
| 83 | <div> |
---|
| 84 | <textarea id="tpl_data" class="top" name="tpl_data" rows="<!--{$text_row}-->" style="width: 98%;"><!--{"\n"}--><!--{$arrForm.tpl_data.value|h|smarty:nodefaults}--></textarea> |
---|
| 85 | <input type="hidden" name="html_area_row" value="<!--{$text_row}-->" /><br /> |
---|
| 86 | <a id="resize-btn" class="btn-normal" href="javascript:;" onclick="ChangeSize('#resize-btn', '#tpl_data', 50, 13); return false;"><span>拡大</span></a> |
---|
| 87 | </div> |
---|
| 88 | </td> |
---|
| 89 | </tr> |
---|
| 90 | </table> |
---|
| 91 | |
---|
| 92 | <div class="btn-area"> |
---|
| 93 | <ul> |
---|
| 94 | <li><a class="btn-action" href="javascript:;" name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form_edit','confirm','',''); return false;"><span class="btn-next">登録する</span></a></li> |
---|
| 95 | </ul> |
---|
| 96 | </div> |
---|
| 97 | |
---|
| 98 | <h2>編集可能ページ一覧</h2> |
---|
| 99 | <div class="btn addnew"> |
---|
| 100 | <a class="btn-normal" href="?device_type_id=<!--{$device_type_id|u}-->"><span>ページを新規入力</span></a> |
---|
| 101 | </div> |
---|
| 102 | <table class="list"> |
---|
| 103 | <col width="70%" /> |
---|
| 104 | <col width="10%" /> |
---|
| 105 | <col width="10%" /> |
---|
| 106 | <col width="10%" /> |
---|
| 107 | <tr> |
---|
| 108 | <th>名称</th> |
---|
| 109 | <th>レイアウト</th> |
---|
| 110 | <th>ページ詳細</th> |
---|
| 111 | <th>削除</th> |
---|
| 112 | </tr> |
---|
| 113 | <!--{foreach key=key item=item from=$arrPageList}--> |
---|
| 114 | <tr style="<!--{if $item.page_id == $page_id}-->background-color: <!--{$smarty.const.SELECT_RGB}-->;<!--{/if}-->"> |
---|
| 115 | <td> |
---|
| 116 | <!--{$item.page_name}--> |
---|
| 117 | </td> |
---|
| 118 | <td class="center"> |
---|
| 119 | <a href="./<!--{$smarty.const.DIR_INDEX_PATH}-->?page_id=<!--{$item.page_id}-->&device_type_id=<!--{$item.device_type_id}-->" >編集</a> |
---|
| 120 | </td> |
---|
| 121 | <td class="center"> |
---|
| 122 | <!--{if $item.filename|strlen >= 1}--> |
---|
| 123 | <a href="?page_id=<!--{$item.page_id}-->&device_type_id=<!--{$item.device_type_id}-->">編集</a> |
---|
| 124 | <!--{/if}--> |
---|
| 125 | </td> |
---|
| 126 | <td class="center"> |
---|
| 127 | <!--{if $item.edit_flg == 1}--> |
---|
| 128 | <a href="javascript:;" onclick="fnTargetSelf(); fnFormModeSubmit('form_edit','delete','page_id','<!--{$item.page_id|escape:'javascript'|h}-->'); return false;">削除</a> |
---|
| 129 | <!--{/if}--> |
---|
| 130 | </td> |
---|
| 131 | </tr> |
---|
| 132 | <!--{/foreach}--> |
---|
| 133 | </table> |
---|
| 134 | </form> |
---|