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

Changeset 2894


Ignore:
Timestamp:
May 14, 2007, 10:22:55 PM (12 years ago)
Author:
ebihara
Message:

#713,#715:登録済みの繰り返し予定の期間計算が間違っていたのを修正

Location:
OpenPNE/branches/2.8.x/webapp_biz/modules/biz
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.8.x/webapp_biz/modules/biz/page/fh_biz_schedule_edit.php

    r2880 r2894  
    172172        $repeat_term = strtotime($repeat_finish) - strtotime($repeat_begin);
    173173
    174         $daycount = $repeat_term / (24 * 60 * 60) / 7;
     174        $daycount = $repeat_term / (24 * 60 * 60) / 6;
    175175
    176176        $this->set('repeat_begin_date', $repeat_begin);
    177         $this->set('repeat_term', intval($daycount));
     177        $this->set('repeat_term', ceil($daycount));
    178178
    179179        $biz_group_count = biz_getGroupCount($target_id);
  • OpenPNE/branches/2.8.x/webapp_biz/modules/biz/page/fh_biz_schedule_view.php

    r2880 r2894  
    9494            $repeat_term = strtotime($repeat_finish) - strtotime($repeat_begin);
    9595
    96             $daycount = ceil($repeat_term / (24 * 60 * 60) / 7);
     96            $daycount = ceil($repeat_term / (24 * 60 * 60) / 6);
    9797            if ($repeat_finish == $repeat_begin) {
    9898                $daycount = 1;
    9999            }
    100100            $this->set('repeat_begin_date', $repeat_begin);
    101             $this->set('repeat_term', intval($daycount));
     101            $this->set('repeat_term', ceil($daycount));
    102102        }
    103103
  • OpenPNE/branches/2.8.x/webapp_biz/modules/biz/templates/fh_biz_schedule_edit.tpl

    r2880 r2894  
    8282<select name='sc_rcount'>
    8383        ({section name=i loop=$rp_count})
    84                 <option value='({$rp_count[i]})' ({if ($repeat_term + 1) == $rp_count[i]})selected({/if})>({$rp_count[i]})週間
     84                <option value='({$rp_count[i]})' ({if $repeat_term == $rp_count[i]})selected({/if})>({$rp_count[i]})週間
    8585        ({/section})
    8686</select>
Note: See TracChangeset for help on using the changeset viewer.