-
Notifications
You must be signed in to change notification settings - Fork 0
/
homnay.php
58 lines (54 loc) · 1.57 KB
/
homnay.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<html>
<head>
<meta charset="utf8">
<title>Ngày này năm xưa</title>
<style>
a {
text-decoration: none;
}
.motdong {
background-image:url("hinh/icon-calendar.png");
background-repeat:no-repeat;
padding-left:17px;
}
</style>
</head>
<body style="font-size:5.2vw;">
<div style="position:relative;">
<div id='mainpage'>
<div id="content">
<?php
date_default_timezone_set("Asia/Ho_Chi_Minh");
require_once("config.php");
$ngay = date("d");
$thang = date("m");
if (isset($_GET['date'])) {
$ngay = substr($_GET['date'],0,2);
$thang = substr($_GET['date'],2,2);
}
if (isset($_GET['notitle'])) echo '<div style="text-align:center;">NGÀY NÀY NĂM XƯA '.$ngay.'/'.$thang.'</div>';
$sql="select * from cacsukien where sudung=1 and ngay=$ngay and thang=$thang order by thutu;";
//echo $sql;
$result = mysql_query($sql);
if ($result) {
if (mysql_num_rows($result)) {
//echo "<ul>";
while ($row = mysql_fetch_array($result)) {
if ($row['nam'])
echo '<div class="motdong">'.$row['nam'].': <a href="http://ngaynaynamxua.info/index.php?id='.$row['id'].'" target="_blank">'.$row['sukien'].'</a></div>';
else
echo '<div class="motdong"><a href="http://ngaynaynamxua.info/index.php?id='.$row['id'].'" target="_blank">'.$row['sukien'].'</a></div>';
}
//echo "</ul>";
}
}
?>
</div>
</div>
<div style="color:white;">.</div>
<div id="footerpart" style="text-align: right;font-size:4vw; position:absolute; right:0; bottom:0;">
<a href="http://ngaynaynamxua.info/" target="_blank">Xem thêm</a>
</div>
</div>
</body>
</html>