Changeset 2894
- Timestamp:
- May 14, 2007, 10:22:55 PM (16 years ago)
- 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 172 172 $repeat_term = strtotime($repeat_finish) - strtotime($repeat_begin); 173 173 174 $daycount = $repeat_term / (24 * 60 * 60) / 7;174 $daycount = $repeat_term / (24 * 60 * 60) / 6; 175 175 176 176 $this->set('repeat_begin_date', $repeat_begin); 177 $this->set('repeat_term', intval($daycount));177 $this->set('repeat_term', ceil($daycount)); 178 178 179 179 $biz_group_count = biz_getGroupCount($target_id); -
OpenPNE/branches/2.8.x/webapp_biz/modules/biz/page/fh_biz_schedule_view.php
r2880 r2894 94 94 $repeat_term = strtotime($repeat_finish) - strtotime($repeat_begin); 95 95 96 $daycount = ceil($repeat_term / (24 * 60 * 60) / 7);96 $daycount = ceil($repeat_term / (24 * 60 * 60) / 6); 97 97 if ($repeat_finish == $repeat_begin) { 98 98 $daycount = 1; 99 99 } 100 100 $this->set('repeat_begin_date', $repeat_begin); 101 $this->set('repeat_term', intval($daycount));101 $this->set('repeat_term', ceil($daycount)); 102 102 } 103 103 -
OpenPNE/branches/2.8.x/webapp_biz/modules/biz/templates/fh_biz_schedule_edit.tpl
r2880 r2894 82 82 <select name='sc_rcount'> 83 83 ({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]})週間 85 85 ({/section}) 86 86 </select>
Note: See TracChangeset
for help on using the changeset viewer.