wnl2.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>calendar</title>
<meta name="Author" content="zhouyg1992">
<meta name="Description" content="用php实现的一个简单万年历">
<style type="text/css">
table #week {
text-align:center;
background-color:#cccccc;
}
.weekday {color:red}
table tr {
text-align:center;
background-color:#ffffcc;
}
#caption {
font:bold 20px 幼圆,宋体;
}
#query {
width:500px;
height:10px;
margin:50px auto;
text-align:center;
}
</style>
</head>
<?php
//如果您提交了时间则显示您提交年月的日历,否则显示当前月份日历
if ($_GET['month'] && $_GET['year'])
{
$month = $_GET['month'];
$year = $_GET['year'];
}
else
{
$month = date ('m');
$year = date ('Y');
}
$weekid = date ('w',mktime(0,0,0,$month,1,$year));//某年某月第一天是星期几。0-7分别代表星期日-星期六
$countdays = date('t',mktime(0,0,0,$month,1,$year));//某年某个月的天数
$arr_days = array ();//数组$arr_days代表某个月的每一天
//初始化数组$arr_days
for ($i = 0; $i <= 41; $i++)
{
$arr_days[$i] = " ";
}
//给$arr_days数组赋值
for ($i = $weekid, $j = 1; $j <= $countdays; $i++, $j++)
{
$arr_days[$i] = $j;
}
?>
<body>
<form action="wnl2.php">
<div id="query">
后面还有 38 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。