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

Revision 20764, 6.4 KB checked in by nanasess, 13 years ago (diff)

#601 (コピーライトの更新)

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