getPrice('pricedetail',$F('start_time'),$F('end_time'),$F('operate_date4'),$F('operate_date8'),$F('count'),$F('info_id'),$F('room_name'),'<%=rs.getString("cust_id") %>');
});
</script>
Getcombhotelprice´úÂëÈçÏ£º
var chg=true;
function chgFlag(){
chg=true;
}
function getPrice(priceid,sdate,edate,stime,etime,count,info_id,room_name,cust_id){
var obj=document.getElementById(priceid);
if(chg==true){
varurl='/admin/ajax/getcombprice.jsp';
var pars = 'sdate='+sdate;
pars+='&edate='+edate;
pars+='&stime='+stime;
pars+='&etime='+etime;
pars+='&count='+count;
pars+='&info_id='+info_id;
pars+='&room_name='+room_name;
pars+='&cust_id='+cust_id;
chg=false;
obj.innerHTML='Êý¾Ý¼ÓÔØÖÐ...';
var ajax=new Ajax.Request(
url,
{method: 'get',parameters: pars,
onComplete: function(transport){
obj.innerHTML=transport.responseText;
}
});
}
×¢£ºprototypeÀïÃæµÄ²ÎÊýÊÇid $(¡®id¡¯).value='1';
Eval£º½«Ò»¸öÆÕͨµÄ×Ö·û´®°ü×°³ÉÒ»¸öjavascript¶ÔÏó
var date1=eval('new Date('+tmp1[0]+','+tmp1[1]+','+tmp1[2]+')');
var date2=eval('new Date('+tmp2[0]+','+tmp2[1]+','+tmp2[2]+')');
return (date2.valueOf()-date1.valueOf())>0;//·µ»ØºÁÃ뼶
¡¡