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

Revision 20516, 6.7 KB checked in by Seasoft, 10 years ago (diff)

#627(ソース整形・ソースコメントの改善)

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