Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
<html>
<head>
<meta charset="utf-8">
<title>PHP ders 2</title>
<style>
.gun{
font-size:22px;
color: cornflowerblue;
font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", "serif";
text-align: center;
font-weight: bold;
}
.bugun {
background: #A7F0C3;
}
.aylar{
padding: 5px 10px 5px 10px;
margin: 2px;
background-color: azure;
text-decoration: none;
color: darkslategray;
font-size: 18px;
}
.aylar:hover{
background-color:aqua;
}
</style>
</head>
<body>
<br>
<br>
<?php
$tarih = date("Y-m-d");
if(isset($_GET["tarih"])){
$tarih = $_GET["tarih"];
}
$onceki_tarih = date("Y-m-d", strtotime($tarih . " -1 month"));
$sonraki_tarih = date("Y-m-d", strtotime($tarih . " +1 month"));
function fn_haftanin_gunu($gun){
$bugun = date("w");
$gun_adi = "";
switch($gun){
case "0":
$gun_adi = "Pazar";
break;
case "1":
$gun_adi = "Pazartesi";
break;
case "2":
$gun_adi = "Salı";
break;
case "3":
$gun_adi = "Çarşamba";
break;
case "4":
$gun_adi = "Perşembe";
break;
case "5":
$gun_adi = "Cuma";
break;
case "6":
$gun_adi = "Cumartesi";
break;
}
if($gun==$bugun)
$gun_adi = "<span style='color:red; padding:5px; border:1px solid brown'>$gun_adi </span>";
return $gun_adi;
}
function fn_ay_adi($ay){
$ay = 1*$ay;
switch($ay){
case "1":
$ay_adi = "Ocak";
break;
case "2":
$ay_adi = "Şubat";
break;
case "3":
$ay_adi = "Mart";
break;
case "4":
$ay_adi = "Nisan";
break;
case "5":
$ay_adi = "Mayıs";
break;
case "6":
$ay_adi = "Haziran";
break;
case "7":
$ay_adi = "Temmuz";
break;
case "8":
$ay_adi = "Ağustos";
break;
case "9":
$ay_adi = "Eylül";
break;
case "10":
$ay_adi = "Ekim";
break;
case "11":
$ay_adi = "Kasım";
break;
case "12":
$ay_adi = "Aralık";
break;
}
return $ay_adi;
}
list($yil,$ay,$gun) = explode("-",$tarih);
$d=cal_days_in_month(CAL_GREGORIAN,$ay,$yil);
?>
<br>
<br>
<?php
$ayin_ilk_gunu = date("Y")."-$ay-01";
$bosluk = date('w', strtotime($ayin_ilk_gunu));
?> <h1> <?php echo fn_ay_adi($ay). " ". $yil?> </h1>
<a href="?tarih=<?php echo $onceki_tarih?>"> Önceki ay</a>
<a href="?tarih=<?php echo $sonraki_tarih?>"> sonraki ay</a>
<table cellpadding="5" cellspacing="0" border="1" >
<tr>
<?php for($i=0;$i<7;$i++){?>
<th><?php echo fn_haftanin_gunu($i);?></th>
<?php }?>
</tr>
<tr><?php
$k = 0;
for($b=0;$b<$bosluk;$b++){
echo "<td> </td>";
$k++;
}
if($k%7==0) echo "</tr><tr>";
for($i=1;$i<=$d;$i++){
if(date("d")==$i && date("m")==$ay)
$b_class = "bugun";
else
$b_class = "";
?>
<td class="gun <?php echo $b_class?>"> <?php echo $i;?></td>
<?php $k++;
if($k%7==0) echo "</tr><tr>";
}?>
</tr>
</table>
<?php
?>
</body>
</html>
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team