<?php
class calendar{
/*
* 日历
*
* @作者:sports98
* email:flyruns@hotmail.com
* @版本:v1.0
*/
var $year,$month,$day;
var $week=array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
var $_month=array(
"01"=>"一月",
"02"=>"二月",
"03"=>"三月",
"04"=>"四月",
"05"=>"五月",
"06"=>"六月",
"07"=>"七月",
"08"=>"八月",
"09"=>"九月",
"10"=>"十月",
"11"=>"十一月",
"12"=>"十二月"
);
//设置年份
function setyear($year){
$this->year=$year;
}
//获得年份
function getyear(){
return $this->year;
}
//设置月份
function setmonth($month){
$this->month=$month;
}
//获得月份
function getmonth(){
return $this->month;
}
//设置日期
function setday($day){
$this->day=$day;
}
//获得日期
function getday(){
return $this->day;
}
//打印日历
function out(){
$this->_env();
$week=$this->getweek($this->year,
| 对此文章发表了评论 |
