• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PHP开发记录
PHP以及web前端(ajax,js,jquery等)
博客园 首页 新随笔 管理
上一页 1 2 3 4 5 6 7 8 ··· 83 下一页

2011年8月29日

计算一段日期内的周末天数(星期六,星期日总和
摘要: function get_weekend_days($start_date,$end_date){ if (strtotime($start_date) > strtotime($end_date)) list($start_date, $end_date) = array($end_date, $start_date); $start_reduce = $end_add = 0; $start_N = date('N',strtotime($start_date)); $start_reduce = ($start_N == 7) ? 1 : 0; $end_N = d 阅读全文
posted @ 2011-08-29 08:58 corange 阅读(429) 评论(0) 推荐(0)
 
 

2011年8月10日

根据指定两个日期计算出这些时间内有多少天是周末 php程序函数代码
摘要: $alldays = intval((sstrtotime($_POST['dayb']) - sstrtotime($_POST['daya'])) / 3600 / 24) + 1; //总天数 $weeks = intval($alldays / 7); //纯周数 $mdays = $alldays - 7 * $weeks; //除了纯周数外,余下那周的天数 if($mdays == '0') { $_POST['psdays'] = 5 * $weeks; $_POST['zmdays'] = 2 * 阅读全文
posted @ 2011-08-10 10:16 corange 阅读(494) 评论(0) 推荐(0)
 
 

2011年8月8日

计算一段日期内的周末天数(星期六,星期日总和)(
摘要: function get_weekend_days($start_date,$end_date){ if (strtotime($start_date) > strtotime($end_date)) list($start_date, $end_date) = array($end_date, $start_date); $start_reduce = $end_add = 0; $start_N = date('N',strtotime($start_date)); $start_reduce = ($start_N == 7) ? 1 : 0; $end_N = d 阅读全文
posted @ 2011-08-08 22:27 corange 阅读(694) 评论(0) 推荐(0)
 
 

2011年7月21日

highslide使用实例,点击图片放大效果,再次点击缩小
摘要: 演示地址:http://www.corange.cn/demo/3645/index.html 看到一个网站一个很漂亮的效果,在源码里面里面找了一圈,发现是highslide,然后经过研究后可以使用了,这边放一个例子。 点击图片放大效果,再次点击缩小。 <script type="text/javascript" src="highslide/highslide.js"></script> <link rel="stylesheet" type="text/css" href=&quo 阅读全文
posted @ 2011-07-21 09:04 corange 阅读(377) 评论(0) 推荐(0)
 
 

2011年7月12日

Jquery+CSS打造的泡沫弹出框式的侧边蓝色导航菜单
摘要: 演示地址:http://www.corange.cn/demo/3778/index.html 截图效果 代码请直接到演示位置查看源码 原文地址:http://www.corange.cn/archives/2011/06/3778.html 阅读全文
posted @ 2011-07-12 13:32 corange 阅读(480) 评论(0) 推荐(1)
 
 
上一页 1 2 3 4 5 6 7 8 ··· 83 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3