首页 > PHP

PHP自动生成月历代码

时间:2009-05-04 12:07:09  作者:chinaitlab  我要投稿
Linux初探欢迎您的投稿,投放方法请点击这里查看,我们会定期赠送精美小礼品给优秀的投稿作者。海纳百川 取则行远!LinuxGoo欢迎您的到来。
<?php/*Function Written by Nelson Neoh @3/2004.For those who wants to utilize this code, please do not remove this remark.If you have done any enhance......

print("<td>&nbsp;</td>");
}
for($y=$firstDay;$y<7;$y ){
print("<td>$currentDays</td>");
$currentDays ;
}
} elseif($firstDay!=0 && $currentDays==1){
for($z=1;$z<=$firstDay;$z ){
print("<td>&nbsp;</td>");
}
for($y=$firstDay;$y<7;$y ){
print("<td>$currentDays</td>");
$currentDays ;
}
} else {
for($u=1;$u<=7 && $currentDays<=$days;$u ){
print("<td>$currentDays</td>");
$currentDays ;
}
}
print("</tr>");
}
print("</table>");
}
}
?>

如果您需转载 PHP自动生成月历代码,请注明来自LinuxGoo.com,其版权归原作者所有。请广大网友留言时遵纪守法,使用文明用语。如果您在应用中有什么问题,请在下面留言,我们会尽快解答。
来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
相关文章
栏目热门