1 | <script type="text/javascript"> |
---|
2 | |
---|
3 | function doPreview(){ |
---|
4 | document.form1.mode.value="preview" |
---|
5 | document.form1.target = "_blank"; |
---|
6 | document.form1.submit(); |
---|
7 | } |
---|
8 | function fnTargetSelf(){ |
---|
9 | document.form1.target = "_self"; |
---|
10 | } |
---|
11 | |
---|
12 | </script> |
---|
13 | |
---|
14 | <script type="text/javascript" src="<!--{$TPL_DIR}-->js/ui.core.js"></script> |
---|
15 | <script type="text/javascript" src="<!--{$TPL_DIR}-->js/ui.sortable.js"></script> |
---|
16 | <script type="text/javascript" src="<!--{$TPL_DIR}-->js/layout_design.js"></script> |
---|
17 | |
---|
18 | |
---|
19 | <form name="form1" id="form1" method="post" action="?"> |
---|
20 | <input type="hidden" name="mode" value="" /> |
---|
21 | <input type="hidden" name="page_id" value="<!--{$page_id}-->" /> |
---|
22 | <input type="hidden" name="bloc_cnt" value="<!--{$bloc_cnt}-->" /> |
---|
23 | <div id="design" class="contents-main"> |
---|
24 | <!--{* ▼レイアウト編集ここから *}--> |
---|
25 | <table id="design-layout-wrap"> |
---|
26 | <thead> |
---|
27 | <tr> |
---|
28 | <th id="design-layout-wrap-edit">レイアウト編集</th> |
---|
29 | <th id="design-layout-wrap-unused">未使用ブロック</th> |
---|
30 | </tr> |
---|
31 | </thead> |
---|
32 | <tbody> |
---|
33 | <tr> |
---|
34 | <!--{* ▼レイアウトここから *}--> |
---|
35 | <td> |
---|
36 | <table id="design-layout-body"> |
---|
37 | <tr> |
---|
38 | <!-- ★☆★ HEADタグ内テーブル ☆★☆ --> |
---|
39 | <td colspan="3" id="layout-head"> |
---|
40 | <div id="HeadNavi" class="ui-sortable" style="position: relative; width: 468px; "> |
---|
41 | <!--{assign var="firstflg" value=false}--> |
---|
42 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
43 | <!--{if $item.target_id == "HeadNavi"}--> |
---|
44 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
45 | <!--{$item.name}--> |
---|
46 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
47 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
48 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
49 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
50 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
51 | </div> |
---|
52 | <!--{assign var="firstflg" value=true}--> |
---|
53 | <!--{/if}--> |
---|
54 | <!--{/foreach}--> |
---|
55 | </div> |
---|
56 | </td> |
---|
57 | <!-- ★☆★ Headタグ内テーブル ☆★☆ --> |
---|
58 | </tr> |
---|
59 | <tr> |
---|
60 | <!-- ★☆★ ヘッダより上部ナビテーブル ☆★☆ --> |
---|
61 | <td colspan="3" id="layout-headertop"> |
---|
62 | <div id="HeaderTopNavi" class="ui-sortable" style="position: relative; width: 468px; "> |
---|
63 | <!--{assign var="firstflg" value=false}--> |
---|
64 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
65 | <!--{if $item.target_id == "HeaderTopNavi"}--> |
---|
66 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
67 | <!--{$item.name}--> |
---|
68 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
69 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
70 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
71 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
72 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
73 | </div> |
---|
74 | <!--{assign var="firstflg" value=true}--> |
---|
75 | <!--{/if}--> |
---|
76 | <!--{/foreach}--> |
---|
77 | </div> |
---|
78 | </td> |
---|
79 | <!-- ★☆★ ヘッダより上部ナビテーブル ☆★☆ --> |
---|
80 | </tr> |
---|
81 | <tr> |
---|
82 | <td colspan="3" id="layout-header">ヘッダー部</td> |
---|
83 | </tr> |
---|
84 | <tr> |
---|
85 | <!-- ★☆★ 上部ナビテーブル ☆★☆ --> |
---|
86 | <td colspan="3" id="layout-top"> |
---|
87 | <div id="TopNavi" class="ui-sortable" style="position: relative; width: 468px; "> |
---|
88 | <!--{assign var="firstflg" value=false}--> |
---|
89 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
90 | <!--{if $item.target_id == "TopNavi"}--> |
---|
91 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
92 | <!--{$item.name}--> |
---|
93 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
94 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
95 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
96 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
97 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
98 | </div> |
---|
99 | <!--{assign var="firstflg" value=true}--> |
---|
100 | <!--{/if}--> |
---|
101 | <!--{/foreach}--> |
---|
102 | </div> |
---|
103 | </td> |
---|
104 | <!-- ★☆★ 上部ナビテーブル ☆★☆ --> |
---|
105 | </tr> |
---|
106 | <tr> |
---|
107 | <!--{* 左ナビテーブルここから *}--> |
---|
108 | <td rowspan="3" id="layout-left"> |
---|
109 | <div id="LeftNavi" class="ui-sortable" style="position: relative; width: 145px; height: 100px;"> |
---|
110 | <!--{assign var="firstflg" value=false}--> |
---|
111 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
112 | <!--{if $item.target_id == "LeftNavi"}--> |
---|
113 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
114 | <!--{$item.name}--> |
---|
115 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
116 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
117 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
118 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
119 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
120 | |
---|
121 | </div> |
---|
122 | <!--{assign var="firstflg" value=true}--> |
---|
123 | <!--{/if}--> |
---|
124 | <!--{/foreach}--> |
---|
125 | </div> |
---|
126 | </td> |
---|
127 | <!--{* 左ナビテーブルここまで *}--> |
---|
128 | <!--{* メイン上部テーブルここから *}--> |
---|
129 | <td id="layout-main-head"> |
---|
130 | <div id="MainHead" class="ui-sortable" style="position: relative; width: 145px; height: 100px;"> |
---|
131 | <!--{assign var="firstflg" value=false}--> |
---|
132 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
133 | <!--{if $item.target_id == "MainHead"}--> |
---|
134 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
135 | <!--{$item.name}--> |
---|
136 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
137 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
138 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
139 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
140 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
141 | |
---|
142 | </div> |
---|
143 | <!--{assign var="firstflg" value=true}--> |
---|
144 | <!--{/if}--> |
---|
145 | <!--{/foreach}--> |
---|
146 | </div> |
---|
147 | </td> |
---|
148 | <!--{* メイン上部テーブルここまで *}--> |
---|
149 | <!--{* 右ナビここから *}--> |
---|
150 | <td rowspan="3" id="layout-right"> |
---|
151 | <div id="RightNavi" class="ui-sortable" style="position: relative; width: 145px; height: 100px;"> |
---|
152 | <!--{assign var="firstflg" value=false}--> |
---|
153 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
154 | <!--{if $item.target_id == "RightNavi"}--> |
---|
155 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
156 | <!--{$item.name}--> |
---|
157 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
158 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
159 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
160 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
161 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
162 | |
---|
163 | </div> |
---|
164 | <!--{assign var="firstflg" value=true}--> |
---|
165 | <!--{/if}--> |
---|
166 | <!--{/foreach}--> |
---|
167 | </div> |
---|
168 | </td> |
---|
169 | <!--{* 右ナビここまで *}--> |
---|
170 | </tr> |
---|
171 | <!--{* メインここから *}--> |
---|
172 | <tr> |
---|
173 | <td id="layout-main">メイン</td> |
---|
174 | </tr> |
---|
175 | <!--{* メインここまで *}--> |
---|
176 | <!--{* メイン下部ここから *}--> |
---|
177 | <tr> |
---|
178 | <td id="layout-main-foot"> |
---|
179 | <div id="MainFoot" class="ui-sortable" style="position: relative; width: 145px; height: 100px;"> |
---|
180 | <!--{assign var="firstflg" value=false}--> |
---|
181 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
182 | <!--{if $item.target_id == "MainFoot"}--> |
---|
183 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
184 | <!--{$item.name}--> |
---|
185 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
186 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
187 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
188 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
189 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
190 | |
---|
191 | </div> |
---|
192 | <!--{assign var="firstflg" value=true}--> |
---|
193 | <!--{/if}--> |
---|
194 | <!--{/foreach}--> |
---|
195 | </div> |
---|
196 | </td> |
---|
197 | </tr> |
---|
198 | <tr> |
---|
199 | <!--{* メイン下部ここまで *}--> |
---|
200 | <!-- ★☆★ 下部ナビテーブル ☆★☆ --> |
---|
201 | <td colspan="3" id="layout-bottom"> |
---|
202 | <div id="BottomNavi" class="ui-sortable" style="position: relative; width: 468px; "> |
---|
203 | <!--{assign var="firstflg" value=false}--> |
---|
204 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
205 | <!--{if $item.target_id == "BottomNavi"}--> |
---|
206 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
207 | <!--{$item.name}--> |
---|
208 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
209 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
210 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
211 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
212 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
213 | |
---|
214 | </div> |
---|
215 | <!--{assign var="firstflg" value=true}--> |
---|
216 | <!--{/if}--> |
---|
217 | <!--{/foreach}--> |
---|
218 | </div> |
---|
219 | </td> |
---|
220 | <!-- ★☆★ 下部ナビテーブル ☆★☆ --> |
---|
221 | </tr> |
---|
222 | <tr> |
---|
223 | <td colspan="3" id="layout-footer">フッター部</td> |
---|
224 | </tr> |
---|
225 | <tr> |
---|
226 | <!-- ★☆★ フッタより下部ナビテーブル ☆★☆ --> |
---|
227 | <td colspan="3" id="layout-footerbottom"> |
---|
228 | <div id="FooterBottomNavi" class="ui-sortable" style="position: relative; width: 468px; "> |
---|
229 | <!--{assign var="firstflg" value=false}--> |
---|
230 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
231 | <!--{if $item.target_id == "FooterBottomNavi"}--> |
---|
232 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
233 | <!--{$item.name}--> |
---|
234 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
235 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
236 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
237 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
238 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
239 | </div> |
---|
240 | <!--{assign var="firstflg" value=true}--> |
---|
241 | <!--{/if}--> |
---|
242 | <!--{/foreach}--> |
---|
243 | </div> |
---|
244 | </td> |
---|
245 | <!-- ★☆★ フッタより下部ナビテーブル ☆★☆ --> |
---|
246 | </tr> |
---|
247 | </table> |
---|
248 | </td> |
---|
249 | <!--{* ▲レイアウトここまで *}--> |
---|
250 | |
---|
251 | <!--{* ▼未使用ブロックここから *}--> |
---|
252 | <td> |
---|
253 | <div id="Unused" class="ui-sortable" style="position: relative; width: 145px; height: 800px;"> |
---|
254 | <!--{assign var="firstflg" value=false}--> |
---|
255 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
256 | <!--{if $item.target_id == "Unused"}--> |
---|
257 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
258 | <!--{$item.name}--> |
---|
259 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
260 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
261 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
262 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
263 | <label class="anywherecheck">(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
264 | |
---|
265 | </div> |
---|
266 | <!--{assign var="firstflg" value=true}--> |
---|
267 | <!--{/if}--> |
---|
268 | <!--{/foreach}--> |
---|
269 | </div> |
---|
270 | <div class="btn"><button type='button' onclick="fnTargetSelf(); fnFormModeSubmit('form1','new_bloc','','');"><span>ブロックを新規入力</span></button></div> |
---|
271 | </td> |
---|
272 | <!--{* ▲未使用ブロックここまで *}--> |
---|
273 | </tr> |
---|
274 | </tbody> |
---|
275 | </table> |
---|
276 | <div class="btn"> |
---|
277 | <button type='button' name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form1','confirm','','');"><span>登録する</span></button> |
---|
278 | <button type='button' name='preview' onclick="doPreview();"<!--{if $page_id == "0" or $exists_page == "0" }--> DISABLED<!--{/if}-->><span>プレビュー</span></button> |
---|
279 | </div> |
---|
280 | <!--▲レイアウト編集 ここまで--> |
---|
281 | |
---|
282 | |
---|
283 | <!--▼ページ一覧 ここから--> |
---|
284 | <h2>編集可能ページ一覧</h2> |
---|
285 | <table class="list center"> |
---|
286 | <tr> |
---|
287 | <th>名称</th> |
---|
288 | <th><strong>レイアウト</strong></th> |
---|
289 | <th>ページ詳細</th> |
---|
290 | <th>削除</th> |
---|
291 | </tr> |
---|
292 | <!--{foreach key=key item=item from=$arrEditPage}--> |
---|
293 | <tr style="background-color:<!--{if $item.page_id == $page_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;"> |
---|
294 | <td> |
---|
295 | <!--{$item.page_name}--> |
---|
296 | </td> |
---|
297 | <td> |
---|
298 | <a href="?page_id=<!--{$item.page_id}-->" ><strong>編集</strong></a> |
---|
299 | </td> |
---|
300 | <td> |
---|
301 | <!--{if $item.filename|strlen >= 1}--> |
---|
302 | <a href="main_edit.php?page_id=<!--{$item.page_id}-->">編集</a> |
---|
303 | <!--{/if}--> |
---|
304 | </td> |
---|
305 | <td> |
---|
306 | <!--{if $item.edit_flg == 1}--> |
---|
307 | <a href="?" onclick="fnTargetSelf(); fnFormModeSubmit('form1','delete','','');">削除</a> |
---|
308 | <!--{/if}--> |
---|
309 | </td> |
---|
310 | </tr> |
---|
311 | <!--{/foreach}--> |
---|
312 | </table> |
---|
313 | <div class="btn addnew"> |
---|
314 | <button type='button' onclick="fnTargetSelf(); fnFormModeSubmit('form1','new_page','','');"><span>ページを新規入力</span></button> |
---|
315 | </div> |
---|
316 | <!--▲ページ一覧 ここまで--> |
---|
317 | </div> |
---|
318 | </form> |
---|