1//å页 2function showPagetion() { 3 4 if (Number(resultCount) == 0) { 5 lrFixFooter("#footer"); 6 return; 7 } 8 var visible_pages = Math.ceil(resultCount / pageSize); 9 if (visible_pages == 1) { 10 visible_pages = 1; 11 } 12 13 var totalPage = Math.ceil(resultCount / pageSize); 14 if (totalPage == 1) { 15 totalPage = 1; 16 } 17 // é»è®¤10页 18 if( pageWidth == '0'){ 19 if (visible_pages >= 12) { 20 visible_pages = 12; 21 } 22 }else { 23 if (visible_pages >= 9) { 24 visible_pages = 9; 25 } 26 } 27 var current_page = 1; 28 // é»è®¤é¦é¡µ 29 if (pageNum != null) { 30 current_page = Number(pageNum) + 1; 31 } 32 isPageLoad = false; 33 // å页æä»¶ 34 $('#pageInfo').jqPaginator({ 35 totalPages: totalPage, 36 visiblePages: visible_pages, 37 currentPage: current_page, 38 pageSize: pageSize, 39 prev: '<li class="prev"><a href="javascript:;"><< '+conditionArrayResult[87]+'<i></i></a></li>', 40 next: '<li class="next"><a href="javascript:;">'+conditionArrayResult[88]+ '>><i></i></a></li>', 41 // prev: '<li class="prev"><a href="javascript:;"><< fuc<i></i></a></li>', 42 // next: '<li class="next"><a href="javascript:;">fuck>><i></i></a></li>', 43 page: '<li class="page"><a href="javascript:;">{{page}}</a></li>', 44 onPageChange: function (num, type) { 45 if (isPageLoad) { 46 // é ç½®åç«ç¾¤ 47 $("#sonSiteCode").val(sonSiteCode); 48 $("#pageNum").val(num - 1); 49 // æç´¢å¤ç 50 searchProcessJudge(); 51 } else { 52 } 53 } 54 }); 55 56 //çæä¿¡æ¯ä¸ç´ä¿æå¨åºé¨ 57 lrFixFooter("#footer"); 58 59} 60//å页 61function showPagetionWithPageSize(pageSizeInput) { 62 63 if (Number(resultCount) == 0) { 64 lrFixFooter("#footer"); 65 return; 66 } 67 var visible_pages = Math.ceil(resultCount / pageSizeInput); 68 if (visible_pages == 1) { 69 visible_pages = 1; 70 } 71 72 var totalPage = Math.ceil(resultCount / pageSizeInput); 73 if (totalPage == 1) { 74 totalPage = 1; 75 } 76 // é»è®¤10页 77 if( pageWidth == '0'){ 78 if (visible_pages >= 12) { 79 visible_pages = 12; 80 } 81 }else { 82 if (visible_pages >= 9) { 83 visible_pages = 9; 84 } 85 } 86 var current_page = 1; 87 // é»è®¤é¦é¡µ 88 if (pageNum != null) { 89 current_page = Number(pageNum) + 1; 90 } 91 isPageLoad = false; 92 // å页æä»¶ 93 $('#pageInfo').jqPaginator({ 94 totalPages: totalPage, 95 visiblePages: visible_pages, 96 currentPage: current_page, 97 pageSize: pageSizeInput, 98 prev: '<li class="prev"><a href="javascript:;"><< '+conditionArrayResult[87]+'<i></i></a></li>', 99 next: '<li class="next"><a href="javascript:;">'+conditionArrayResult[88]+ '>><i></i></a></li>', 100 page: '<li class="page"><a href="javascript:;">{{page}}</a></li>', 101 onPageChange: function (num, type) { 102 if (isPageLoad) { 103 // é ç½®åç«ç¾¤ 104 $("#sonSiteCode").val(sonSiteCode); 105 $("#pageNum").val(num - 1); 106 // æç´¢å¤ç 107 searchProcessJudge(); 108 } else { 109 } 110 } 111 }); 112 113 //çæä¿¡æ¯ä¸ç´ä¿æå¨åºé¨ 114 lrFixFooter("#footer"); 115 116} 117//æ¿çæä»¶å页 118function showPagetion2() { 119 if (Number(resultCount) == 0) { 120 return; 121 } 122 var visible_pages = Math.ceil(resultCount / pageSize); 123 if (visible_pages == 1) { 124 visible_pages = 1; 125 } 126 127 var totalPage = Math.ceil(resultCount / pageSize); 128 if (totalPage == 1) { 129 totalPage = 1; 130 } 131 // é»è®¤5页 132 if (visible_pages >= 10) { 133 visible_pages = 10; 134 } 135 var current_page = 1; 136 // é»è®¤é¦é¡µ 137 if (pageNum != null) { 138 current_page = Number(pageNum) + 1; 139 } 140 isPageLoad = false; 141 // å页æä»¶ 142 $('#pagination1').jqPaginator({ 143 totalPages: totalPage, 144 visiblePages: visible_pages, 145 currentPage: current_page, 146 pageSize: pageSize, 147 disableClass:"disabled", 148 prev: '<li class="prev"><a href="javascript:;">ä¸ä¸é¡µ<i></i></a></li>', 149 next: '<li class="next"><a href="javascript:;">ä¸ä¸é¡µ<i></i></a></li>', 150 page: '<li class="page"><a href="javascript:;">{{page}}</a></li>', 151 onPageChange: function (num, type) { 152 if (isPageLoad) { 153 $("#pageNum").val(num - 1); 154 // æç´¢å¤ç 155 searchProcessJudge(); 156 } 157 } 158 });
159} 160 161/** 162 * åæ¶å°åæç´¢ 163 */ 164function cancelAreaSearch() { 165 $("#areaSearchFlag").val(0); 166 searchProcessJudge() 167} 168 169/** 170 * åæ¶æ ç®å°åæç´¢ 171 */ 172function cancelCitySearch() { 173 $("#citySearchFlag").val(-1); 174 searchProcessJudge() 175} 176 177//忢æ ç®æ¶è¿è¡æç´¢ 178function changeColumn(_this) { 179 $("#searchStamp").val('0'); 180 if($(_this).parent().parent().parent().hasClass("sortListCon")){ 181 182 $(".timeSortBy .conPattern li").removeClass("active"); 183 $(_this).parent().addClass("active"); 184 }else { 185 $("#showTitle li ").removeClass("on"); 186 $(_this).parent().addClass("on"); 187 } 188 $("#showTitl li ").removeClass("on"); 189 190 //ç»æ»å¨å¯¼èªæ é䏿 ç®èµå¼ 191 //éä¸çæ ç®å¼ 192 var selectColumnId = $(_this).attr("id"); 193 $("#showTitle li a").each(function () { 194 if ($(this).attr("id") == selectColumnId) { 195 $("#showTitle li").removeClass("on"); 196 $(this).parent().addClass("on"); 197 } 198 }); 199 200 // $("#" + selectColumnId).parent().addClass("on"); 201 202 $('input[name="aggsResult"]').each(function () { 203 $(this).val(""); 204 }) 205 $('#column').val($(_this).attr("id")); 206 if(siteCode=="N000019107") { //广å·äº¤ææ 207 $("#phoneColumn").find('li').css("border-bottom","none"); 208 $(_this).parent().parent().css("border-bottom"," 2px solid"); 209 hideMenus(); 210 } 211 var searchType = $("#searchStamp").val(); 212 if (searchType == 2) { 213 $("#searchStamp").val(0); 214 } 215 $('#topicalValue').val(0); 216 $('#docNameCommonValue').val(0); 217 $("#sonSiteCode").val(""); 218 219 // 忢æ ç®è¿åç鿡件 220 $("#timeRangeValue").val('0'); 221 $("#timeRange").html(conditionArrayResult[16]); 222 223 $("#fileTypeRangeValue").val('0'); 224 $("#fileTypeRange").html(conditionArrayResult[10]); 225 226 //åæ¢ä¸æåæ¬ç« 227 changesearchDowmMenu(); 228 searchProcessJudge('','',''); 229} 230 231 232/** 233 * ç¹å»ç«ç¾¤æç´¢æ¾ç¤ºæå®ç«ç¹ä¸çå 容 234 * @param searchType æç´¢ç±»å 0: é«çº§æç´¢ 1:æ®éæç´¢ 235 * @param siteCode ç½ç«æ è¯ç 236 * @constructor 237 */ 238function SearchSiteOnly(searchType, siteCode) { 239 $("#sonSiteCode").val(siteCode); 240 if (searchType == 0) { 241 advanceSearchProcess(false); 242 } else if (searchType == 1) { 243 searchProcess("", 1, "", false); 244 } 245} 246 247function imgClick() { 248 if ($("#allSearchWord").val() != "") { 249 $("#allSearchWord").val('') 250 $("#allSearchWord").attr('placeholder','è¯é³è¾å ¥æ¸å¼ï¼ç¹å»å³ä¾§å¾æ éåº') 251 $("#videoWord").val('') 252 $("#imgVideo").attr('src', "../static/images/video1.png") 253 $("#imgVideo").attr('class', 'imgvideo') 254 $("#videoWord").focus() 255 }else if($("#allSearchWord").attr('placeholder') == "è¯é³è¾å ¥æ¸å¼ï¼ç¹å»å³ä¾§å¾æ éåº"){ 256 $("#allSearchWord").val(allSearchWord) 257 $("#allSearchWord").attr('placeholder','') 258 $("#imgVideo").attr('src', "../static/images/video.png") 259 $("#imgVideo").removeClass('imgvideo') 260 }else if($("#allSearchWord").attr('placeholder') == ""){ 261 allSearchWord = $("#allSearchWord").val() 262 $("#allSearchWord").val('') 263 $("#allSearchWord").attr('placeholder','è¯é³è¾å ¥æ¸å¼ï¼ç¹å»å³ä¾§å¾æ éåº') 264 $("#videoWord").val('') 265 $("#imgVideo").attr('src', "../static/images/video1.png") 266 $("#imgVideo").attr('class', 'imgvideo') 267 $("#videoWord").focus() 268 } 269} 270 271 272function voiceSearch(target) { 273 $(".mask").show(); 274 $(".dialogVoiceSearch").show(); 275 startRecording(); 276} 277 278/** 279 * ç«ç¾¤å³ä¾§æ°é为0æç¤º 280 */ 281function noDataRemind(obj,code){ 282 var htmlVal=$("#"+code).find('span').html(); 283 ///htmlVal=htmlVal.replace(/\s*/g,""); 284 if(htmlVal){ 285 searchProcess('', 0, '', '', '',code); 286 } 287} 288 289 290/** 291 *åªé¤cookieæè¿æç´¢è®°å½ 292 * @param name 293 */ 294function deleteCookieByName(name){ 295 //var name="recentSearchRecords"; 296 var date=new Date(); 297 date.setTime(date.getTime()-10000); 298 document.cookie=name+"=; expire="+date.toGMTString()+"; path=/"; 299 $("#recentSearchOrder").html(''); 300 $("#clearAll").hide(); 301} 302 303/*åå§åCookie*/ 304function setUserCookie(word,time,uc){ 305 var searchUseTime=0; 306 if(stringNotEmpty(time)){ 307 searchUseTime= time; 308 }
309 var searchTime = dateFtt("yyyyMMddhhmmss",new Date(lastVisitTime)); 310 var ucount = uc; 311 // 夿æ¯å¦ææ¥çè®°å½ 312 var userSearch; 313 if (ucount == 1) { 314 setCookie("firstWord",word); 315 userSearch = { 316 siteCode: siteCode, 317 column: column, 318 uc: ucount, 319 firstWord: getCookie("firstWord"), 320 searchWord: word, 321 searchTime:searchTime, 322 searchUseTime:searchUseTime 323 }; 324 } else { 325 if (null === getCookie("firstWord")) { 326 setCookie("firstWord", word) 327 userSearch = { 328 siteCode: siteCode, 329 column: column, 330 uc: ucount, 331 firstWord: "", 332 searchWord: word, 333 searchTime:searchTime, 334 searchUseTime:searchUseTime 335 }; 336 } else { 337 setCookie("firstWord", getCookie("firstWord")) 338 userSearch = { 339 siteCode: siteCode, 340 column: column, 341 uc: ucount, 342 firstWord: getCookie("firstWord"), 343 searchWord: word, 344 searchTime:searchTime, 345 searchUseTime:searchUseTime 346 }; 347 } 348 } 349 SubCookieUtil.setAll("userSearch", userSearch); 350}
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.