<table>
<?php
$time = time();
$week = date("w",$time);
$weeks = array("일","월","화","수","목","금","토");
$sunday = mktime(0, 0, 0,date("m"),date("d") - $week,date("Y"));

for ($i = 0,$day = $sunday;$i < 7; $i++, $day += 86400):
	$date_display = date("Y-m-d (D)",$day); 
	$day_display = $weeks[date("w",$day)];
?>
<tr>
	<td bgcolor='#fffff0'><?=$day_display?></td> 
	<td><a href="#"><?=$date_display?></a></td> 
	<td>일정내용</a></td> 
</tr>
<?php endfor; ?>
</table>
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,