Changeset 696 for trunk/expressoCalendar/inc/class.uicalendar.inc.php
- Timestamp:
- 03/12/09 10:43:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoCalendar/inc/class.uicalendar.inc.php
r665 r696 114 114 if (isset ($_REQUEST["uid"])) 115 115 $this->db_obj->user_id = $_REQUEST["uid"]; 116 if (isset ($_REQUEST["cat"])) 117 $this->db_obj->cat_id = $_REQUEST["cat"]; 118 116 119 $fromBo = $this->db_obj->requestDayCal($dayTime); 117 120 … … 155 158 if (isset($_REQUEST["uid"])) 156 159 $this->db_obj->user_id = $_REQUEST["uid"]; 160 if (isset ($_REQUEST["cat"])) 161 $this->db_obj->cat_id = $_REQUEST["cat"]; 157 162 158 163 $dayViewTime -= (date('N', $dayViewTime)%7)*86400; … … 195 200 if (isset($_REQUEST["uid"])) 196 201 $this->db_obj->user_id = $_REQUEST["uid"]; 202 if (isset ($_REQUEST["cat"])) 203 $this->db_obj->cat_id = $_REQUEST["cat"]; 197 204 198 205 $fromBo = $this->db_obj->requestMonthCal($todayTime); … … 234 241 $currentWeekDay = date('w', $monthViewTime); 235 242 236 for($i = $this->workweekstarts+$currentWeekDay; $i <= $this->workweekends+$currentWeekDay; $i++){243 for($i = ($this->workweekstarts+$currentWeekDay)-1; $i <= $this->workweekends+$currentWeekDay; $i++){ 237 244 // Dayid is year+month+dayofMonth (currentDay-(dayofWeek+$i)) 238 245 $retorno.= "<dayofweek><dayname>".$this->daysofweek[$i%7]."</dayname></dayofweek>";
Note: See TracChangeset
for help on using the changeset viewer.