$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; ?> ユーザー管理
{$int_Month}月\n\n"; foreach( $arrData as $arrSchedule ){ if( $arrSchedule[sctime_id] == 0 ){ $intWeek = date("w", strtotime($arrSchedule[scdate])); $strJpWeek = $Array_JP_Week[$intWeek]; $strDay = date("d", strtotime($arrSchedule[scdate])); $strTable .= "\n"; $strTable .= "\t\n"; } $strTime = $Array_Timetable[ $arrSchedule[sctime_id] ]; $strTable .= "\t\n"; if( $arrSchedule[sctime_id] == $int_CntTime-1 ){ $strTable .= "\n"; }//endif }//endforeach $strTable .= "
{$strDay}日({$strJpWeek}){$strTime}
\n"; echo $strTable; ?>