1 | <!--{*
|
---|
2 | /*
|
---|
3 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
|
---|
4 | *
|
---|
5 | * http://www.lockon.co.jp/
|
---|
6 | */
|
---|
7 | *}-->
|
---|
8 | <style type="text/css">
|
---|
9 | div.dragged_elm {
|
---|
10 | position: absolute;
|
---|
11 | border: 1px solid black;
|
---|
12 | background: rgb(195,217,255);
|
---|
13 | color: #333;
|
---|
14 | cursor: move;
|
---|
15 | PADDING-RIGHT: 2px;
|
---|
16 | PADDING-LEFT: 2px;
|
---|
17 | PADDING-BOTTOM: 5px;
|
---|
18 | PADDING-TOP: 5px;
|
---|
19 | FONT-SIZE: 10pt;
|
---|
20 | }
|
---|
21 |
|
---|
22 | div.drop_target {
|
---|
23 | border: 0px solid gray;
|
---|
24 | position: relative;
|
---|
25 | text-align: center;
|
---|
26 | color: #333;
|
---|
27 | }
|
---|
28 |
|
---|
29 | </style>
|
---|
30 | <script type="text/javascript">
|
---|
31 |
|
---|
32 | function doPreview(){
|
---|
33 | document.form1.mode.value="preview"
|
---|
34 | document.form1.target = "_blank";
|
---|
35 | document.form1.submit();
|
---|
36 | }
|
---|
37 | function fnTargetSelf(){
|
---|
38 | document.form1.target = "_self";
|
---|
39 | }
|
---|
40 |
|
---|
41 | // 初期処理
|
---|
42 | function init () {
|
---|
43 | document.body.ondrag = function () { return false; };
|
---|
44 | document.body.onselectstart = function () { return false; };
|
---|
45 |
|
---|
46 | // ウィンドウサイズを取得
|
---|
47 | scrX = GetWindowSize("width");
|
---|
48 | scrY = GetWindowSize("height");
|
---|
49 |
|
---|
50 | // ウィンドウサイズ変更イベントに関連付け
|
---|
51 | window.onresize = fnMoveObject;
|
---|
52 |
|
---|
53 | // divタグを取得
|
---|
54 | all_elms = document.getElementsByTagName ( 'div' );
|
---|
55 |
|
---|
56 | // tdタグを取得
|
---|
57 | all_td = document.getElementsByTagName ( 'td' );
|
---|
58 |
|
---|
59 | // 配列作成
|
---|
60 | fnCreateArr(0);
|
---|
61 |
|
---|
62 | // alerttest(0);
|
---|
63 |
|
---|
64 | // 並び替え
|
---|
65 | fnMoveObject();
|
---|
66 |
|
---|
67 | <!--{$complate_msg}-->
|
---|
68 | }
|
---|
69 |
|
---|
70 | </script>
|
---|
71 |
|
---|
72 | <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/layout_design.js"></script>
|
---|
73 |
|
---|
74 | <!--★★メインコンテンツ★★-->
|
---|
75 | <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
76 | <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" >
|
---|
77 | <input type="hidden" name="mode" value="">
|
---|
78 | <input type="hidden" name="page_id" value="<!--{$page_id}-->">
|
---|
79 | <input type="hidden" name="bloc_cnt" value="<!--{$bloc_cnt}-->">
|
---|
80 | <tr valign="top">
|
---|
81 | <td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402">
|
---|
82 | <!--▼SUB NAVI-->
|
---|
83 | <!--{include file=$tpl_subnavi}-->
|
---|
84 | <!--▲SUB NAVI-->
|
---|
85 | </td>
|
---|
86 | <td class="mainbg" >
|
---|
87 | <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
88 | <!--メインエリア-->
|
---|
89 | <tr>
|
---|
90 | <td align="center">
|
---|
91 | <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
92 |
|
---|
93 | <tr><td height="14"></td></tr>
|
---|
94 | <tr>
|
---|
95 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
|
---|
96 | </tr>
|
---|
97 | <tr>
|
---|
98 | <td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
|
---|
99 | <td bgcolor="#cccccc">
|
---|
100 |
|
---|
101 | <!--登録テーブルここから-->
|
---|
102 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
103 | <tr>
|
---|
104 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
|
---|
105 | </tr>
|
---|
106 | <tr>
|
---|
107 | <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
|
---|
108 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->レイアウト編集</span></td>
|
---|
109 | <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
|
---|
110 | </tr>
|
---|
111 | <tr>
|
---|
112 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
|
---|
113 | </tr>
|
---|
114 | <tr>
|
---|
115 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
|
---|
116 | </tr>
|
---|
117 | </table>
|
---|
118 |
|
---|
119 | <!--▼レイアウト編集 ここから-->
|
---|
120 | <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
|
---|
121 | <tr class="fs12n">
|
---|
122 | <td bgcolor="#f2f1ec" align="center"><strong>レイアウト編集</strong></td>
|
---|
123 | <td bgcolor="#f2f1ec" align="center"><strong>未使用ブロック</strong></td>
|
---|
124 | </tr>
|
---|
125 | <tr>
|
---|
126 | <!--▼レイアウト ここから-->
|
---|
127 | <td bgcolor="#ffffff" align="center" valign = 'top'>
|
---|
128 | <table width="450" border=0 cellspacing="1" cellpadding="" summary=" " bgcolor="ffffff">
|
---|
129 | <tr class="fs12n"><td bgcolor="#ffffff" height=5px colspan=3></td></tr>
|
---|
130 | <tr class="fs12n" height = 50>
|
---|
131 | <td bgcolor="#cccccc" align="center" colspan=3> ヘッダー部 </td>
|
---|
132 | </tr>
|
---|
133 | <tr class="fs12n"><td bgcolor="#ffffff" height=5px colspan=3></td></tr>
|
---|
134 | <tr>
|
---|
135 | <!-- ★☆★ 左ナビテーブル ☆★☆ -->
|
---|
136 | <td bgcolor="#ffffff" align="center" valign = 'top'>
|
---|
137 | <table border="0" height="400" cellspacing="1" cellpadding="" summary=" " bgcolor="#cccccc">
|
---|
138 | <tr class="fs12n">
|
---|
139 | <td bgcolor="#ffffff" align="center" id="layout">
|
---|
140 | <div tid="LeftNavi" class="drop_target" id="t1" style="width: 145px; height: 100px;"></div>
|
---|
141 | </td>
|
---|
142 | </tr>
|
---|
143 | </table>
|
---|
144 | </td>
|
---|
145 | <!-- ★☆★ 左ナビテーブル ☆★☆ -->
|
---|
146 | <td bgcolor="#ffffff" align="center" valign = 'top'>
|
---|
147 | <table border="0" cellspacing="1" cellpadding="" summary=" " bgcolor="#cccccc">
|
---|
148 | <!-- ★☆★ メイン上部テーブル ☆★☆ -->
|
---|
149 | <thead>
|
---|
150 | <tr class="fs12n">
|
---|
151 | <td bgcolor="#ffffff" valign="top" name='MainHead' height="100" id="layout">
|
---|
152 | <div tid="MainHead" class="drop_target" id="t2" style="width: 145px; height: 100px;"></div>
|
---|
153 | </td>
|
---|
154 | </tr>
|
---|
155 | </thead>
|
---|
156 | <!-- ★☆★ メイン上部テーブル ☆★☆ -->
|
---|
157 | <!-- ★☆★ メイン ☆★☆ -->
|
---|
158 | <tr class="fs12n">
|
---|
159 | <td height=198 align="center" name='Main'>メイン</td>
|
---|
160 | </tr>
|
---|
161 | <!-- ★☆★ メイン ☆★☆ -->
|
---|
162 | <!-- ★☆★ メイン下部テーブル ☆★☆ -->
|
---|
163 | <tfoot>
|
---|
164 | <tr class="fs12n">
|
---|
165 | <td bgcolor="#ffffff" valign="top" name='MainFoot' height="100" id="layout">
|
---|
166 | <div tid="MainFoot" class="drop_target" id="t4" style="width: 145px; height: 100px;"></div>
|
---|
167 | </td>
|
---|
168 | </tr>
|
---|
169 | </tfoot>
|
---|
170 | <!-- ★☆★ メイン下部テーブル ☆★☆ -->
|
---|
171 | </table>
|
---|
172 | </td>
|
---|
173 | <!-- ★☆★ 右ナビテーブル ☆★☆ -->
|
---|
174 | <td bgcolor="#ffffff" align="center" valign = 'top'>
|
---|
175 | <table border="0" cellspacing="1" cellpadding="" summary=" " bgcolor="#cccccc">
|
---|
176 | <tr class="fs12n">
|
---|
177 | <td bgcolor="#ffffff" align="center">
|
---|
178 | <div tid="RightNavi" class="drop_target" id="t3" style="width: 145px; height: 100px;"></div>
|
---|
179 | </td>
|
---|
180 | </tr>
|
---|
181 | </table>
|
---|
182 | </td>
|
---|
183 | <!-- ★☆★ 右ナビテーブル ☆★☆ -->
|
---|
184 | </tr>
|
---|
185 | <tr class="fs12n"><td bgcolor="#ffffff" height=5px colspan=3></td></tr>
|
---|
186 | <tr class="fs12n" height=50><td bgcolor="#cccccc" align="center" colspan=3>フッター部</td></tr>
|
---|
187 | <tr class="fs12n"><td bgcolor="#ffffff" height=5px colspan=3></td></tr>
|
---|
188 | </table>
|
---|
189 | </td>
|
---|
190 | <!--▲レイアウト ここまで-->
|
---|
191 |
|
---|
192 | <!--▼未使用ブロック ここから-->
|
---|
193 | <td bgcolor="#ffffff" align="center" valign = 'top'>
|
---|
194 | <table width="140" border="0" cellspacing="" cellpadding="" summary=" " bgcolor="#ffffff">
|
---|
195 | <tr class="fs12n">
|
---|
196 | <td bgcolor="#ffffff" align="center" >
|
---|
197 | <div tid="Unused" class="drop_target" id="t5" style="width: 160px; height: 500px; border: 1px solid #cccccc;"></div>
|
---|
198 | </td>
|
---|
199 | </tr>
|
---|
200 | <tr class="fs12n">
|
---|
201 | <td bgcolor="#ffffff" align="center" height="30">
|
---|
202 | <input type='button' value='新規ブロック作成' name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form1','new_bloc','','');" />
|
---|
203 | </td>
|
---|
204 | </tr>
|
---|
205 | </table>
|
---|
206 | </td>
|
---|
207 | <!--▲未使用ブロック ここまで-->
|
---|
208 | </tr>
|
---|
209 | <tr class="fs12n">
|
---|
210 | <td bgcolor="#f2f1ec" align="center" colspan=2>
|
---|
211 | <input type='button' value='保存' name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form1','confirm','','');" />
|
---|
212 | <input type='button' value='プレビュー' name='preview' onclick="doPreview();" <!--{if $page_id == "0" or $exists_page == "0" }-->DISABLED<!--{/if}--> />
|
---|
213 | </td>
|
---|
214 | </tr>
|
---|
215 | </table>
|
---|
216 | <!--▲レイアウト編集 ここまで-->
|
---|
217 |
|
---|
218 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
219 | <tr><td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
|
---|
220 | </table>
|
---|
221 |
|
---|
222 | <!--▼ページ一覧 ここから-->
|
---|
223 | <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" ">
|
---|
224 | <tr class="fs12n">
|
---|
225 | <td bgcolor="#f2f1ec" align="center" colspan=3 ><strong>編集可能ページ</strong></td>
|
---|
226 | </tr>
|
---|
227 |
|
---|
228 | <!--{foreach key=key item=item from=$arrEditPage}-->
|
---|
229 | <tr class="fs12n" height=20>
|
---|
230 | <td align="center" width=600 bgcolor="<!--{if $item.page_id == $page_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
|
---|
231 | <a href="<!--{$smarty.server.PHP_SELF|escape}-->?page_id=<!--{$item.page_id}-->" ><!--{$item.page_name}--></a>
|
---|
232 | </td>
|
---|
233 | <td align="center" width=78 bgcolor="<!--{if $item.page_id == $page_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
|
---|
234 | <!--{if $item.tpl_dir != ""}-->
|
---|
235 | <input type='button' value='メイン編集' name='page_edit' onclick="location.href='./main_edit.php?page_id=<!--{$item.page_id}-->'" />
|
---|
236 | <!--{else}-->
|
---|
237 | 編集不可
|
---|
238 | <!--{/if}-->
|
---|
239 | </td>
|
---|
240 | <td align="center" width=78 bgcolor="<!--{if $item.page_id == $page_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
|
---|
241 | <!--{if $item.edit_flg == 1}-->
|
---|
242 | <input type='button' value='削除' name='del' onclick="fnTargetSelf(); fnFormModeSubmit('form1','delete','','');" />
|
---|
243 | <!--{/if}-->
|
---|
244 | </td>
|
---|
245 | </tr>
|
---|
246 | <!--{/foreach}-->
|
---|
247 |
|
---|
248 | <tr class="fs12n">
|
---|
249 | <td bgcolor="#f2f1ec" align="center" colspan=3>
|
---|
250 | <input type='button' value='新規ページ作成' name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form1','new_page','','');" />
|
---|
251 | </td>
|
---|
252 | </tr>
|
---|
253 | </table>
|
---|
254 | <!--▲ページ一覧 ここまで-->
|
---|
255 |
|
---|
256 | </td>
|
---|
257 | <td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
|
---|
258 | </tr>
|
---|
259 | <tr>
|
---|
260 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
|
---|
261 | </tr>
|
---|
262 | <tr><td height="30"></td></tr>
|
---|
263 |
|
---|
264 | </table>
|
---|
265 | </td>
|
---|
266 | </tr>
|
---|
267 | <!--メインエリア-->
|
---|
268 | </table>
|
---|
269 | </td>
|
---|
270 | </tr>
|
---|
271 |
|
---|
272 | </table>
|
---|
273 | <!--★★メインコンテンツ★★-->
|
---|
274 |
|
---|
275 | <!--{foreach key=key item=item from=$tpl_arrBloc name="bloc_loop"}-->
|
---|
276 | <div align=center target_id="<!--{$item.target_id}-->" did="<!--{$smarty.foreach.bloc_loop.iteration}-->" class="dragged_elm" id="<!--{$item.target_id}-->"
|
---|
277 | style="left:350px; top:0px; filter: alpha(opacity=100); opacity: 1; width: 120px;">
|
---|
278 | <!--{$item.name}-->
|
---|
279 | </div>
|
---|
280 |
|
---|
281 | <input type="hidden" name="name_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.name}-->">
|
---|
282 | <input type="hidden" name="id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_id}-->">
|
---|
283 | <input type="hidden" name="target_id_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.target_id}-->">
|
---|
284 | <input type="hidden" name="top_<!--{$smarty.foreach.bloc_loop.iteration}-->" value="<!--{$item.bloc_row}-->">
|
---|
285 | <!--{/foreach}-->
|
---|
286 | </form>
|
---|