source: branches/version-2_11-dev/data/Smarty/templates/admin/design/main_edit.tpl @ 21343

Revision 21343, 6.3 KB checked in by Seasoft, 12 years ago (diff)

#1526 (typo修正・ソース整形・ソースコメントの改善)

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