Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>カレンダーサンプル</title>
<style>
body{
margin:100px;
}
td{
border:1px solid #ccc;
padding: 10px;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<h3><?php echo $this_ym;?></h3>
<table class="table">
<tr>
<td>日</td>
<td>月</td>
<td>火</td>
<td>水</td>
<td>木</td>
<td>金</td>
<td>土</td>
</tr>
<?php
foreach ($weeks as $week) {
echo $week;
}
?>
</table>
</div> <!-- /container -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment