12){ $nextYear = $year + 1; $nextMonth = "01"; } //달수 감소 if($backMonth < 1){ $backYear = $year - 1; $backMonth = "12"; } $nextYear = empty($nextYear) ? $year : $nextYear; $backYear = empty($backYear) ? $year : $backYear; $backLastDay = date("t",mktime(0,0,0,$backMonth,$day,$backYear)); //이전달 마지막일 $nowLastDay = date("t",mktime(0,0,0,$month,1,$year)); //현재달 마지막일 $Yoil = date("w",mktime(0,0,0,$month,1,$year)); //현재달 1일 요일 $backUrl = '이전'; $nextUrl = '다음'; include "../header.php"; ?>
센터일정
> 센터일정 > 센터일정
이달의 경북상도문화콘텐츠진흥원 1인 창조기업 지원센터 일정입니다.

'; //가로 출력 for($y = 0; $y < 7; $y++){ echo ''; } echo ''; if($viewDay > $nowLastDay) break; } ?>
센터일정
1){ if($viewDay > $nowLastDay){ echo '>'; //echo ''.$nextDay.''; //$nextDay++; } else{ $day = sprintf("%02d",$viewDay); $ymd = $year."-".$month."-".$day; $disEEE = ''; $list_q = $db->query("select pid,subject,`time`,place,content from ".$sqlTb['schedule']." where '".$ymd."' between ymd and eymd order by pid desc",true); if($y == 0){ echo $disEEE.'>
'.$viewDay.'
'; } elseif($y == 6){ echo $disEEE.'>
'.$viewDay.'
'; } else{ echo $disEEE.'>
'.$viewDay.'
'; } echo '
'; if($db->num_rows($list_q)){ while($list = $db->fetch($list_q)){ $phone = explode("-",$list['phone']); echo '
'.cut_string($list['subject'],25,"...").'
'; echo '

'.cut_string($list['subject'],50,"...").'

시간: '.$list['time'].'
장소: '.$list['place'].'
'; if($list['content']){ echo '내용: '.nl2br($list['content']); } echo '

'; } } else{ echo ' '; } $viewDay++; } } else{ echo '>'; //echo ''.$backDay.''; //$backDay++; } echo '