<?php
/**
* 取得下周一时的结算区间
* @author ciogao@gmail.com
*/
class Project_View_Helper_TaskNotice
{
/**
* @return string
*/
public function TaskNotice() {
$nextMonday = $this->getNextMonday();
$lastMonday = $this->getLastMonday();
$lastSunday = $this->getLastSunday();
$notice = '下周一('. $nextMonday .')结算'. $lastMonday .'至'. $lastSunday .'的款项。(如遇节假日顺延)';
return $notice;
}
/**
* 取得下个周一
* @internal param $time
*/
private function getNextMonday()
{
return date('m月d日',strtotime('+1 week last monday'));
}
/**
* 取得上个周一
* @return string
*/
private function getLastMonday()
{
if (date('l',time()) == 'Monday') return date('m月d日',strtotime('last monday'));
return date('m月d日',strtotime('-1 week last monday'));
}
/**
* 取得上个周日
* @return string
*/
private function getLastSunday()
{
return date('m月d日',strtotime('last sunday'));
}
}
........酷源科技旗下产品DoeipOA 2008奥运版,经过精心策划、周密准备和紧密的团队协作,于近日正式推出,功能齐全,操作更加人性化,是公司适应市场发展的需求,以用户为导向努力打造的新一代OA产品。采用了.net平台先进的开发技术,酷源OA办公自动化系统拥有信息交流、工作日志、日程安排、网络硬盘、在线QQ交流等超过三十大项基本功能及上百种子功能模块,包括体验版、标准版、企业版、集团版、
0
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号