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 | function doPreview(){ |
---|
26 | document.form_edit.mode.value="preview" |
---|
27 | document.form_edit.target = "_blank"; |
---|
28 | document.form_edit.submit(); |
---|
29 | } |
---|
30 | |
---|
31 | function fnTargetSelf(){ |
---|
32 | document.form_edit.target = "_self"; |
---|
33 | } |
---|
34 | |
---|
35 | </script> |
---|
36 | |
---|
37 | <SCRIPT language="JavaScript"> |
---|
38 | <!-- |
---|
39 | browser_type = 0; |
---|
40 | if(navigator.userAgent.indexOf("MSIE") >= 0){ |
---|
41 | browser_type = 1; |
---|
42 | } |
---|
43 | else if(navigator.userAgent.indexOf("Mozilla") >= 0){ |
---|
44 | browser_type = 2; |
---|
45 | } |
---|
46 | //--> |
---|
47 | </SCRIPT> |
---|
48 | |
---|
49 | |
---|
50 | <!--★★メインコンテンツ★★--> |
---|
51 | <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
52 | <form name="form_edit" id="form_edit" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" > |
---|
53 | <input type="hidden" name="mode" value=""> |
---|
54 | <input type="hidden" name="page_id" value="<!--{$page_id}-->"> |
---|
55 | <tr valign="top"> |
---|
56 | <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402"> |
---|
57 | <!--▼SUB NAVI--> |
---|
58 | <!--{include file=$tpl_subnavi}--> |
---|
59 | <!--▲SUB NAVI--> |
---|
60 | </td> |
---|
61 | <td class="mainbg" > |
---|
62 | <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
63 | <!--メインエリア--> |
---|
64 | <tr> |
---|
65 | <td align="center"> |
---|
66 | <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
67 | |
---|
68 | <tr><td height="14"></td></tr> |
---|
69 | <tr> |
---|
70 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td> |
---|
71 | </tr> |
---|
72 | <tr> |
---|
73 | <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> |
---|
74 | <td bgcolor="#cccccc"> |
---|
75 | |
---|
76 | <!--登録テーブルここから--> |
---|
77 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
78 | <tr> |
---|
79 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> |
---|
80 | </tr> |
---|
81 | <tr> |
---|
82 | <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> |
---|
83 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->ページ詳細編集</span></td> |
---|
84 | <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> |
---|
85 | </tr> |
---|
86 | <tr> |
---|
87 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> |
---|
88 | </tr> |
---|
89 | <tr> |
---|
90 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> |
---|
91 | </tr> |
---|
92 | </table> |
---|
93 | |
---|
94 | <!--▼編集画面 ここから--> |
---|
95 | <!--{if $arrErr.page_id_err != ""}--> |
---|
96 | <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" "> |
---|
97 | <tr> |
---|
98 | <td bgcolor="#ffffff" align="center" class="fs12st red"><!--{$arrErr.page_id_err}--></td> |
---|
99 | </tr> |
---|
100 | </table> |
---|
101 | <!--{/if}--> |
---|
102 | |
---|
103 | <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> |
---|
104 | <tr class="fs12n"> |
---|
105 | <td bgcolor="#ffffff" align="left" colspan=2> |
---|
106 | <!--{ if $arrErr.page_name != "" }--><span class="red12"><!--{$arrErr.page_name}--></span><!--{/if}--> |
---|
107 | <!--{if $arrPageData.edit_flg == 2}--> |
---|
108 | 名称:<!--{$arrPageData.page_name|escape}--><input type="hidden" name="page_name" value="<!--{$arrPageData.page_name|escape}-->" /> |
---|
109 | <!--{else}--> |
---|
110 | 名称:<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="red"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
111 | <!--{/if}--> |
---|
112 | </td> |
---|
113 | </tr> |
---|
114 | <tr class="fs12n"> |
---|
115 | <td bgcolor="#ffffff" align="left" colspan=2> |
---|
116 | <!--{ if $arrErr.url != "" }--><span class="red12"><!--{$arrErr.url}--></span><!--{/if}--> |
---|
117 | URL:<!--{if $arrPageData.edit_flg == 2}--> |
---|
118 | <!--{$smarty.const.SITE_URL|escape}--><!--{$arrPageData.url|escape}--> |
---|
119 | <input type="hidden" name="url" value="<!--{$arrPageData.filename|escape}-->" /> |
---|
120 | <!--{else}--> |
---|
121 | <!--{$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="red"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> |
---|
122 | <!--{/if}--> |
---|
123 | </td> |
---|
124 | </tr> |
---|
125 | <tr class="fs12n"> |
---|
126 | <td bgcolor="#ffffff" align="left"> |
---|
127 | <label for="header_chk"><input type="checkbox" name="header_chk" id="header_chk" <!--{$arrPageData.header_chk}-->>共通のヘッダーを使用する</label> |
---|
128 | </td> |
---|
129 | <td bgcolor="#ffffff" align="left"> |
---|
130 | <label for="footer_chk"><input type="checkbox" name="footer_chk" id="footer_chk" <!--{$arrPageData.footer_chk}-->>共通のフッターを使用する</label> |
---|
131 | </td> |
---|
132 | </tr> |
---|
133 | |
---|
134 | <tr class="fs12n"> |
---|
135 | <td bgcolor="#f2f1ec" align="center" colspan=2> |
---|
136 | <br/> |
---|
137 | <div> |
---|
138 | <textarea name="tpl_data" cols=90 rows=<!--{$text_row}--> align="left" wrap=off style="width: 650px; "><!--{$arrPageData.tpl_data|escape|smarty:nodefaults}--></textarea> |
---|
139 | <input type="hidden" name="html_area_row" value="<!--{$text_row}-->"> |
---|
140 | </div> |
---|
141 | <div align="right"> |
---|
142 | <input type="button" value="大きくする" onClick="ChangeSize(this, tpl_data, 50, 13, html_area_row)"> |
---|
143 | </div> |
---|
144 | <br/> |
---|
145 | </td> |
---|
146 | </tr> |
---|
147 | <tr class="fs12n"> |
---|
148 | <td bgcolor="#f2f1ec" align="center" colspan=2> |
---|
149 | <input type='button' value='登録' name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form_edit','confirm','','');" /> |
---|
150 | <input type='button' value='プレビュー' name='preview' onclick="doPreview(); " /> |
---|
151 | </td> |
---|
152 | </tr> |
---|
153 | </table> |
---|
154 | <!--▲編集画面 ここまで--> |
---|
155 | |
---|
156 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
157 | <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr> |
---|
158 | </table> |
---|
159 | |
---|
160 | <!--▼一覧 ここから--> |
---|
161 | <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" "> |
---|
162 | <tr class="fs12n"> |
---|
163 | <td bgcolor="#f2f1ec" align="center" colspan=3 ><strong>編集可能画面一覧</strong></td> |
---|
164 | </tr> |
---|
165 | |
---|
166 | <!--{foreach key=key item=item from=$arrPageList}--> |
---|
167 | <tr class="fs12n" height=20> |
---|
168 | <td align="center" width=600 bgcolor="<!--{if $item.page_id == $page_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->"> |
---|
169 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->?page_id=<!--{$item.page_id}-->" ><!--{$item.page_name}--></a> |
---|
170 | </td> |
---|
171 | <td align="center" width=78 bgcolor="<!--{if $item.page_id == $page_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->"> |
---|
172 | <input type="button" value="レイアウト" name="layout<!--{$item.page_id}-->" onclick="location.href='./index.php?page_id=<!--{$item.page_id}-->';" /> |
---|
173 | <input type="hidden" value="<!--{$item.page_id}-->" name="del_id<!--{$item.page_id}-->"> |
---|
174 | </td> |
---|
175 | <td align="center" width=78 bgcolor="<!--{if $item.page_id == $page_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->"> |
---|
176 | <!--{if $item.edit_flg == 1}--> |
---|
177 | <input type="button" value="削除" name="del<!--{$item.page_id}-->" onclick="fnTargetSelf(); fnFormModeSubmit('form_edit','delete','page_id',this.name.substr(3));" /> |
---|
178 | <input type="hidden" value="<!--{$item.page_id}-->" name="del_id<!--{$item.page_id}-->"> |
---|
179 | <!--{/if}--> |
---|
180 | </td> |
---|
181 | </tr> |
---|
182 | <!--{/foreach}--> |
---|
183 | <tr class="fs12n"> |
---|
184 | <td bgcolor="#f2f1ec" align="center" colspan=3> |
---|
185 | <input type='button' value='新規ページ作成' name='subm' onclick="location.href='http://<!--{$smarty.server.HTTP_HOST}--><!--{$smarty.server.PHP_SELF|escape}-->'"> |
---|
186 | </td> |
---|
187 | </tr> |
---|
188 | </table> |
---|
189 | <!--▲一覧 ここまで--> |
---|
190 | |
---|
191 | <!--登録テーブルここまで--> |
---|
192 | </td> |
---|
193 | <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> |
---|
194 | </tr> |
---|
195 | <tr> |
---|
196 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td> |
---|
197 | </tr> |
---|
198 | <tr><td height="30"></td></tr> |
---|
199 | |
---|
200 | </table> |
---|
201 | </td> |
---|
202 | </tr> |
---|
203 | <!--メインエリア--> |
---|
204 | </table> |
---|
205 | </td> |
---|
206 | </tr> |
---|
207 | </form> |
---|
208 | </table> |
---|
209 | <!--★★メインコンテンツ★★--> |
---|
210 | |
---|
211 | |
---|