http://www.my97.net/dp/demo/index.htm
两个日历控件级联
前边的日期选择后,后面框的日期+6
<input οnfοcus="WdatePicker({
onpicked:function(){
var f='yyyy-MM-dd';
var d = Date.parseString(this.value,f);
d.setDate(d.getDate() + 6);
$('etimecode').value=d.format(f);
},
maxDate:'%y-%M-{%d-7}'
})"
id='btimecode' name='btimecode'
value="2011-05-16" readonly='true'
class="inputsgl" type='text' size='10'>
至
<input id='etimecode' name='etimecode' value="2011-05-22"
readonly='true' class="inputsgl" type='text' size='10'>