There are many JavaScript-written calendars on the web that read local time and may not be accurate. So want to find a PHP written, can read the server time calendar, but has not been able to find the appropriate, so I try to write a.
Code
$mnow = (isset ($HTTP _get_vars[' month ']) intval ($HTTP _get_vars[' month ']) >0 intval ($HTTP _get_ vars[' month '] $ynow = (isset ($HTTP _get_vars[' year ') intval
/*
Function written by Nelson Neoh @3/2004.
For the those who wants to utilize this code, please do not remove the this remark.
If you had done a enhancement to this code, please post the copy at Http://www.dev-club.com PHP board. Thank.
Function Usage:calendar (month,year)
*/
function Calendar ($MM, $YYYY) {
if ($MM = = "") $MM = Date ("M");
if ($YYYY = = "") $YYYY = Date ("Y");
if (Checkdate ($MM, 1, $
This article mainly introduces the PHP calender (Calendar) code, the need for friends can refer to the The code is as follows: nbsp; nbsp; code is as follows: ; HTML; nbsp; nbsp; return $html; } nbsp;/** nbsp;*nbsp; nbsp;* detection is a 32-bit machine nbsp;* @Author Fc_lamp nbsp;* @blog: fc-lamp.blog.163.com nbsp;*/function Is32 () {nbsp; nbsp; $is = False; nbsp; nbsp; I F (strtotime (' 2039-10-10 ') = F
There are many JavaScript-written calendars on the web that read local time and may not be accurate. So want to find a PHP written, can read the server time calendar, but has not been able to find the appropriate, so I try to write a. Code Copy Box
$i%7==6)? "class=\" calendarw\ "": "" ". > "; if ($i > $f) echo $i-$f; echo "[Ctrl + a All select and copy]
/*
Function written by Nelson Neoh @3/2004.
For the those who wants to utilize this code, please don't remove this remark.
If you have do any enhancement to this code, please post the copy at Http://www.dev-club.com PHP board. Thank you.
Function Usage:calendar (month,year)
*/
function Calendar ($MM, $YYYY) {
if ($MM = = "") $MM = Date ("M");
if ($YYYY = = "") $YYYY = Date ("Y");
if (Checkdate ($MM, 1, $
/*
Function written by Nelson Neoh @3/2004.
For the those who wants to utilize this code, please don't remove this remark.
If you have do any enhancement to this code, please post the copy at Http://www.dev-club.com PHP board. Thank you.
Function Usage:calendar (month,year)
*/
function Calendar ($MM, $YYYY) {
if ($MM = = "") $MM = Date ("M");
if ($YYYY = = "") $YYYY = Date ("Y");
if (Checkdate ($MM, 1, $
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.