Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2088/functions
Modified Files:
list_functions.php
Log Message:
progress on recurrence
Index: list_functions.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/list_functions.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** list_functions.php 13 Dec 2008 23:42:31 -0000 1.18
--- list_functions.php 16 Dec 2008 15:46:24 -0000 1.19
***************
*** 49,57 ****
function list_years() {
! global $getdate, $this_year, $cal, $num_years;
$year_time = strtotime($getdate);
$return = '';
! for ($i=0; $i < $num_years; $i++) {
! $offset = $num_years - $i;
$prev_time = strtotime("-$offset year", $year_time);
$prev_date = date("Ymd", $prev_time);
--- 49,57 ----
function list_years() {
! global $getdate, $this_year, $cal, $phpiCal_config;
$year_time = strtotime($getdate);
$return = '';
! for ($i=0; $i < $phpiCal_config->num_years; $i++) {
! $offset = $phpiCal_config->num_years - $i;
$prev_time = strtotime("-$offset year", $year_time);
$prev_date = date("Ymd", $prev_time);
***************
*** 64,68 ****
$return .= "<option value=\"year.php?cal=$cal&getdate=$getdate_date\" selected=\"selected\">$getdate_year</option>\n";
! for ($i=0; $i < $num_years; $i++) {
$offset = $i + 1;
$next_time = strtotime("+$offset year", $year_time);
--- 64,68 ----
$return .= "<option value=\"year.php?cal=$cal&getdate=$getdate_date\" selected=\"selected\">$getdate_year</option>\n";
! for ($i=0; $i < $phpiCal_config->num_years; $i++) {
$offset = $i + 1;
$next_time = strtotime("+$offset year", $year_time);
|