|
@@ -198,30 +198,15 @@ function initXmlbsel(divid,existVal,width){
|
|
|
|
|
|
tzjhgl.detail.jhnd=function(divid,existVal,width){
|
|
tzjhgl.detail.jhnd=function(divid,existVal,width){
|
|
d = new Date();
|
|
d = new Date();
|
|
- var year1 = d.getFullYear();
|
|
|
|
- var year2 = d.getFullYear()+1;
|
|
|
|
- var year3 = d.getFullYear()+2;
|
|
|
|
- var year4 = d.getFullYear()+3;
|
|
|
|
var str="";
|
|
var str="";
|
|
str+="<select name='jhnd' id='jhndid' class='jhndselectpicker'>";
|
|
str+="<select name='jhnd' id='jhndid' class='jhndselectpicker'>";
|
|
str+="<option></option>";
|
|
str+="<option></option>";
|
|
- if(existVal==year1){
|
|
|
|
- str+=" <option selected='selected'>"+year1+"</option>";
|
|
|
|
- }else{
|
|
|
|
- str+="<option>"+year1+"</option>";
|
|
|
|
- }
|
|
|
|
- if(existVal==year2){
|
|
|
|
- str+=" <option selected='selected'>"+year2+"</option>";
|
|
|
|
- }else{
|
|
|
|
- str+="<option>"+year2+"</option>";
|
|
|
|
- }if(existVal==year3){
|
|
|
|
- str+=" <option selected='selected'>"+year3+"</option>";
|
|
|
|
- }else{
|
|
|
|
- str+="<option>"+year3+"</option>";
|
|
|
|
- }if(existVal==year4){
|
|
|
|
- str+=" <option selected='selected'>"+year4+"</option>";
|
|
|
|
- }else{
|
|
|
|
- str+="<option>"+year4+"</option>";
|
|
|
|
|
|
+ for(var y = 1999; y < d.getFullYear() + 4; y++){
|
|
|
|
+ if(existVal == y){
|
|
|
|
+ str+=" <option selected='selected'>"+y+"</option>";
|
|
|
|
+ }else{
|
|
|
|
+ str+="<option>"+y+"</option>";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
str+="</select>";
|
|
str+="</select>";
|
|
$("#"+divid).empty();
|
|
$("#"+divid).empty();
|
|
@@ -229,7 +214,7 @@ function initXmlbsel(divid,existVal,width){
|
|
$('.jhndselectpicker').selectpicker({
|
|
$('.jhndselectpicker').selectpicker({
|
|
width:width
|
|
width:width
|
|
});
|
|
});
|
|
-}
|
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
|
|
|
|
|