Ignore:
Timestamp:
03/12/09 10:43:22 (15 years ago)
Author:
niltonneto
Message:

Implementação do desenvolvedor (amuller).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoCalendar/inc/class.uicalendar.inc.php

    r665 r696  
    114114                if (isset ($_REQUEST["uid"])) 
    115115                        $this->db_obj->user_id = $_REQUEST["uid"]; 
     116                if (isset ($_REQUEST["cat"])) 
     117                        $this->db_obj->cat_id = $_REQUEST["cat"]; 
     118 
    116119                $fromBo = $this->db_obj->requestDayCal($dayTime); 
    117120 
     
    155158                if (isset($_REQUEST["uid"])) 
    156159                        $this->db_obj->user_id = $_REQUEST["uid"]; 
     160                if (isset ($_REQUEST["cat"])) 
     161                        $this->db_obj->cat_id = $_REQUEST["cat"]; 
    157162 
    158163                $dayViewTime -= (date('N', $dayViewTime)%7)*86400; 
     
    195200                if (isset($_REQUEST["uid"])) 
    196201                        $this->db_obj->user_id = $_REQUEST["uid"]; 
     202                if (isset ($_REQUEST["cat"])) 
     203                        $this->db_obj->cat_id = $_REQUEST["cat"]; 
    197204 
    198205                $fromBo = $this->db_obj->requestMonthCal($todayTime); 
     
    234241                $currentWeekDay = date('w', $monthViewTime); 
    235242 
    236                 for($i = $this->workweekstarts+$currentWeekDay; $i <= $this->workweekends+$currentWeekDay; $i++){ 
     243                for($i = ($this->workweekstarts+$currentWeekDay)-1; $i <= $this->workweekends+$currentWeekDay; $i++){ 
    237244                        // Dayid is year+month+dayofMonth (currentDay-(dayofWeek+$i)) 
    238245                        $retorno.= "<dayofweek><dayname>".$this->daysofweek[$i%7]."</dayname></dayofweek>"; 
Note: See TracChangeset for help on using the changeset viewer.