$strTime){ $strSQL = "select id from tbl_schedule " . "where scdate = '{$str_scdate}' " . "and sctime_id = {$int_sctime_id} " . "and usr_cd = {$int_usr_cd}"; $resRows = mysql_query( $strSQL ); $intRow = mysql_num_rows($resRows); if( $intRow==0 ){ /* カレンダーの追加 */ p_insert_schedule($str_scdate, $int_sctime_id, $int_limit_num, $int_state, $int_usr_cd, $str_nendo); } } /* 一日追加 */ $intDate = strtotime("+1 days", $intDate); /* ループを終了 */ if( $intDate > $intEndDate ){ break; } } //再読込で追加作業を繰り返さないように同一ページへリダイレクト header("location:http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); endif; ?>
{$strDay}日({$strJpWeek}) | \n"; } $strTime = $Array_Timetable[ $arrSchedule[sctime_id] ]; $strTable .= "\t{$strTime} | \n"; if( $arrSchedule[sctime_id] == $int_CntTime-1 ){ $strTable .= "
---|