php制作日历
程序员文章站
2022-06-16 13:27:14
日历效果如下图:
calendar.class.php
vcd4kpha+pc9wpgo8chjlignsyxnzpq=="brush:java;">year=isset($_get["ye...
日历效果如下图:
calendar.class.php
喎? f/ware/vc/"="" target="_blank" class="keylink">vcd4kpha+pc9wpgo8chjlignsyxnzpq=="brush:java;">year=isset($_get["year"]) ? $_get["year"] : date("y");
$this->month=isset($_get["month"]) ? $_get["month"] : date("m");
$this->start_weekday=date("w", mktime(0, 0, 0, $this->month, 1, $this->year));
$this->days=date("t", mktime(0, 0, 0, $this->month, 1, $this->year));
}
function out(){
echo '
test.php
table { border:1px solid #050; } .fontb { color:white; background:blue; } th { width:30px; } td,th { height:30px; text-align:center; } form { margin:0px; padding:0px; } out(); ?>
喎?>
下一篇: SQLAUTOINCREMENT字段