<?php <br/>//calendar.php<br>//Check if the month and year values exist<br>if ((!$_GET['month']) && (!$_GET['year'])) {<br> $month = date ("n");<br> $year = date ("Y");<br>} else {<br> $month = $_GET['month'];<br> $year = $_GET['year'];<br>}<br>//Calculate the viewed month<br>$timestamp = mktime (0, 0, 0, $month, 1, $year);<br>$monthname = date("F", $timestamp);<br>//Now let's create the table with the proper month<br>?><br><table style="width: 105px; border-collapse: collapse;" border="1" cellpadding="3" cellspacing="0" bordercolor="#000000">
<br> <tr>
<br> <td colspan="7" class="calendartodayoff">
<br> <span style="font-weight: bold;"><?php echo $monthname . " " . $year; ?></span><br> </td>
<br> </tr>
<br> <tr>
<br> <td class="calendartodayoff">
<br> <span style="font-weight: bold;">Su</span><br> </td>
<br> <td class="calendartodayoff">
<br> <span style="font-weight: bold;">M</span><br> </td>
<br> <td class="calendartodayoff">
<br> <span style="font-weight: bold;">Tu</span><br> </td>
<br> <td class="calendartodayoff">
<br> <span style="font-weight: bold;">W</span><br> </td>
<br> <td class="calendartodayoff">
<br> <span style="font-weight: bold;">Th</span><br> </td>
<br> <td class="calendartodayoff">
<br> <span style="font-weight: bold;">F</span><br> </td>
<br> <td class="calendartodayoff">
<br> <span style="font-weight: bold;">Sa</span><br> </td>
<br> </tr>
<br> <?php <br/> $monthstart = date("w", $timestamp);<br> $lastday = date("d", mktime (0, 0, 0, $month + 1, 0, $year));<br> $startdate = -$monthstart;<br> <br> //Figure out how many rows we need.<br> $numrows = ceil (((date("t",mktime (0, 0, 0, $month + 1, 0, $year)) + $monthstart) / 7));<br> <br> //Let's make an appropriate number of rows...<br> for ($k = 1; $k ?><tr>
<?php <br/> //Use 7 columns (for 7 days)...<br> for ($i = 0; $i $startdate++;<br> if (($startdate $lastday)){<br> //If we have a blank day in the calendar.<br> ?><td style="background: #FFFFFF;"> </td>
<?php <br/> } else {<br> <br> if ($startdate == date("j") && $month == date("n") && $year == date("Y")){<br> ?><td class="calendartodayoff" .>',event);" ><?php echo date ("j"); ?>
</td>
<?php <br/> } else {<br> ?><td class="calendaroff" .>',event);" ><?php echo $startdate; ?>
</td>
<?php <br/> }<br> }<br> }<br> ?></tr>
<?php <br/> }<br> ?> <br>
</table>
声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。

ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

AI Hentai Generator
AIヘンタイを無料で生成します。

人気の記事
R.E.P.O.説明されたエネルギー結晶と彼らが何をするか(黄色のクリスタル)
3週間前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最高のグラフィック設定
3週間前By尊渡假赌尊渡假赌尊渡假赌
アサシンのクリードシャドウズ:シーシェルリドルソリューション
2週間前ByDDD
R.E.P.O.誰も聞こえない場合はオーディオを修正する方法
3週間前By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25:Myriseのすべてのロックを解除する方法
3週間前By尊渡假赌尊渡假赌尊渡假赌

ホットツール

AtomエディタMac版ダウンロード
最も人気のあるオープンソースエディター

MantisBT
Mantis は、製品の欠陥追跡を支援するために設計された、導入が簡単な Web ベースの欠陥追跡ツールです。 PHP、MySQL、Web サーバーが必要です。デモおよびホスティング サービスをチェックしてください。

ZendStudio 13.5.1 Mac
強力な PHP 統合開発環境

EditPlus 中国語クラック版
サイズが小さく、構文の強調表示、コード プロンプト機能はサポートされていません

SecLists
SecLists は、セキュリティ テスターの究極の相棒です。これは、セキュリティ評価中に頻繁に使用されるさまざまな種類のリストを 1 か所にまとめたものです。 SecLists は、セキュリティ テスターが必要とする可能性のあるすべてのリストを便利に提供することで、セキュリティ テストをより効率的かつ生産的にするのに役立ちます。リストの種類には、ユーザー名、パスワード、URL、ファジング ペイロード、機密データ パターン、Web シェルなどが含まれます。テスターはこのリポジトリを新しいテスト マシンにプルするだけで、必要なあらゆる種類のリストにアクセスできるようになります。
