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

Revision 18853, 5.3 KB checked in by Seasoft, 13 years ago (diff)

#626(表記の統一性の向上)

  • 括弧とスペースの使い方 (途中)
  • 名前の補助表記 (途中)
  • Property svn:eol-style set to LF
  • 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="mode" value="" />
49<input type="hidden" name="page_id" value="<!--{$page_id}-->" />
50
51  <!--{if $arrErr.page_id_err != ""}-->
52  <div class="message">
53    <span class="attention"><!--{$arrErr.page_id_err}--></span>
54  </div>
55  <!--{/if}-->
56  <!--{ if $arrErr.page_name != "" }-->
57  <div class="message">
58    <span class="attention"><!--{$arrErr.page_name}--></span>
59  </div>
60  <!--{/if}-->
61  <!--{if $arrPageData.edit_flg == 2}-->
62    名称:<!--{$arrPageData.page_name|escape}--><input type="hidden" name="page_name" value="<!--{$arrPageData.page_name|escape}-->" />
63  <!--{else}-->
64    名称:<input type="text" name="page_name" value="<!--{$arrPageData.page_name|escape}-->" 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>
65  <!--{/if}--><br />
66
67  <!--{ if $arrErr.url != "" }-->
68  <div class="attention">
69    <span class="attention"><!--{$arrErr.url}--></span>
70  </div>
71  <!--{/if}-->
72  URL:<!--{if $arrPageData.edit_flg == 2}-->
73      <!--{$smarty.const.SITE_URL|escape}--><!--{$arrPageData.url|escape}-->
74      <input type="hidden" name="url" value="<!--{$arrPageData.filename|escape}-->" />
75    <!--{else}-->
76      <!--{$user_URL|escape}--><input type="text" name="url" value="<!--{$arrPageData.directory|escape}--><!--{$arrPageData.filename|escape}-->" 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>
77    <!--{/if}--><br />
78
79  <label for="header-chk"><input type="checkbox" name="header_chk" id="header-chk" <!--{$arrPageData.header_chk}--> />共通のヘッダーを使用する</label>&nbsp;
80  <label for="footer-chk"><input type="checkbox" name="footer_chk" id="footer-chk" <!--{$arrPageData.footer_chk}--> />共通のフッターを使用する</label>
81  <div>
82    <textarea name="tpl_data" rows=<!--{$text_row}--> style="width: 100%;"><!--{$arrPageData.tpl_data|escape|smarty:nodefaults}--></textarea>
83    <input type="hidden" name="html_area_row" value="<!--{$text_row}-->" />
84  </div>
85  <div class="btn">
86    <button type="button" onClick="ChangeSize(this, tpl_data, 50, 13, html_area_row)"><span>大きくする</span></button>
87  </div>
88
89  <div class="btn">
90    <button type='button' name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form_edit','confirm','','');"><span>登録する</span></button>
91    <button type='button' name='preview' onclick="doPreview(); "><span>プレビュー</span></button>
92  </div>
93
94
95  <h2>編集可能ページ一覧</h2>
96  <table class="list center">
97    <tr>
98      <th>名称</th>
99      <th>レイアウト</th>
100      <th><strong>ページ詳細</strong></th>
101      <th>削除</th>
102    </tr>
103    <!--{foreach key=key item=item from=$arrPageList}-->
104    <tr style="<!--{if $item.page_id == $page_id}-->background-color: <!--{$smarty.const.SELECT_RGB}-->;<!--{/if}-->">
105      <td>
106        <!--{$item.page_name}-->
107      </td>
108      <td>
109        <a href="./<!--{$smarty.const.DIR_INDEX_URL}-->?page_id=<!--{$item.page_id}-->" >編集</a>
110      </td>
111      <td>
112        <!--{if $item.filename|strlen >= 1}-->
113          <a href="?page_id=<!--{$item.page_id}-->"><strong>編集</strong></a>
114        <!--{/if}-->
115      </td>
116      <td>
117        <!--{if $item.edit_flg == 1}-->
118          <a href="?" onclick="fnTargetSelf(); fnFormModeSubmit('form_edit','delete','page_id',this.name.substr(3));">削除</a>
119          <input type="hidden" value="<!--{$item.page_id}-->" name="del_id<!--{$item.page_id}-->" />
120        <!--{/if}-->
121      </td>
122    </tr>
123    <!--{/foreach}-->
124  </table>
125  <div class="btn addnew">
126    <button type='button' onclick="location.href='http://<!--{$smarty.server.HTTP_HOST}--><!--{$smarty.server.PHP_SELF|escape}-->'"><span>ページを新規入力</span></button>
127  </div>
128
129</form>
Note: See TracBrowser for help on using the repository browser.