Commit 72860410 authored by 君塚 悠's avatar 君塚 悠

プログラム修正(calenda.php:変数の修正)

parent b38a3662
...@@ -23,10 +23,10 @@ $last_day = date("t",$current); ...@@ -23,10 +23,10 @@ $last_day = date("t",$current);
<th>木</th><th>金</th><th>土</th> <th>木</th><th>金</th><th>土</th>
</tr> </tr>
<?php <?php
for ($i = 1; $i <= first_day + $last_day; $i++) { for ($i = 1; $i <= $first_day + $last_day; $i++) {
if ($i % 7 == 1) {print ("<tr>");} if ($i % 7 == 1) {print ("<tr>");}
if($i > $first_day) { if($i > $first_day) {
print("<td>".($i-first)."</td>"); print("<td>".($i-$first_day)."</td>");
} else { } else {
print("<td> & nbsp;</td>"); print("<td> & nbsp;</td>");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment