1 | <!--{*
|
---|
2 | /*
|
---|
3 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
|
---|
4 | *
|
---|
5 | * http://www.lockon.co.jp/
|
---|
6 | */
|
---|
7 | *}-->
|
---|
8 | <script type="text/javascript">
|
---|
9 | <!--
|
---|
10 |
|
---|
11 | function func_regist(url) {
|
---|
12 | res = confirm('この内容で<!--{if $edit_mode eq "on"}-->編集<!--{else}-->登録<!--{/if}-->しても宜しいですか?');
|
---|
13 | if(res == true) {
|
---|
14 | document.form1.mode.value = 'regist';
|
---|
15 | document.form1.submit();
|
---|
16 | return false;
|
---|
17 | }
|
---|
18 | return false;
|
---|
19 | }
|
---|
20 |
|
---|
21 | function func_edit(news_id) {
|
---|
22 | document.form1.mode.value = "search";
|
---|
23 | document.form1.news_id.value = news_id;
|
---|
24 | document.form1.submit();
|
---|
25 | }
|
---|
26 |
|
---|
27 | function func_del(news_id) {
|
---|
28 | res = confirm('この新着情報を削除しても宜しいですか?');
|
---|
29 | if(res == true) {
|
---|
30 | document.form1.mode.value = "delete";
|
---|
31 | document.form1.news_id.value = news_id;
|
---|
32 | document.form1.submit();
|
---|
33 | }
|
---|
34 | return false;
|
---|
35 | }
|
---|
36 |
|
---|
37 | function func_rankMove(term,news_id) {
|
---|
38 | document.form1.mode.value = "move";
|
---|
39 | document.form1.news_id.value = news_id;
|
---|
40 | document.form1.term.value = term;
|
---|
41 | document.form1.submit();
|
---|
42 | }
|
---|
43 |
|
---|
44 | function moving(news_id,rank, max_rank) {
|
---|
45 |
|
---|
46 | var val;
|
---|
47 | var ml;
|
---|
48 | var len;
|
---|
49 |
|
---|
50 | ml = document.move;
|
---|
51 | len = document.move.elements.length;
|
---|
52 | j = 0;
|
---|
53 | for( var i = 0 ; i < len ; i++) {
|
---|
54 | if ( ml.elements[i].name == 'position' && ml.elements[i].value != "" ) {
|
---|
55 | val = ml.elements[i].value;
|
---|
56 | j ++;
|
---|
57 | }
|
---|
58 | }
|
---|
59 |
|
---|
60 | if ( j > 1) {
|
---|
61 | alert( '移動順位は1つだけ入力してください。' );
|
---|
62 | return false;
|
---|
63 | } else if( ! val ) {
|
---|
64 | alert( '移動順位を入力してください。' );
|
---|
65 | return false;
|
---|
66 | } else if( val.length > 4){
|
---|
67 | alert( '移動順位は4桁以内で入力してください。' );
|
---|
68 | return false;
|
---|
69 | } else if( val.match(/[0-9]+/g) != val){
|
---|
70 | alert( '移動順位は数字で入力してください。' );
|
---|
71 | return false;
|
---|
72 | } else if( val == rank ){
|
---|
73 | alert( '移動させる番号が重複しています。' );
|
---|
74 | return false;
|
---|
75 | } else if( val == 0 ){
|
---|
76 | alert( '移動順位は0以上で入力してください。' );
|
---|
77 | return false;
|
---|
78 | } else if( val > max_rank ){
|
---|
79 | alert( '入力された順位は、登録数の最大値を超えています。' );
|
---|
80 | return false;
|
---|
81 | } else {
|
---|
82 | ml.moveposition.value = val;
|
---|
83 | ml.rank.value = rank;
|
---|
84 | ml.news_id.value = news_id;
|
---|
85 | ml.submit();
|
---|
86 | return false;
|
---|
87 | }
|
---|
88 | }
|
---|
89 |
|
---|
90 | //-->
|
---|
91 | </script>
|
---|
92 |
|
---|
93 | <!--★★メインコンテンツ★★-->
|
---|
94 | <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
95 | <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
|
---|
96 | <input type="hidden" name="mode" value="">
|
---|
97 | <input type="hidden" name="news_id" value="<!--{$news_id|escape}-->">
|
---|
98 | <input type="hidden" name="term" value="">
|
---|
99 | <tr valign="top">
|
---|
100 | <td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402">
|
---|
101 | <!--▼SUB NAVI-->
|
---|
102 | <!--{include file=$tpl_subnavi}-->
|
---|
103 | <!--▲SUB NAVI-->
|
---|
104 | </td>
|
---|
105 | <td class="mainbg">
|
---|
106 | <!--▼登録テーブルここから-->
|
---|
107 | <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
108 | <!--メインエリア-->
|
---|
109 | <tr>
|
---|
110 | <td align="center">
|
---|
111 | <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
112 |
|
---|
113 | <tr><td height="14"></td></tr>
|
---|
114 | <tr>
|
---|
115 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
|
---|
116 | </tr>
|
---|
117 | <tr>
|
---|
118 | <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>
|
---|
119 | <td bgcolor="#cccccc">
|
---|
120 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
121 | <tr>
|
---|
122 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
|
---|
123 | </tr>
|
---|
124 | <tr>
|
---|
125 | <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>
|
---|
126 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->新規登録</span></td>
|
---|
127 | <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>
|
---|
128 | </tr>
|
---|
129 | <tr>
|
---|
130 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
|
---|
131 | </tr>
|
---|
132 | <tr>
|
---|
133 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
|
---|
134 | </tr>
|
---|
135 | </table>
|
---|
136 |
|
---|
137 | <!--▼登録テーブルここから-->
|
---|
138 | <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
|
---|
139 | <thead>
|
---|
140 | <tr class="fs12n">
|
---|
141 | <td bgcolor="#f2f1ec" width="78">日付<span class="red"> *</span></td>
|
---|
142 | <td bgcolor="#ffffff" width="600"><span class="red"><!--{$arrErr.year}--><!--{$arrErr.month}--><!--{$arrErr.day}--></span>
|
---|
143 | <select name="year" <!--{if $arrErr.year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
|
---|
144 | <option value="" selected>----</option>
|
---|
145 | <!--{html_options options=$arrYear selected=$selected_year}-->
|
---|
146 | </select>年
|
---|
147 | <select name="month" <!--{if $arrErr.month}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
|
---|
148 | <option value="" selected>--</option>
|
---|
149 | <!--{html_options options=$arrMonth selected=$selected_month}-->
|
---|
150 | </select>月
|
---|
151 | <select name="day" <!--{if $arrErr.day}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
|
---|
152 | <option value="" selected>--</option>
|
---|
153 | <!--{html_options options=$arrDay selected=$selected_day}-->
|
---|
154 | </select>日
|
---|
155 | </td>
|
---|
156 | </tr>
|
---|
157 | <tr>
|
---|
158 | <td bgcolor="#f2f1ec" width="" class="fs12n">タイトル<span class="red"> *</span></td>
|
---|
159 | <td bgcolor="#ffffff" width="" class="fs12n"><!--{if $arrErr.news_title}--><span class="red"><!--{$arrErr.news_title}--></span><!--{/if}-->
|
---|
160 | <textarea name="news_title" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.MTEXT_LEN}-->" <!--{if $arrErr.news_title}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->><!--{$news_title|escape}--></textarea><br/><span class="red"> (上限<!--{$smarty.const.MTEXT_LEN}-->文字)</span>
|
---|
161 | </td>
|
---|
162 | </tr>
|
---|
163 | </thead>
|
---|
164 | <tfoot>
|
---|
165 | <tr>
|
---|
166 | <td bgcolor="#f2f1ec" width="38" class="fs12n">URL</td>
|
---|
167 | <td bgcolor="#ffffff" width="600" class="fs12n"><span class="red"><!--{$arrErr.news_url}--></span><input type="text" name="news_url" size="60" class="box60" value="<!--{$news_url|escape}-->" <!--{if $arrErr.news_url}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}--> maxlength="<!--{$smarty.const.URL_LEN}-->"/><span class="red"> (上限<!--{$smarty.const.URL_LEN}-->文字)</span>
|
---|
168 | </td>
|
---|
169 | </tr>
|
---|
170 | <tr class="fs12n">
|
---|
171 | <td bgcolor="#f2f1ec" width="78">リンク</td>
|
---|
172 | <td bgcolor="#ffffff" width="600"><input type="checkbox" name="link_method" value="2" <!--{if $link_method eq 2}--> checked <!--{/if}--> >別ウィンドウで開く</td>
|
---|
173 | </tr>
|
---|
174 | <tr>
|
---|
175 | <td bgcolor="#f2f1ec" width="38" class="fs12n">本文作成</td>
|
---|
176 | <td bgcolor="#ffffff" width="600" class="fs12n"><!--{if $arrErr.news_comment}--><span class="red"><!--{$arrErr.news_comment}--></span><!--{/if}--><textarea name="news_comment" cols="60" rows="8" wrap="soft" class="area60" maxlength="<!--{$smarty.const.LTEXT_LEN}-->" style="background-color:<!--{if $arrErr.news_comment}--><!--{$smarty.const.ERR_COLOR|escape}--><!--{/if}-->"><!--{$news_comment|escape}--></textarea><br/><span class="red"> (上限3000文字)</span>
|
---|
177 | </td>
|
---|
178 | </tr>
|
---|
179 | </tfoot>
|
---|
180 | </table>
|
---|
181 | <!--▲登録テーブルここまで-->
|
---|
182 |
|
---|
183 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
184 | <tr>
|
---|
185 | <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
|
---|
186 | <td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
|
---|
187 | <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
|
---|
188 | </tr>
|
---|
189 | <tr>
|
---|
190 | <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
|
---|
191 | <td bgcolor="#e9e7de" align="center">
|
---|
192 | <table border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
193 | <tr>
|
---|
194 | <td><input type="image" onMouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="この内容で登録する" border="0" name="subm" onclick="return func_regist();"></td>
|
---|
195 | </tr>
|
---|
196 | </table>
|
---|
197 | </td>
|
---|
198 | <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
|
---|
199 | </tr>
|
---|
200 | <tr>
|
---|
201 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
|
---|
202 | </tr>
|
---|
203 | </form>
|
---|
204 | </table>
|
---|
205 |
|
---|
206 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
207 | <tr><td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
|
---|
208 | </table>
|
---|
209 |
|
---|
210 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
211 | <tr>
|
---|
212 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
|
---|
213 | </tr>
|
---|
214 | <tr>
|
---|
215 | <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>
|
---|
216 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->登録済み新着情報</span></td>
|
---|
217 | <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>
|
---|
218 | </tr>
|
---|
219 | <tr>
|
---|
220 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
|
---|
221 | </tr>
|
---|
222 | <tr>
|
---|
223 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
|
---|
224 | </tr>
|
---|
225 | </table>
|
---|
226 |
|
---|
227 | <!--▼一覧表示エリアここから-->
|
---|
228 | <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
|
---|
229 | <form name="move" id="move" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
|
---|
230 | <input type="hidden" name="mode" value="moveRankSet">
|
---|
231 | <input type="hidden" name="term" value="setposition">
|
---|
232 | <input type="hidden" name="news_id" value="">
|
---|
233 | <input type="hidden" name="moveposition" value="">
|
---|
234 | <input type="hidden" name="rank" value="">
|
---|
235 | <tr bgcolor="#f2f1ec" align="center" class="fs12n">
|
---|
236 | <td width="30">順位</td>
|
---|
237 | <td width="76">日付</td>
|
---|
238 | <td width="269">タイトル</td>
|
---|
239 | <td width="50">編集</td>
|
---|
240 | <td width="50">削除</td>
|
---|
241 | <td width="100">移動</td>
|
---|
242 | </tr>
|
---|
243 | <!--{if $arrErr.moveposition}-->
|
---|
244 | <tr bgcolor="#ffffff" class="fs12n"><td bgcolor="#ffffff" colspan="6"><span class="red"><!--{$arrErr.moveposition}--></span></td></tr>
|
---|
245 | <!--{/if}-->
|
---|
246 | <!--{section name=data loop=$list_data}-->
|
---|
247 | <tr bgcolor="<!--{if $list_data[data].news_id eq $news_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->" class="fs12">
|
---|
248 | <!--{assign var=db_rank value="`$list_data[data].rank`"}-->
|
---|
249 | <!--{assign var=rank value="`$line_max-$db_rank+1`"}-->
|
---|
250 | <td width="" align="center"><!--{$rank}--></td>
|
---|
251 | <td width="" align="center"><!--{$list_data[data].cast_news_date|date_format:"%Y/%m/%d"}--></td>
|
---|
252 | <td width="">
|
---|
253 | <!--{if $list_data[data].link_method eq 1 && $list_data[data].news_url != ""}--><a href="<!--{$list_data[data].news_url}-->" ><!--{$list_data[data].news_title|escape|nl2br}--></a>
|
---|
254 | <!--{elseif $list_data[data].link_method eq 1 && $list_data[data].news_url == ""}--><!--{$list_data[data].news_title|escape|nl2br}-->
|
---|
255 | <!--{elseif $list_data[data].link_method eq 2 && $list_data[data].news_url != ""}--><a href="<!--{$list_data[data].news_url}-->" target="_blank" ><!--{$list_data[data].news_title|escape|nl2br}--></a>
|
---|
256 | <!--{else}--><!--{$list_data[data].news_title|escape|nl2br}-->
|
---|
257 | <!--{/if}-->
|
---|
258 | </td>
|
---|
259 | <td width="" align="center"><a href="#" onclick="return func_edit('<!--{$list_data[data].news_id|escape}-->');">編集</a></td>
|
---|
260 | <td width="" align="center"><a href="#" onclick="return func_del('<!--{$list_data[data].news_id|escape}-->');">削除</a></td>
|
---|
261 | <td width="" align="center">
|
---|
262 | <!--{if count($list_data) != 1}-->
|
---|
263 | <input type="text" name="pos-<!--{$list_data[data].news_id}-->" size="3" class="box3" />番目へ<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnFormModeSubmit('move', 'moveRankSet','news_id', '<!--{$list_data[data].news_id}-->'); return false;">移動</a><br />
|
---|
264 | <!--{/if}-->
|
---|
265 | <!--{if $list_data[data].rank ne $max_rank}--><a href="#" onclick="return func_rankMove('up', '<!--{$list_data[data].news_id|escape}-->', '<!--{$max_rank|escape}-->');">上へ</a><!--{/if}--> <!--{if $list_data[data].rank ne 1}--><a href="#" onclick="return func_rankMove('down', '<!--{$list_data[data].news_id|escape}-->', '<!--{$max_rank|escape}-->');">下へ</a><!--{/if}-->
|
---|
266 | </td>
|
---|
267 | </tr>
|
---|
268 | <!--{sectionelse}-->
|
---|
269 | <tr bgcolor="#ffffff" class="fs12n">
|
---|
270 | <td colspan="6">現在データはありません。</td>
|
---|
271 | </tr>
|
---|
272 | <!--{/section}-->
|
---|
273 | </form>
|
---|
274 | </table>
|
---|
275 | <!--▲一覧表示エリアここまで-->
|
---|
276 |
|
---|
277 | </td>
|
---|
278 | <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>
|
---|
279 | </tr>
|
---|
280 | <tr>
|
---|
281 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
|
---|
282 | </tr>
|
---|
283 | <tr><td height="30"></td></tr>
|
---|
284 | </table>
|
---|
285 | </td>
|
---|
286 | </tr>
|
---|
287 | <!--メインエリア-->
|
---|
288 | </table>
|
---|
289 | <!--▲登録テーブルここまで-->
|
---|
290 | </td>
|
---|
291 | </tr>
|
---|
292 | </table>
|
---|
293 | <!--★★メインコンテンツ★★-->
|
---|