phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] calendar index.php,1.50


From: skwashd
Subject: [Phpgroupware-cvs] calendar index.php,1.50
Date: Sun, 23 Oct 2005 14:57:00 +0200

Update of calendar

Modified Files:
     Branch: MAIN
            index.php lines: +18 -22

Log Message:
now selection is based on contacts not account

====================================================
Index: calendar/index.php
diff -u calendar/index.php:1.49 calendar/index.php:1.50
--- calendar/index.php:1.49     Sun May 15 06:57:37 2005
+++ calendar/index.php  Sun Oct 23 12:57:16 2005
@@ -14,30 +14,26 @@

        /* $Id$ */

-       $phpgw_flags = Array(
-               'currentapp'    =>      'calendar',
-               'noheader'      =>      True,
-               'nonavbar'      =>      True,
-               'noappheader'   =>      True,
-               'noappfooter'   =>      True,
-               'nofooter'      =>      True
-       );
-
-       $GLOBALS['phpgw_info']['flags'] = $phpgw_flags;
-
+       $GLOBALS['phpgw_info']['flags'] = Array
+               (
+                       'currentapp'    => 'calendar',
+                       'noheader'      => True,
+                       'nonavbar'      => True,
+                       'noappheader'   => True,
+                       'noappfooter'   => True,
+                       'nofooter'      => True
+               );
        include('../header.inc.php');
-       if(!is_object($GLOBALS['phpgw']->datetime))
+
+       if ( !isset($GLOBALS['phpgw']->datetime) || 
!is_object($GLOBALS['phpgw']->datetime) )
        {
                $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.datetime');
        }

-       $parms = Array(
-               'menuaction'=> 'calendar.uicalendar.index',
-               'date'          => 
date('Ymd',$GLOBALS['phpgw']->datetime->users_localtime)
-       );
-
-//     echo 'Local DateTime: '.date('Ymd 
H:i:s',$GLOBALS['phpgw']->datetime->users_localtime).'<br />'."\n";
-
-       Header('Location: '.$GLOBALS['phpgw']->link('/index.php',$parms));
-       $GLOBALS['phpgw']->common->phpgw_exit();
+       $cal = createObject('calendar.uicalendar');
+       $cal->index(array
+               (
+                       'menuaction'    => 'calendar.uicalendar.index',
+                       'date'          => 
date('Ymd',$GLOBALS['phpgw']->datetime->users_localtime)
+               ));
 ?>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]