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 | function fnMoveOption(sel , moveflg) {
|
---|
11 | var fm = document.form1;
|
---|
12 | var arrChoice = new Array(); // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¹àÌÜ
|
---|
13 | var arrNotChoice = new Array(); // ÁªÂò¤µ¤ì¤Æ¤¤¤Ê¤¤¹àÌÜ
|
---|
14 | var arrNew = new Array(); // °ÜÆ°¸å¤Î¥ê¥¹¥È
|
---|
15 | var arrTmp = new Array();
|
---|
16 | var arrRev = new Array();
|
---|
17 |
|
---|
18 | if(fm[sel].selectedIndex == -1) alert("²¿¤âÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£");
|
---|
19 | else {
|
---|
20 | // ²¼¤Ë°ÜÆ°¤¹¤ë¾ì¹ç¤Ë¤Ï¤Þ¤ºOPTION¤òµÕ¤Ë¤¹¤ë
|
---|
21 | if (moveflg == 'bottom') {
|
---|
22 | for(i=fm[sel].length-1, j=0; i >= 0; i--, j++){
|
---|
23 | fm[sel].options[i].label=i; // ½çÈÖ¤òlabel¤ËÂàÈò
|
---|
24 | arrRev[j] = fm[sel].options[i];
|
---|
25 | }
|
---|
26 | for(i=0; i < arrRev.length; i++){
|
---|
27 | fm[sel].options[i] = new Option(arrRev[i].text, arrRev[i].value);
|
---|
28 | fm[sel].options[i].selected = arrRev[i].selected;
|
---|
29 | }
|
---|
30 | }
|
---|
31 |
|
---|
32 | // °ìÈÖ²¼¤Ë¶õÇò¤òÄɲÃ
|
---|
33 | fm[sel].options[fm[sel].length] = new Option('', '');
|
---|
34 |
|
---|
35 | for(i = 0, choiceCnt = 0, notCnt = 0; i < fm[sel].length; i++) {
|
---|
36 | if(!fm[sel].options[i].selected) {
|
---|
37 | // ÁªÂò¤µ¤ì¤Æ¤¤¤Ê¤¤¹àÌÜÇÛÎó¤òÀ¸À®
|
---|
38 | fm[sel].options[i].label=i; // ½çÈÖ¤òlabel¤ËÂàÈò
|
---|
39 | arrNotChoice[choiceCnt] = fm[sel].options[i];
|
---|
40 | choiceCnt++;
|
---|
41 | }else{
|
---|
42 | // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¹àÌÜÇÛÎó¤òÀ¸À®
|
---|
43 | fm[sel].options[i].label=i; // ½çÈÖ¤òlabel¤ËÂàÈò
|
---|
44 | arrChoice[notCnt] = fm[sel].options[i];
|
---|
45 | notCnt++;
|
---|
46 | }
|
---|
47 | }
|
---|
48 |
|
---|
49 | // ÁªÂò¹àÌܤò¾å¤Ë°ÜÆ°
|
---|
50 | for(i = arrChoice.length; i < 1; i--){
|
---|
51 | arrChoice[i].label = arrChoice[i-1].label+1;
|
---|
52 | }
|
---|
53 |
|
---|
54 | // ÈóÁªÂò¹àÌܤò²¼¤Ë°ÜÆ°
|
---|
55 | for(i = 0; i < arrNotChoice.length - 1; i++){
|
---|
56 | arrNotChoice[i].label = arrNotChoice[i+1].label-1;
|
---|
57 | }
|
---|
58 |
|
---|
59 | // ÁªÂò¹àÌܤÈÈóÁªÂò¹àÌܤò¥Þ¡¼¥¸¤¹¤ë
|
---|
60 | for(choiceCnt = 0, notCnt = 0, cnt = 0; cnt < fm[sel].length; cnt++){
|
---|
61 | if (choiceCnt >= arrChoice.length) {
|
---|
62 | arrNew[cnt] = arrNotChoice[notCnt];
|
---|
63 | notCnt++;
|
---|
64 | }else if (notCnt >= arrNotChoice.length) {
|
---|
65 | arrNew[cnt] = arrChoice[choiceCnt];
|
---|
66 | choiceCnt++;
|
---|
67 | }else{
|
---|
68 | if(arrChoice[choiceCnt].label-1 <= arrNotChoice[notCnt].label){
|
---|
69 | arrNew[cnt] = arrChoice[choiceCnt];
|
---|
70 | choiceCnt++;
|
---|
71 | }else{
|
---|
72 | arrNew[cnt] = arrNotChoice[notCnt];
|
---|
73 | notCnt++;
|
---|
74 | }
|
---|
75 | }
|
---|
76 | }
|
---|
77 |
|
---|
78 | // ²¼¤Ë°ÜÆ°¤¹¤ë¾ì¹ç¤Ë¤ÏµÕ¤Ë¤·¤¿¤â¤Î¤ò¸µ¤ËÌ᤹
|
---|
79 | if (moveflg == 'bottom') {
|
---|
80 | for(i=arrNew.length-2, j=0; i >= 0; i--, j++){
|
---|
81 | arrTmp[j] = arrNew[i];
|
---|
82 | }
|
---|
83 | arrTmp[j]="";
|
---|
84 | arrNew = arrTmp;
|
---|
85 | }
|
---|
86 |
|
---|
87 | // option¤òºÆºîÀ®
|
---|
88 | fm[sel].length = arrNew.length - 1;
|
---|
89 | for(i=0; i < arrNew.length - 1; i++){
|
---|
90 | fm[sel].options[i] = new Option(arrNew[i].text, arrNew[i].value);
|
---|
91 | fm[sel].options[i].selected = arrNew[i].selected;
|
---|
92 | }
|
---|
93 | }
|
---|
94 | }
|
---|
95 |
|
---|
96 | function fnReplaceOption(restSel, addSel) {
|
---|
97 | var fm = document.form1;
|
---|
98 | var arrRest = new Array(); // »Ä¤ê¤Î¥ê¥¹¥È
|
---|
99 | var arrAdd = new Array(); // ÄɲäΥꥹ¥È
|
---|
100 |
|
---|
101 | if(fm[restSel].selectedIndex == -1) alert("²¿¤âÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£");
|
---|
102 | else {
|
---|
103 | for(i = 0, restCnt = 0, addCnt = 0; i < fm[restSel].length; i++) {
|
---|
104 | if(!fm[restSel].options[i].selected) {
|
---|
105 | // »ÄÍ×ÁǤÎÇÛÎó¤òÀ¸À®
|
---|
106 | arrRest[restCnt] = fm[restSel].options[i];
|
---|
107 | restCnt++;
|
---|
108 | }else{
|
---|
109 | // ÄɲÃÍ×ÁǤÎÇÛÎó¤òÀ¸À®
|
---|
110 | arrAdd[addCnt] = fm[restSel].options[i];
|
---|
111 | addCnt++;
|
---|
112 | }
|
---|
113 | }
|
---|
114 |
|
---|
115 | // »Ä¥ê¥¹¥ÈÀ¸À®
|
---|
116 | fm[restSel].length = arrRest.length;
|
---|
117 | for(i=0; i < arrRest.length; i++)
|
---|
118 | {
|
---|
119 | fm[restSel].options[i] = new Option(arrRest[i].text, arrRest[i].value);
|
---|
120 | }
|
---|
121 |
|
---|
122 | // ÄɲÃÀè¤Ë¹àÌܤòÄɲÃ
|
---|
123 | //fm[addSel].options[fm[addSel].length] = new Option(fm[sel2].value, fm[sel2].value);
|
---|
124 |
|
---|
125 | for(i=0; i < arrAdd.length; i++)
|
---|
126 | {
|
---|
127 | fm[addSel].options[fm[addSel].length] = new Option(arrAdd[i].text, arrAdd[i].value);
|
---|
128 | fm[addSel].options[fm[addSel].length-1].selected = true;
|
---|
129 | }
|
---|
130 | }
|
---|
131 | }
|
---|
132 |
|
---|
133 | // submit¤·¤¿¾ì¹ç¤Ë¡¢½ÐÎϹàÌÜ°ìÍ÷¤òÁªÂò¾õÂ֤ˤ¹¤ë
|
---|
134 | function lfnCheckList(sel) {
|
---|
135 | var fm = document.form1;
|
---|
136 | for(i = 0; i < fm[sel].length; i++) {
|
---|
137 | fm[sel].options[i].selected = true;
|
---|
138 | }
|
---|
139 | }
|
---|
140 |
|
---|
141 | // ¥ê¥¹¥È¥Ü¥Ã¥¯¥¹¤Î¥µ¥¤¥ºÊѹ¹
|
---|
142 | function ChangeSize(button, TextArea, Max, Min, row_tmp){
|
---|
143 | if(TextArea.rows <= Min){
|
---|
144 | TextArea.rows=Max; button.value="¾®¤µ¤¯¤¹¤ë"; row_tmp.value=Max;
|
---|
145 | }else{
|
---|
146 | TextArea.rows =Min; button.value="Â礤¯¤¹¤ë"; row_tmp.value=Min;
|
---|
147 | }
|
---|
148 | }
|
---|
149 |
|
---|
150 | //-->
|
---|
151 | </script>
|
---|
152 |
|
---|
153 |
|
---|
154 | <!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
|
---|
155 | <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
156 | <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" onsubmit="lfnCheckList('output_list[]')">
|
---|
157 | <input type="hidden" name="mode" value="confirm">
|
---|
158 | <input type="hidden" name="tpl_subno_csv" value="<!--{$tpl_subno_csv}-->">
|
---|
159 | <tr valign="top">
|
---|
160 | <td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402">
|
---|
161 | <!--¢§SUB NAVI-->
|
---|
162 | <!--{include file=$tpl_subnavi}-->
|
---|
163 | <!--¢¥SUB NAVI-->
|
---|
164 | </td>
|
---|
165 | <td class="mainbg">
|
---|
166 | <!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->
|
---|
167 | <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
168 | <!--¥á¥¤¥ó¥¨¥ê¥¢-->
|
---|
169 | <tr>
|
---|
170 | <td align="center">
|
---|
171 | <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
172 | <tr><td height="14"></td></tr>
|
---|
173 | <tr>
|
---|
174 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
|
---|
175 | </tr>
|
---|
176 | <tr>
|
---|
177 | <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>
|
---|
178 | <td bgcolor="#cccccc">
|
---|
179 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
180 | <tr>
|
---|
181 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
|
---|
182 | </tr>
|
---|
183 | <tr>
|
---|
184 | <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>
|
---|
185 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë--><!--{$SubnaviName}--></span></td>
|
---|
186 | <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>
|
---|
187 | </tr>
|
---|
188 | <tr>
|
---|
189 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
|
---|
190 | </tr>
|
---|
191 | <tr>
|
---|
192 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
|
---|
193 | </tr>
|
---|
194 | </table>
|
---|
195 |
|
---|
196 | <table width="678" border="0" cellspacing="1" cellpadding="0" summary=" "><tr><td>
|
---|
197 | <table width="676" border="0" cellspacing="" cellpadding="3" summary=" ">
|
---|
198 | <tr class="fs12n">
|
---|
199 | <td bgcolor="#ffffff" align="right">
|
---|
200 | <input type="button" value=" ¢¥ " onClick="fnMoveOption('output_list[]', 'top');"><br/><br/><br/>
|
---|
201 | <input type="button" value=" ¢§ " onClick="fnMoveOption('output_list[]', 'bottom');">
|
---|
202 | </td>
|
---|
203 | <td bgcolor="#ffffff" align="left">
|
---|
204 | <table width="270" border="1" cellspacing="0" cellpadding="3" summary=" ">
|
---|
205 | <tr class="fs12n">
|
---|
206 | <td bgcolor="#f2f1ec" align="center"><strong>½ÐÎϹàÌÜ°ìÍ÷</strong></td>
|
---|
207 | </tr>
|
---|
208 | <tr class="fs12n">
|
---|
209 | <td bgcolor="#ffffff" align="center">
|
---|
210 | <span class="red12"><!--{$arrErr.output_list}--></span>
|
---|
211 | <select multiple name="output_list[]" size="30" style="<!--{$arrErr.output_list|sfGetErrorColor}-->; width:250px; height:425px;">
|
---|
212 | <!--{html_options options=$arrOutput}-->
|
---|
213 | </select>
|
---|
214 | </td>
|
---|
215 | </tr>
|
---|
216 | </table>
|
---|
217 | </td>
|
---|
218 | <td bgcolor="#ffffff" align="cneter">
|
---|
219 | <input type="button" value="<< ÄɲÃ" onClick="fnReplaceOption('choice_list[]', 'output_list[]');"><br/><br/><br/>
|
---|
220 | <input type="button" value="ºï½ü >>" onClick="fnReplaceOption('output_list[]', 'choice_list[]');">
|
---|
221 | </td>
|
---|
222 | <td bgcolor="#ffffff" align="right">
|
---|
223 | <table width="270" border="1" cellspacing="0" cellpadding="3" summary=" ">
|
---|
224 | <tr class="fs12n">
|
---|
225 | <td bgcolor="#f2f1ec" align="center"><strong>½ÐÎϲÄǽ¹àÌÜ°ìÍ÷</strong></td>
|
---|
226 | </tr>
|
---|
227 | <tr class="fs12n">
|
---|
228 | <td bgcolor="#ffffff" align="center">
|
---|
229 | <select multiple name="choice_list[]" size="30" style="width:250px; height:425px;">
|
---|
230 | <!--{html_options options=$arrChoice}-->
|
---|
231 | </select>
|
---|
232 | </td>
|
---|
233 | </tr>
|
---|
234 | </table>
|
---|
235 | </td>
|
---|
236 | </tr>
|
---|
237 | </table>
|
---|
238 | </td></tr></table>
|
---|
239 |
|
---|
240 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
241 | <tr>
|
---|
242 | <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
|
---|
243 | <td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
|
---|
244 | <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
|
---|
245 | </tr>
|
---|
246 | <tr>
|
---|
247 | <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
|
---|
248 | <td bgcolor="#e9e7de" align="center">
|
---|
249 | <table border="0" cellspacing="0" cellpadding="0" summary=" ">
|
---|
250 | <tr>
|
---|
251 | <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"></td>
|
---|
252 | </tr>
|
---|
253 | </table>
|
---|
254 | </td>
|
---|
255 | <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
|
---|
256 | </tr>
|
---|
257 | <tr>
|
---|
258 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
|
---|
259 | </tr>
|
---|
260 | </table>
|
---|
261 | </td>
|
---|
262 | <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>
|
---|
263 | </tr>
|
---|
264 | <tr>
|
---|
265 | <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
|
---|
266 | </tr>
|
---|
267 | <tr><td height="30"></td></tr>
|
---|
268 | </table>
|
---|
269 | </td>
|
---|
270 | </tr>
|
---|
271 | <!--¥á¥¤¥ó¥¨¥ê¥¢-->
|
---|
272 | </table>
|
---|
273 | <!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->
|
---|
274 | </td>
|
---|
275 | </tr>
|
---|
276 | </form>
|
---|
277 | </table>
|
---|
278 | <!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
|
---|
279 |
|
---|
280 |
|
---|
281 | </script>
|
---|