Changeset 1069 for trunk/include/calendar_weekly.class.php
- Timestamp:
- Mar 8, 2006, 4:22:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/calendar_weekly.class.php
r1062 r1069 47 47 parent::initialize($date_field, $inner_sql, $date_components); 48 48 global $lang; 49 $week_no_labels=array(); 50 for ($i=1; $i<=53; $i++) 51 { 52 $week_no_labels[$i] = sprintf( l10n("Week %d"), $i); 53 //$week_no_labels[$i] = $i; 54 } 55 49 56 $this->calendar_levels = array( 50 57 array( … … 54 61 array( 55 62 'sql'=> 'WEEK('.$this->date_field.')+1', 56 'labels' => null63 'labels' => $week_no_labels, 57 64 ), 58 65 array( … … 87 94 if ( count($this->date_components)==1 ) 88 95 { 89 $this->build_nav_bar(CWEEK ); // week nav bar 1-5396 $this->build_nav_bar(CWEEK, array()); // week nav bar 1-53 90 97 } 91 98 if ( count($this->date_components)==2 ) … … 112 119 } 113 120 $res = ''; 114 if (isset($date[CYEAR]) and $date[CYEAR]!= 'any')121 if (isset($date[CYEAR]) and $date[CYEAR]!=='any') 115 122 { 116 123 $y = $date[CYEAR]; … … 118 125 } 119 126 120 if (isset($date[CWEEK]) and $date[CWEEK]!= 'any')127 if (isset($date[CWEEK]) and $date[CWEEK]!=='any') 121 128 { 122 129 $res .= ' AND '.$this->calendar_levels[CWEEK]['sql'].'='.$date[CWEEK]; 123 130 } 124 if (isset($date[CDAY]) and $date[CDAY]!= 'any')131 if (isset($date[CDAY]) and $date[CDAY]!=='any') 125 132 { 126 133 $res .= ' AND '.$this->calendar_levels[CDAY]['sql'].'='.$date[CDAY];
Note: See TracChangeset
for help on using the changeset viewer.