|
|
|
|
402
|
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
|
402
|
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
|
403
|
<script type="text/javascript" src="js/information.js"></script>
|
403
|
<script type="text/javascript" src="js/information.js"></script>
|
404
|
<script>
|
404
|
<script>
|
405
|
$(document).on("click", ".date-btn", function() {
|
|
|
|
|
405
|
$("body").on("click", ".date-btn", function() {
|
|
|
406
|
$(".mr_calendar_ym:visible").hide();
|
406
|
var flag = $(this).attr("flag");
|
407
|
var flag = $(this).attr("flag");
|
407
|
var c = $(this).val();
|
408
|
var c = $(this).val();
|
408
|
if(flag == 1) {
|
409
|
if(flag == 1) {
|
|
|
|
|
412
|
$(this).siblings(".mr_calendar_ym").show();
|
413
|
$(this).siblings(".mr_calendar_ym").show();
|
413
|
$(this).siblings(".mr_calendar_ym").find(".full_year").scrollTop(sroTop);
|
414
|
$(this).siblings(".mr_calendar_ym").find(".full_year").scrollTop(sroTop);
|
414
|
$(this).siblings(".mr_calendar_ym").find(".yearli:contains('" + c + "')").addClass("active").siblings().removeClass("active");
|
415
|
$(this).siblings(".mr_calendar_ym").find(".yearli:contains('" + c + "')").addClass("active").siblings().removeClass("active");
|
415
|
return;
|
|
|
|
|
416
|
return false;
|
416
|
} else {
|
417
|
} else {
|
417
|
var ye = new Date().getFullYear();
|
418
|
var ye = new Date().getFullYear();
|
418
|
$(this).siblings(".mr_calendar_ym").show();
|
419
|
$(this).siblings(".mr_calendar_ym").show();
|
419
|
$(this).siblings(".mr_calendar_ym").find(".yearli:contains('" + ye + "')").addClass("active").siblings().removeClass("active");
|
420
|
$(this).siblings(".mr_calendar_ym").find(".yearli:contains('" + ye + "')").addClass("active").siblings().removeClass("active");
|
420
|
return;
|
|
|
|
|
421
|
return false;
|
421
|
}
|
422
|
}
|
422
|
} else if(flag == 2) {
|
423
|
} else if(flag == 2) {
|
423
|
if(c) {
|
424
|
if(c) {
|
|
|
|
|
425
|
$(this).siblings(".mr_calendar_ym").show();
|
426
|
$(this).siblings(".mr_calendar_ym").show();
|
426
|
$(this).siblings(".mr_calendar_ym").find(".mli").removeClass("active");
|
427
|
$(this).siblings(".mr_calendar_ym").find(".mli").removeClass("active");
|
427
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + c + "')").addClass("active").siblings().removeClass("active");
|
428
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + c + "')").addClass("active").siblings().removeClass("active");
|
428
|
return;
|
|
|
|
|
429
|
return false;
|
429
|
} else {
|
430
|
} else {
|
430
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + c.substr(0, 4) + "')").addClass("active");
|
431
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + c.substr(0, 4) + "')").addClass("active");
|
431
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + c.substr(0, 4) + "')").siblings().removeClass("active");
|
432
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + c.substr(0, 4) + "')").siblings().removeClass("active");
|
|
|
|
|
452
|
}
|
453
|
}
|
453
|
var sroTop = (ye - parseInt(c.substr(0, 4))) * 32;
|
454
|
var sroTop = (ye - parseInt(c.substr(0, 4))) * 32;
|
454
|
$(this).siblings(".mr_calendar_ym").find(".mr_year").scrollTop(sroTop);
|
455
|
$(this).siblings(".mr_calendar_ym").find(".mr_year").scrollTop(sroTop);
|
455
|
return;
|
|
|
|
|
456
|
return false;
|
456
|
}
|
457
|
}
|
457
|
} else {
|
458
|
} else {
|
458
|
var ye = new Date().getFullYear();
|
459
|
var ye = new Date().getFullYear();
|
459
|
$(this).siblings(".mr_calendar_ym").show();
|
460
|
$(this).siblings(".mr_calendar_ym").show();
|
460
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + ye + "')").addClass("active");
|
461
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + ye + "')").addClass("active");
|
461
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + ye + "')").siblings().removeClass("active");
|
462
|
$(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + ye + "')").siblings().removeClass("active");
|
462
|
return;
|
|
|
|
|
463
|
return false;
|
463
|
}
|
464
|
}
|
464
|
|
465
|
|
465
|
}
|
466
|
}
|
466
|
})
|
467
|
})
|
467
|
$(document).on("click", ".yearli", function() {
|
|
|
|
|
468
|
$("body").on("click", ".yearli", function() {
|
468
|
$(this).addClass("active").siblings().removeClass("active");
|
469
|
$(this).addClass("active").siblings().removeClass("active");
|
469
|
$(this).parents(".mr_calendar_ym ").siblings().val($(this).text());
|
470
|
$(this).parents(".mr_calendar_ym ").siblings().val($(this).text());
|
470
|
$(this).parents(".mr_calendar_ym ").hide();
|
471
|
$(this).parents(".mr_calendar_ym ").hide();
|
|
|
472
|
return false;
|
471
|
})
|
473
|
})
|
472
|
$(document).on("click", ".ymli", function() {
|
|
|
|
|
474
|
$("body").on("click", ".ymli", function() {
|
473
|
$(this).addClass("active").siblings().removeClass("active");
|
475
|
$(this).addClass("active").siblings().removeClass("active");
|
474
|
var year = $(this).text();
|
476
|
var year = $(this).text();
|
475
|
if(year == "至今") {
|
477
|
if(year == "至今") {
|
476
|
$(this).parents(".mr_calendar_ym ").siblings().val($(this).text())
|
478
|
$(this).parents(".mr_calendar_ym ").siblings().val($(this).text())
|
477
|
$(this).parents(".mr_calendar_ym ").hide();
|
479
|
$(this).parents(".mr_calendar_ym ").hide();
|
478
|
}
|
480
|
}
|
|
|
481
|
return false;
|
479
|
})
|
482
|
})
|
480
|
$(document).on("click", ".mli", function() {
|
|
|
|
|
483
|
$("body").on("click", ".mli", function() {
|
481
|
|
484
|
|
482
|
var yearli = $(this).parents(".mr_month").siblings(".mr_year").children(".active").text();
|
485
|
var yearli = $(this).parents(".mr_month").siblings(".mr_year").children(".active").text();
|
483
|
console.log(yearli);
|
486
|
console.log(yearli);
|
|
|
|
|
496
|
$(this).parents(".mr_calendar_ym ").siblings().val(valueM);
|
499
|
$(this).parents(".mr_calendar_ym ").siblings().val(valueM);
|
497
|
$(this).parents(".mr_calendar_ym ").hide();
|
500
|
$(this).parents(".mr_calendar_ym ").hide();
|
498
|
}
|
501
|
}
|
499
|
|
|
|
|
|
502
|
return false;
|
|
|
503
|
})
|
|
|
504
|
$("body").click(function(){
|
|
|
505
|
$(".mr_calendar_ym:visible").hide();
|
500
|
})
|
506
|
})
|
501
|
|
|
|
502
|
function yearAdd() {
|
507
|
function yearAdd() {
|
503
|
//先给年下拉框赋内容
|
508
|
//先给年下拉框赋内容
|
504
|
var y = new Date().getFullYear();
|
509
|
var y = new Date().getFullYear();
|