ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 569


Ignore:
Timestamp:
Nov 1, 2006, 3:27:41 PM (14 years ago)
Author:
takanashi
Message:

スケジュール表示の不具合の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2_4/webapp_biz/modules/biz/page/fh_biz_schedule_view.php

    r565 r569  
    6363        }
    6464
    65         $list += array('rep_type_loc' => $tmp);
    66         $list += array('writer_name' => biz_getMemberNickname($list['c_member_id']));
    67 
     65        $list['rep_type_loc'] = $tmp;
     66        $list['writer_name'] = biz_getMemberNickname($list['c_member_id']);
    6867        $list['begin_time'] = substr($list['begin_time'], 0, 5);
    6968        $list['finish_time'] = substr($list['finish_time'], 0, 5);
     
    9089            $repeat_term = strtotime($repeat_finish) - strtotime($repeat_begin);
    9190
    92             $daycount = $repeat_term / (24 * 60 * 60) / 7;
    93 
     91            $daycount = ceil($repeat_term / (24 * 60 * 60) / 7);
     92            if ($repeat_finish == $repeat_begin) {
     93                $daycount = 1;
     94            }
    9495            $this->set('repeat_begin_date', $repeat_begin);
    9596            $this->set('repeat_term', intval($daycount));
Note: See TracChangeset for help on using the changeset viewer.