1//********************************************************************** 2// 3// ã¡ã¼ã«ã¼ã®ã³ã³ãããã¯ã¹ã鏿ãããã¨ãã®å¦çãè¡ãã 4// 鏿ãããã¡ã¼ã«ã¼ã®è»ç¨®ãåå¾ãã¦ãè»åã®ã³ã³ãããã¯ã¹ã«è¨å®ããã 5// 6// â» usedcar_search.jsããç§»å (2009.10.19) 7// 8// â 弿°1 : True:éåæå¦ç, False:åæå¦ç 9// 10//********************************************************************** 11$( document ).ready(function() { 12if($("#count_maker").val()<=1) 13 { 14 $("#model" ).show(); 15 getModelList(false); 16 } 17 else 18 { 19 $("#model" ).hide(); 20 } 21 22 23}); 24 25function getModelList(){ 26 27 var maker_code = $("#maker_list").val(); 28 var cartype = $("#type").val(); 29 var keitora = $("#keitora").val(); 30 31 $.ajax({ 32 type: 'POST', 33 url: '/usedcar/Aj_usedcar_select_maker.php', 34 dataType: 'json', 35 data:{ 36 maker_code: maker_code, 37 type: cartype, 38 keitora: keitora, 39 mode: 2 40 }, 41 success: function(data){ 42 var data = data; 43 $('#model_list option').remove(); 44 $('#model_list').prepend('<option value="-1">æªé¸æ</option>'); 45 $.each(data.model_list, function(id, name){ 46 $('#model_list').append($('<option>').text(name).attr('value', id)); 47 }); 48 }, 49 error: function(jqXHR, textStatus, errorThrown) { 50 console.log(errorThrown); 51 } 52 }); 53 54} 55 56 57 58 59//********************************************************************** 60// 61// ã¡ã¼ã«ã¼ã¾ãã¯è»åãã«ãã¦ã³ã使ããã 62// 63// â 弿°1 : ã¨ã¬ã¡ã³ãID 64// 弿°2 : è¨å®ããã¢ã¤ãã 飿³é å(ã³ã¼ã:åç§°) 65// 66//********************************************************************** 67function createPulldown(id, items, item_name) 68{ 69 var sel = $(id); 70 sel.length = 0; 71 sel.options[0] = new Option("æªé¸æ", -1); 72 73 74// forï½inã ã¨ã表示é ãå´©ãããã©ã¦ã¶ãã 75// for (key in items) { 76// var name = items[key][item_name] + " (" + items[key]["count"] + ")"; 77// sel.options[sel.length] = new Option(name, key); 78// } 79 80 var len = items.length; 81 var selected_number = 0; 82 for(var i=0;i<len;i++) { 83 var name = items[i][item_name] + " (" + items[i]["count"] + ")"; 84 var code = items[i]["model_code"]; 85 if($('#hd_model_list').val()==code){ 86 sel.options[i+1] = new Option(name, code ,'selected = selected'); 87 selected_number = i+1 88 } 89 else{ 90 sel.options[i+1] = new Option(name, code ); 91 } 92 } 93 sel.selectedIndex = selected_number 94 if (sel.length > 0) { 95 //sel.selectedIndex = 0; 96 } 97} 98 99 100//********************************************************************** 101// 102// çµè¾¼ã¿ã¨ãªã¢ã®åé ç®ãå ¨ã¦ã¯ãªã¢ããã 103// mode : 1(ä¸å¤è»)ã2ï¼è²©å£²åºï¼ 104// 105//********************************************************************** 106function clearSelectedItems(mode) 107{ 108 // â çµè¾¼ã¿ã¨ãªã¢ã®ãã«ãã¦ã³ãã¯ãªã¢ 109 110 // è»ä¸¡è¤æ°é¸æãã©ããã®ãã©ã°ãåå¾ 111 var multiSelect = $j('hdn_multi_select_model').val(); 112 113 if(!multiSelect){ 114 // è¤æ°é¸æã§ã¯ãªãå ´å 115 // ã¡ã¼ã«ã¼ãªã¹ãã®ã¯ãªã¢ 116 $('#maker_list').val("-1"); 117 $("#count_maker").val(""); 118 $("input[id^='maker_list']:checked").each( 119 function(){ 120 $(this).attr('checked', false); 121 } 122 ) 123 // è»åãªã¹ãã®ã¯ãªã¢ 124 var sel = $('model_list').val(); 125 //ãæªé¸æã以éãã¯ãªã¢ãã 126 sel.length = 1; 127 $('#model_list').val("-1"); 128 $("#model" ).show(); 129 130 //yonku 131 $("input[id^='yonku']:checked").each( 132 function(){ 133 $(this).attr('checked', false); 134 } 135 ) 136 137 } 138 139 //å¹´å¼ãªã¹ãã®ã¯ãªã¢ 140 $('#nenshiki_from').val("-1"); 141 $('#nenshiki_to').val("-1"); 142 143 //è·é¢ãªã¹ãã®ã¯ãªã¢ 144 $('#kyori_from').val("-1"); 145 $('#kyori_to').val("-1"); 146 147 $('#price_from').val("-1"); 148 $('#price_to').val("-1"); 149 150 $('#type_car').val("-1"); 151 $('#WD').val("-1"); 152 $('#kyoten_mode').val("-1"); 153 $('#model_type').val("-1"); 154 155 //ã«ã©ã¼ã®ã¯ãªã¢ 156 $('#chk_color0').attr('checked', false); 157 $('#chk_color0').attr('checked', false); 158 $('#chk_color1').attr('checked', false); 159 $('#chk_color8').attr('checked', false); 160 $('#chk_color9').attr('checked', false); 161 $('#chk_color7').attr('checked', false); 162 $('#chk_color2').attr('checked', false); 163 $('#chk_color3').attr('checked', false); 164 $('#chk_color5').attr('checked', false); 165 $('#chk_color6').attr('checked', false); 166 $('#chk_color4').attr('checked', false); 167 $('#chk_color10').attr('checked', false); 168 $('#chk_color11').attr('checked', false); 169 $('#chk_color12').attr('checked', false); 170 $('#chk_color13').attr('checked', false); 171 $('#chk_color14').attr('checked', false); 172 $('#chk_color15').attr('checked', false); 173 $('#chk_color16').attr('checked', false); 174 $('#chk_color17').attr('checked', false); 175 176} 177
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.