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 | <td colspan="3" id="layout-header">ヘッダー部</td> |
---|
39 | </tr> |
---|
40 | <tr> |
---|
41 | <!-- ★☆★ 上部ナビテーブル ☆★☆ --> |
---|
42 | <td colspan="3" id="layout-top"> |
---|
43 | <div id="TopNavi" class="ui-sortable" style="position: relative; width: 468px; "> |
---|
44 | <!--{assign var="firstflg" value=false}--> |
---|
45 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
46 | <!--{if $item.target_id == "TopNavi"}--> |
---|
47 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
48 | <!--{$item.name}--> |
---|
49 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
50 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
51 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
52 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
53 | <label>(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
54 | </div> |
---|
55 | <!--{assign var="firstflg" value=true}--> |
---|
56 | <!--{/if}--> |
---|
57 | <!--{/foreach}--> |
---|
58 | </div> |
---|
59 | </td> |
---|
60 | <!-- ★☆★ 上部ナビテーブル ☆★☆ --> |
---|
61 | </tr> |
---|
62 | <tr> |
---|
63 | <!--{* 左ナビテーブルここから *}--> |
---|
64 | <td rowspan="3" id="layout-left"> |
---|
65 | <div id="LeftNavi" class="ui-sortable" style="position: relative; width: 145px; height: 100px;"> |
---|
66 | <!--{assign var="firstflg" value=false}--> |
---|
67 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
68 | <!--{if $item.target_id == "LeftNavi"}--> |
---|
69 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
70 | <!--{$item.name}--> |
---|
71 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
72 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
73 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
74 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
75 | <label>(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
76 | |
---|
77 | </div> |
---|
78 | <!--{assign var="firstflg" value=true}--> |
---|
79 | <!--{/if}--> |
---|
80 | <!--{/foreach}--> |
---|
81 | </div> |
---|
82 | </td> |
---|
83 | <!--{* 左ナビテーブルここまで *}--> |
---|
84 | <!--{* メイン上部テーブルここから *}--> |
---|
85 | <td id="layout-main-head"> |
---|
86 | <div id="MainHead" class="ui-sortable" style="position: relative; width: 145px; height: 100px;"> |
---|
87 | <!--{assign var="firstflg" value=false}--> |
---|
88 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
89 | <!--{if $item.target_id == "MainHead"}--> |
---|
90 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
91 | <!--{$item.name}--> |
---|
92 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
93 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
94 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
95 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
96 | <label>(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
97 | |
---|
98 | </div> |
---|
99 | <!--{assign var="firstflg" value=true}--> |
---|
100 | <!--{/if}--> |
---|
101 | <!--{/foreach}--> |
---|
102 | </div> |
---|
103 | </td> |
---|
104 | <!--{* メイン上部テーブルここまで *}--> |
---|
105 | <!--{* 右ナビここから *}--> |
---|
106 | <td rowspan="3" id="layout-right"> |
---|
107 | <div id="RightNavi" class="ui-sortable" style="position: relative; width: 145px; height: 100px;"> |
---|
108 | <!--{assign var="firstflg" value=false}--> |
---|
109 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
110 | <!--{if $item.target_id == "RightNavi"}--> |
---|
111 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
112 | <!--{$item.name}--> |
---|
113 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
114 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
115 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
116 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
117 | <label>(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
118 | |
---|
119 | </div> |
---|
120 | <!--{assign var="firstflg" value=true}--> |
---|
121 | <!--{/if}--> |
---|
122 | <!--{/foreach}--> |
---|
123 | </div> |
---|
124 | </td> |
---|
125 | <!--{* 右ナビここまで *}--> |
---|
126 | </tr> |
---|
127 | <!--{* メインここから *}--> |
---|
128 | <tr> |
---|
129 | <td id="layout-main">メイン</td> |
---|
130 | </tr> |
---|
131 | <!--{* メインここまで *}--> |
---|
132 | <!--{* メイン下部ここから *}--> |
---|
133 | <tr> |
---|
134 | <td id="layout-main-foot"> |
---|
135 | <div id="MainFoot" class="ui-sortable" style="position: relative; width: 145px; height: 100px;"> |
---|
136 | <!--{assign var="firstflg" value=false}--> |
---|
137 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
138 | <!--{if $item.target_id == "MainFoot"}--> |
---|
139 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
140 | <!--{$item.name}--> |
---|
141 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
142 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
143 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
144 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
145 | <label>(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
146 | |
---|
147 | </div> |
---|
148 | <!--{assign var="firstflg" value=true}--> |
---|
149 | <!--{/if}--> |
---|
150 | <!--{/foreach}--> |
---|
151 | </div> |
---|
152 | </td> |
---|
153 | </tr> |
---|
154 | <tr> |
---|
155 | <!--{* メイン下部ここまで *}--> |
---|
156 | <!-- ★☆★ 下部ナビテーブル ☆★☆ --> |
---|
157 | <td colspan="3" id="layout-top"> |
---|
158 | <div id="BottomNavi" class="ui-sortable" style="position: relative; width: 468px; "> |
---|
159 | <!--{assign var="firstflg" value=false}--> |
---|
160 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
161 | <!--{if $item.target_id == "BottomNavi"}--> |
---|
162 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
163 | <!--{$item.name}--> |
---|
164 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
165 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
166 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
167 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
168 | <label>(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
169 | |
---|
170 | </div> |
---|
171 | <!--{assign var="firstflg" value=true}--> |
---|
172 | <!--{/if}--> |
---|
173 | <!--{/foreach}--> |
---|
174 | </div> |
---|
175 | </td> |
---|
176 | <!-- ★☆★ 下部ナビテーブル ☆★☆ --> |
---|
177 | </tr> |
---|
178 | <tr> |
---|
179 | <td colspan="3" id="layout-footer">フッター部</td> |
---|
180 | </tr> |
---|
181 | </table> |
---|
182 | </td> |
---|
183 | <!--{* ▲レイアウトここまで *}--> |
---|
184 | |
---|
185 | <!--{* ▼未使用ブロックここから *}--> |
---|
186 | <td> |
---|
187 | <div id="Unused" class="ui-sortable" style="position: relative; width: 145px; height: 500px;"> |
---|
188 | <!--{assign var="firstflg" value=false}--> |
---|
189 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}--> |
---|
190 | <!--{if $item.target_id == "Unused"}--> |
---|
191 | <div class="sort<!--{if !$firstflg}--> first<!--{/if}-->"> |
---|
192 | <!--{$item.name}--> |
---|
193 | <input type="hidden" class="name" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->" /> |
---|
194 | <input type="hidden" class="id" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->" /> |
---|
195 | <input type="hidden" class="target-id" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->" /> |
---|
196 | <input type="hidden" class="top" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->" /> |
---|
197 | <label>(<input type="checkbox" class="anywhere" name="anywhere_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="1" <!--{$item.anywhere_selected}--> />全ページ)</label> |
---|
198 | |
---|
199 | </div> |
---|
200 | <!--{assign var="firstflg" value=true}--> |
---|
201 | <!--{/if}--> |
---|
202 | <!--{/foreach}--> |
---|
203 | </div> |
---|
204 | <div class="btn"><button type='button' onclick="fnTargetSelf(); fnFormModeSubmit('form1','new_bloc','','');"><span>ブロックを新規入力</span></button></div> |
---|
205 | </td> |
---|
206 | <!--{* ▲未使用ブロックここまで *}--> |
---|
207 | </tr> |
---|
208 | </tbody> |
---|
209 | </table> |
---|
210 | <div class="btn"> |
---|
211 | <button type='button' name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form1','confirm','','');"><span>登録する</span></button> |
---|
212 | <button type='button' name='preview' onclick="doPreview();"<!--{if $page_id == "0" or $exists_page == "0" }--> DISABLED<!--{/if}-->><span>プレビュー</span></button> |
---|
213 | </div> |
---|
214 | <!--▲レイアウト編集 ここまで--> |
---|
215 | |
---|
216 | |
---|
217 | <!--▼ページ一覧 ここから--> |
---|
218 | <h2>編集可能ページ一覧</h2> |
---|
219 | <table class="list center"> |
---|
220 | <tr> |
---|
221 | <th>名称</th> |
---|
222 | <th><strong>レイアウト</strong></th> |
---|
223 | <th>ページ詳細</th> |
---|
224 | <th>削除</th> |
---|
225 | </tr> |
---|
226 | <!--{foreach key=key item=item from=$arrEditPage}--> |
---|
227 | <tr style="background-color:<!--{if $item.page_id == $page_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;"> |
---|
228 | <td> |
---|
229 | <!--{$item.page_name}--> |
---|
230 | </td> |
---|
231 | <td> |
---|
232 | <a href="?page_id=<!--{$item.page_id}-->" ><strong>編集</strong></a> |
---|
233 | </td> |
---|
234 | <td> |
---|
235 | <!--{if $item.filename|strlen >= 1}--> |
---|
236 | <a href="main_edit.php?page_id=<!--{$item.page_id}-->">編集</a> |
---|
237 | <!--{/if}--> |
---|
238 | </td> |
---|
239 | <td> |
---|
240 | <!--{if $item.edit_flg == 1}--> |
---|
241 | <a href="?" onclick="fnTargetSelf(); fnFormModeSubmit('form1','delete','','');">削除</a> |
---|
242 | <!--{/if}--> |
---|
243 | </td> |
---|
244 | </tr> |
---|
245 | <!--{/foreach}--> |
---|
246 | </table> |
---|
247 | <div class="btn addnew"> |
---|
248 | <button type='button' onclick="fnTargetSelf(); fnFormModeSubmit('form1','new_page','','');"><span>ページを新規入力</span></button> |
---|
249 | </div> |
---|
250 | <!--▲ページ一覧 ここまで--> |
---|
251 | </div> |
---|
252 | </form> |
---|