- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/data/Smarty/templates/admin/contents/csv.tpl
r12157 r15078 10 10 function fnMoveOption(sel , moveflg) { 11 11 var fm = document.form1; 12 var arrChoice = new Array(); // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¹àÌÜ13 var arrNotChoice = new Array(); // ÁªÂò¤µ¤ì¤Æ¤¤¤Ê¤¤¹àÌÜ14 var arrNew = new Array(); // °ÜÆ°¸å¤Î¥ê¥¹¥È12 var arrChoice = new Array(); // 選択されている項目 13 var arrNotChoice = new Array(); // 選択されていない項目 14 var arrNew = new Array(); // 移動後のリスト 15 15 var arrTmp = new Array(); 16 16 var arrRev = new Array(); 17 17 18 if(fm[sel].selectedIndex == -1) alert(" ²¿¤âÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£");18 if(fm[sel].selectedIndex == -1) alert("何も選択されていません。"); 19 19 else { 20 // ²¼¤Ë°ÜÆ°¤¹¤ë¾ì¹ç¤Ë¤Ï¤Þ¤ºOPTION¤òµÕ¤Ë¤¹¤ë20 // 下に移動する場合にはまずOPTIONを逆にする 21 21 if (moveflg == 'bottom') { 22 22 for(i=fm[sel].length-1, j=0; i >= 0; i--, j++){ 23 fm[sel].options[i].label=i; // ½çÈÖ¤òlabel¤ËÂàÈò23 fm[sel].options[i].label=i; // 順番をlabelに退避 24 24 arrRev[j] = fm[sel].options[i]; 25 25 } … … 30 30 } 31 31 32 // °ìÈÖ²¼¤Ë¶õÇò¤òÄɲÃ32 // 一番下に空白を追加 33 33 fm[sel].options[fm[sel].length] = new Option('', ''); 34 34 35 35 for(i = 0, choiceCnt = 0, notCnt = 0; i < fm[sel].length; i++) { 36 36 if(!fm[sel].options[i].selected) { 37 // ÁªÂò¤µ¤ì¤Æ¤¤¤Ê¤¤¹àÌÜÇÛÎó¤òÀ¸À®38 fm[sel].options[i].label=i; // ½çÈÖ¤òlabel¤ËÂàÈò37 // 選択されていない項目配列を生成 38 fm[sel].options[i].label=i; // 順番をlabelに退避 39 39 arrNotChoice[choiceCnt] = fm[sel].options[i]; 40 40 choiceCnt++; 41 41 }else{ 42 // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¹àÌÜÇÛÎó¤òÀ¸À®43 fm[sel].options[i].label=i; // ½çÈÖ¤òlabel¤ËÂàÈò42 // 選択されている項目配列を生成 43 fm[sel].options[i].label=i; // 順番をlabelに退避 44 44 arrChoice[notCnt] = fm[sel].options[i]; 45 45 notCnt++; … … 47 47 } 48 48 49 // ÁªÂò¹àÌܤò¾å¤Ë°ÜÆ°49 // 選択項目を上に移動 50 50 for(i = arrChoice.length; i < 1; i--){ 51 51 arrChoice[i].label = arrChoice[i-1].label+1; 52 52 } 53 53 54 // ÈóÁªÂò¹àÌܤò²¼¤Ë°ÜÆ°54 // 非選択項目を下に移動 55 55 for(i = 0; i < arrNotChoice.length - 1; i++){ 56 56 arrNotChoice[i].label = arrNotChoice[i+1].label-1; 57 57 } 58 58 59 // ÁªÂò¹àÌܤÈÈóÁªÂò¹àÌܤò¥Þ¡¼¥¸¤¹¤ë59 // 選択項目と非選択項目をマージする 60 60 for(choiceCnt = 0, notCnt = 0, cnt = 0; cnt < fm[sel].length; cnt++){ 61 61 if (choiceCnt >= arrChoice.length) { … … 76 76 } 77 77 78 // ²¼¤Ë°ÜÆ°¤¹¤ë¾ì¹ç¤Ë¤ÏµÕ¤Ë¤·¤¿¤â¤Î¤ò¸µ¤ËÌ᤹78 // 下に移動する場合には逆にしたものを元に戻す 79 79 if (moveflg == 'bottom') { 80 80 for(i=arrNew.length-2, j=0; i >= 0; i--, j++){ … … 85 85 } 86 86 87 // option ¤òºÆºîÀ®87 // optionを再作成 88 88 fm[sel].length = arrNew.length - 1; 89 89 for(i=0; i < arrNew.length - 1; i++){ … … 96 96 function fnReplaceOption(restSel, addSel) { 97 97 var fm = document.form1; 98 var arrRest = new Array(); // »Ä¤ê¤Î¥ê¥¹¥È99 var arrAdd = new Array(); // ÄɲäΥꥹ¥È98 var arrRest = new Array(); // 残りのリスト 99 var arrAdd = new Array(); // 追加のリスト 100 100 101 if(fm[restSel].selectedIndex == -1) alert(" ²¿¤âÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£");101 if(fm[restSel].selectedIndex == -1) alert("何も選択されていません。"); 102 102 else { 103 103 for(i = 0, restCnt = 0, addCnt = 0; i < fm[restSel].length; i++) { 104 104 if(!fm[restSel].options[i].selected) { 105 // »ÄÍ×ÁǤÎÇÛÎó¤òÀ¸À®105 // 残要素の配列を生成 106 106 arrRest[restCnt] = fm[restSel].options[i]; 107 107 restCnt++; 108 108 }else{ 109 // ÄɲÃÍ×ÁǤÎÇÛÎó¤òÀ¸À®109 // 追加要素の配列を生成 110 110 arrAdd[addCnt] = fm[restSel].options[i]; 111 111 addCnt++; … … 113 113 } 114 114 115 // »Ä¥ê¥¹¥ÈÀ¸À®115 // 残リスト生成 116 116 fm[restSel].length = arrRest.length; 117 117 for(i=0; i < arrRest.length; i++) … … 120 120 } 121 121 122 // ÄɲÃÀè¤Ë¹àÌܤòÄɲÃ122 // 追加先に項目を追加 123 123 //fm[addSel].options[fm[addSel].length] = new Option(fm[sel2].value, fm[sel2].value); 124 124 … … 131 131 } 132 132 133 // submit ¤·¤¿¾ì¹ç¤Ë¡¢½ÐÎϹàÌÜ°ìÍ÷¤òÁªÂò¾õÂ֤ˤ¹¤ë133 // submitした場合に、出力項目一覧を選択状態にする 134 134 function lfnCheckList(sel) { 135 135 var fm = document.form1; … … 139 139 } 140 140 141 // ¥ê¥¹¥È¥Ü¥Ã¥¯¥¹¤Î¥µ¥¤¥ºÊѹ¹141 // リストボックスのサイズ変更 142 142 function ChangeSize(button, TextArea, Max, Min, row_tmp){ 143 143 if(TextArea.rows <= Min){ 144 TextArea.rows=Max; button.value=" ¾®¤µ¤¯¤¹¤ë"; row_tmp.value=Max;144 TextArea.rows=Max; button.value="小さくする"; row_tmp.value=Max; 145 145 }else{ 146 TextArea.rows =Min; button.value=" Â礤¯¤¹¤ë"; row_tmp.value=Min;146 TextArea.rows =Min; button.value="大きくする"; row_tmp.value=Min; 147 147 } 148 148 } … … 152 152 153 153 154 <!-- ¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->154 <!--★★メインコンテンツ★★--> 155 155 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> 156 156 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" onsubmit="lfnCheckList('output_list[]')"> … … 159 159 <tr valign="top"> 160 160 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402"> 161 <!-- ¢§SUB NAVI-->161 <!--▼SUB NAVI--> 162 162 <!--{include file=$tpl_subnavi}--> 163 <!-- ¢¥SUB NAVI-->163 <!--▲SUB NAVI--> 164 164 </td> 165 165 <td class="mainbg"> 166 <!-- ¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->166 <!--▼登録テーブルここから--> 167 167 <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" "> 168 <!-- ¥á¥¤¥ó¥¨¥ê¥¢-->168 <!--メインエリア--> 169 169 <tr> 170 170 <td align="center"> … … 183 183 <tr> 184 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>185 <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル--><!--{$SubnaviName}--></span></td> 186 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 187 </tr> … … 198 198 <tr class="fs12n"> 199 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');">200 <input type="button" value=" ▲ " onClick="fnMoveOption('output_list[]', 'top');"><br/><br/><br/> 201 <input type="button" value=" ▼ " onClick="fnMoveOption('output_list[]', 'bottom');"> 202 202 </td> 203 203 <td bgcolor="#ffffff" align="left"> 204 204 <table width="270" border="1" cellspacing="0" cellpadding="3" summary=" "> 205 205 <tr class="fs12n"> 206 <td bgcolor="#f2f1ec" align="center"><strong> ½ÐÎϹàÌÜ°ìÍ÷</strong></td>206 <td bgcolor="#f2f1ec" align="center"><strong>出力項目一覧</strong></td> 207 207 </tr> 208 208 <tr class="fs12n"> … … 217 217 </td> 218 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[]');">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 221 </td> 222 222 <td bgcolor="#ffffff" align="right"> 223 223 <table width="270" border="1" cellspacing="0" cellpadding="3" summary=" "> 224 224 <tr class="fs12n"> 225 <td bgcolor="#f2f1ec" align="center"><strong> ½ÐÎϲÄǽ¹àÌÜ°ìÍ÷</strong></td>225 <td bgcolor="#f2f1ec" align="center"><strong>出力可能項目一覧</strong></td> 226 226 </tr> 227 227 <tr class="fs12n"> … … 249 249 <table border="0" cellspacing="0" cellpadding="0" summary=" "> 250 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>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 252 </tr> 253 253 </table> … … 269 269 </td> 270 270 </tr> 271 <!-- ¥á¥¤¥ó¥¨¥ê¥¢-->271 <!--メインエリア--> 272 272 </table> 273 <!-- ¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->273 <!--▲登録テーブルここまで--> 274 274 </td> 275 275 </tr> 276 276 </form> 277 277 </table> 278 <!-- ¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->278 <!--★★メインコンテンツ★★--> 279 279 280 280
Note: See TracChangeset
for help on using the changeset viewer.