<?php $dtnext="";$dt="";$nexttime="";$tm=strtotime($strStarttime);$tm=$tm+$strStarttime*60;//echo$tm."
\n";//$dt=date('H:i',$tm);for($j=1;$j<=$strInquiryCount;$j++){if(...
$dtnext = "";
$dt = "";
$nexttime = "";
$tm = strtotime($strStarttime);
$tm = $tm + $strStarttime * 60;
//echo $tm."
\n";
//$dt = date('H:i', $tm);
for($j = 1; $j <= $strInquiryCount; $j++) {
if( $j == 1){
$dt = date('H:i', $tm);
$nexttime = $dt;
echo "
\n\r".$strStarttimeTmp."-".$dt."\n\r预约\n\r预约\n\r预约\n\r预约\n\r预约\n\r预约\n\r预约\n\r";}else{
echo "
".$j.":".$nexttime."
";
$tm = strtotime($nexttime);
$tm = $tm + $nexttime * 60;
//echo $tm."
\n";
$dtnext = date('H:i', $tm);
echo $j."--".$nexttime."++".$tm."++".$dtnext."
\n";
echo "
\n\r".$nexttime."-".$dtnext."\n\r预约\n\r预约\n\r预约\n\r预约\n\r预约\n\r预约\n\r预约\n\r";$nexttime = $dtnext;
$tm = "";
}
}
?>
展开