source: branches/version-2_13_0/data/Smarty/templates/admin/design/main_edit.tpl @ 23071

Revision 23071, 8.8 KB checked in by h_yoshimoto, 11 years ago (diff)

#2342 基本情報管理>SHOPマスターにてJSエラーで登録処理が動かなかったので一旦戻します

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
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<!--
27function 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>&nbsp;
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        <tr>
91            <!--{assign var=key value="author"}-->
92            <th><!--{$arrForm[$key].disp_name|h}--></th>
93            <td>
94                <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>
95                <!--{if $arrErr[$key] != ""}-->
96                    <div class="attention"><!--{$arrErr[$key]}--></div>
97                <!--{/if}-->
98            </td>
99        </tr>
100        <tr>
101            <!--{assign var=key value="description"}-->
102            <th><!--{$arrForm[$key].disp_name|h}--></th>
103            <td>
104                <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>
105                <!--{if $arrErr[$key] != ""}-->
106                    <div class="attention"><!--{$arrErr[$key]}--></div>
107                <!--{/if}-->
108            </td>
109        </tr>
110        <tr>
111            <!--{assign var=key value="keyword"}-->
112            <th><!--{$arrForm[$key].disp_name|h}--></th>
113            <td>
114                <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>
115                <!--{if $arrErr[$key] != ""}-->
116                    <div class="attention"><!--{$arrErr[$key]}--></div>
117                <!--{/if}-->
118            </td>
119        </tr>
120        <tr>
121            <!--{assign var=key value="meta_robots"}-->
122            <th><!--{$arrForm[$key].disp_name|h}--></th>
123            <td>
124                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length|h}-->" style="ime-mode: disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" size="60" class="box60" /><span class="attention"> (上限<!--{$arrForm[$key].length|h}-->文字)</span>
125                <!--{if $arrErr[$key] != ""}-->
126                    <div class="attention"><!--{$arrErr[$key]}--></div>
127                <!--{/if}-->
128            </td>
129        </tr>
130    </table>
131
132    <div class="btn-area">
133        <ul>
134            <li><a class="btn-action" href="javascript:;" name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form_edit','confirm','',''); return false;"><span class="btn-next">登録する</span></a></li>
135        </ul>
136    </div>
137
138    <h2>編集可能ページ一覧</h2>
139    <div class="btn addnew">
140        <a class="btn-normal" href="?device_type_id=<!--{$device_type_id|u}-->"><span>ページを新規入力</span></a>
141    </div>
142    <table class="list">
143        <col width="70%" />
144        <col width="10%" />
145        <col width="10%" />
146        <col width="10%" />
147        <tr>
148            <th>名称</th>
149            <th>レイアウト</th>
150            <th>ページ詳細</th>
151            <th>削除</th>
152        </tr>
153        <!--{foreach key=key item=item from=$arrPageList}-->
154            <tr style="<!--{if $item.page_id == $page_id}-->background-color: <!--{$smarty.const.SELECT_RGB}-->;<!--{/if}-->">
155                <td>
156                    <!--{$item.page_name}-->
157                </td>
158                <td class="center">
159                    <a href="./<!--{$smarty.const.DIR_INDEX_PATH}-->?page_id=<!--{$item.page_id}-->&amp;device_type_id=<!--{$item.device_type_id}-->" >編集</a>
160                </td>
161                <td class="center">
162                    <!--{if $item.filename|strlen >= 1}-->
163                        <a href="?page_id=<!--{$item.page_id}-->&amp;device_type_id=<!--{$item.device_type_id}-->">編集</a>
164                    <!--{/if}-->
165                </td>
166                <td class="center">
167                    <!--{if $item.edit_flg == 1}-->
168                        <a href="javascript:;" onclick="fnTargetSelf(); fnFormModeSubmit('form_edit','delete','page_id','<!--{$item.page_id|escape:'javascript'|h}-->'); return false;">削除</a>
169                    <!--{/if}-->
170                </td>
171            </tr>
172        <!--{/foreach}-->
173    </table>
174</form>
Note: See TracBrowser for help on using the repository browser.