Changeset 1086 for trunk/include/calendar_weekly.class.php
- Timestamp:
- Mar 17, 2006, 5:13:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/calendar_weekly.class.php
r1069 r1086 39 39 /** 40 40 * Initialize the calendar 41 * @param string date_field db column on which this calendar works42 41 * @param string inner_sql used for queries (INNER JOIN or normal) 43 * @param array date_components44 42 */ 45 function initialize($ date_field, $inner_sql, $date_components)43 function initialize($inner_sql) 46 44 { 47 parent::initialize($ date_field, $inner_sql, $date_components);45 parent::initialize($inner_sql); 48 46 global $lang; 49 47 $week_no_labels=array(); … … 80 78 * @return boolean false to indicate that thumbnails where not included here 81 79 */ 82 function generate_category_content( $url_base, $view_type)80 function generate_category_content() 83 81 { 84 global $conf ;82 global $conf, $page; 85 83 86 $this->url_base = $url_base; 87 88 assert($view_type==CAL_VIEW_LIST); 89 90 if ( count($this->date_components)==0 ) 84 if ( count($page['chronology_date'])==0 ) 91 85 { 92 86 $this->build_nav_bar(CYEAR); // years 93 87 } 94 if ( count($ this->date_components)==1 )88 if ( count($page['chronology_date'])==1 ) 95 89 { 96 90 $this->build_nav_bar(CWEEK, array()); // week nav bar 1-53 97 91 } 98 if ( count($ this->date_components)==2 )92 if ( count($page['chronology_date'])==2 ) 99 93 { 100 94 $this->build_nav_bar(CDAY); // days nav bar Mon-Sun … … 113 107 function get_date_where($max_levels=3) 114 108 { 115 $date = $this->date_components; 109 global $page; 110 $date = $page['chronology_date']; 116 111 while (count($date)>$max_levels) 117 112 {
Note: See TracChangeset
for help on using the changeset viewer.