phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: calendar/templates/idsociety header.inc.php,1.21


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: calendar/templates/idsociety header.inc.php,1.21,1.22
Date: Sat, 17 Aug 2002 00:25:28 -0400

Update of /cvsroot/phpgroupware/calendar/templates/idsociety
In directory subversions:/tmp/cvs-serv26650/calendar/templates/idsociety

Modified Files:
        header.inc.php 
Log Message:
Brings it in line with the new API functions.

Index: header.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/templates/idsociety/header.inc.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** header.inc.php      5 Apr 2002 13:56:08 -0000       1.21
--- header.inc.php      17 Aug 2002 04:25:25 -0000      1.22
***************
*** 23,27 ****
        }
  
!       $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
        $referrer = $refer[2];
  
--- 23,27 ----
        }
  
!       $refer = explode('.',MENUACTION);
        $referrer = $refer[2];
  
***************
*** 46,50 ****
        }
  
!       $today = date('Ymd',time());
  
        $col_width = 12;
--- 46,50 ----
        }
  
!       $today = date('Ymd',$GLOBALS['phpgw']['datetime']->users_localtime);
  
        $col_width = 12;
***************
*** 78,100 ****
        {
                $remainder = 72;
  
!               $hidden_vars = '<input type="hidden" name="from" 
value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
!               if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && 
$GLOBALS['HTTP_GET_VARS']['cal_id'] != 0)
                {
!                       $hidden_vars .= '    <input type="hidden" name="cal_id" 
value="'.$GLOBALS['HTTP_GET_VARS']['cal_id'].'">'."\n";
                }
!               if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && 
$GLOBALS['HTTP_POST_VARS']['keywords'])
                {
!                       $hidden_vars .= '    <input type="hidden" 
name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
                }
!               if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && 
$GLOBALS['HTTP_POST_VARS']['matrixtype'])
                {
!                       $hidden_vars .= '    <input type="hidden" 
name="matrixtype" value="'.$GLOBALS['HTTP_POST_VARS']['matrixtype'].'">'."\n";
                }
!               if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && 
$GLOBALS['HTTP_POST_VARS']['participants'])
                {
!                       for 
($i=0;$i<count($GLOBALS['HTTP_POST_VARS']['participants']);$i++)
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="participants[]" 
value="'.$GLOBALS['HTTP_POST_VARS']['participants'][$i].'">'."\n";
                        }
                }
--- 78,104 ----
        {
                $remainder = 72;
+               $cal_id = get_var('cal_id',Array('GET','DEFAULT'),0);
+               $keywords = get_var('keywords',Array('POST','DEFAULT'),'');
+               $matrixtype = get_var('matrixtype',Array('POST','DEFAULT'),'');
+               $participants = get_var('participants',Array('POST'));
  
!               $hidden_vars = '<input type="hidden" name="from" 
value="'.MENUACTION.'">'."\n";
!               if($cal_id != 0)
                {
!                       $hidden_vars .= '    <input type="hidden" name="cal_id" 
value="'.$cal_id.'">'."\n";
                }
!               if($keywords)
                {
!                       $hidden_vars .= '    <input type="hidden" 
name="keywords" value="'.$keywords.'">'."\n";
                }
!               if($matrixtype)
                {
!                       $hidden_vars .= '    <input type="hidden" 
name="matrixtype" value="'.$matrixtype.'">'."\n";
                }
!               if($participants)
                {
!                       for ($i=0;$i<count($participants);$i++)
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="participants[]" value="'.$participants[$i].'">'."\n";
                        }
                }
***************
*** 117,138 ****
                {
                        $remainder -= 28;
!                       $hidden_vars = '<input type="hidden" name="from" 
value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
!                       if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && 
$GLOBALS['HTTP_GET_VARS']['cal_id'] != 0)
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="cal_id" value="'.$GLOBALS['HTTP_GET_VARS']['cal_id'].'">'."\n";
                        }
!                       if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && 
$GLOBALS['HTTP_POST_VARS']['keywords'])
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
                        }
!                       if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && 
$GLOBALS['HTTP_POST_VARS']['matrixtype'])
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="matrixtype" value="'.$GLOBALS['HTTP_POST_VARS']['matrixtype'].'">'."\n";
                        }
!                       if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && 
$GLOBALS['HTTP_POST_VARS']['participants'])
                        {
!                               for 
($i=0;$i<count($GLOBALS['HTTP_POST_VARS']['participants']);$i++)
                                {
!                                       $hidden_vars .= '    <input 
type="hidden" name="participants[]" 
value="'.$GLOBALS['HTTP_POST_VARS']['participants'][$i].'">'."\n";
                                }
                        }
--- 121,142 ----
                {
                        $remainder -= 28;
!                       $hidden_vars = '<input type="hidden" name="from" 
value="'.MENUACTION.'">'."\n";
!                       if($cal_id)
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="cal_id" value="'.$cal_id.'">'."\n";
                        }
!                       if($keywords)
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="keywords" value="'.$keywords.'">'."\n";
                        }
!                       if($matrixtype)
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="matrixtype" value="'.$matrixtype.'">'."\n";
                        }
!                       if($participants)
                        {
!                               for ($i=0;$i<count($participants);$i++)
                                {
!                                       $hidden_vars .= '    <input 
type="hidden" name="participants[]" value="'.$participants[$i].'">'."\n";
                                }
                        }
***************
*** 157,168 ****
                
if((!isset($GLOBALS['phpgw_info']['server']['deny_user_grants_access']) || 
!$GLOBALS['phpgw_info']['server']['deny_user_grants_access']) && 
count($this->bo->grants) > 0)
                {
!                       $hidden_vars = '    <input type="hidden" name="from" 
value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
!                       if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && 
$GLOBALS['HTTP_POST_VARS']['keywords'])
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
                        }
!                       if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && 
$GLOBALS['HTTP_GET_VARS']['cal_id'] != 0)
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="cal_id" value="'.$GLOBALS['HTTP_GET_VARS']['cal_id'].'">'."\n";
                        }
                        $hidden_vars .= '    <!-- BO Owner = 
'.$this->bo->owner.' -->'."\n";
--- 161,176 ----
                
if((!isset($GLOBALS['phpgw_info']['server']['deny_user_grants_access']) || 
!$GLOBALS['phpgw_info']['server']['deny_user_grants_access']) && 
count($this->bo->grants) > 0)
                {
!                       $hidden_vars = '    <input type="hidden" name="from" 
value="'.MENUACTION.'">'."\n";
!                       if($keywords)
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="keywords" value="'.$keywords.'">'."\n";
                        }
!                       if($cal_id)
                        {
!                               $hidden_vars .= '    <input type="hidden" 
name="cal_id" value="'.$cal_id.'">'."\n";
!                       }
!                       if($matrixtype)
!                       {
!                               $hidden_vars .= '    <input type="hidden" 
name="matrixtype" value="'.$matrixtype.'">'."\n";
                        }
                        $hidden_vars .= '    <!-- BO Owner = 
'.$this->bo->owner.' -->'."\n";
***************
*** 223,230 ****
        }
  
!       $hidden_vars = '    <input type="hidden" name="from" 
value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
!       if(isset($GLOBALS['HTTP_GET_VARS']['date']) && 
$GLOBALS['HTTP_GET_VARS']['date'])
        {
!               $hidden_vars .= '    <input type="hidden" name="date" 
value="'.$GLOBALS['HTTP_GET_VARS']['date'].'">'."\n";
        }
        $hidden_vars .= '    <input type="hidden" name="month" 
value="'.$this->bo->month.'">'."\n";
--- 231,239 ----
        }
  
!       $hidden_vars = '    <input type="hidden" name="from" 
value="'.MENUACTION.'">'."\n";
!       $date = get_vars('date',Array('GET'));
!       if($date)
        {
!               $hidden_vars .= '    <input type="hidden" name="date" 
value="'.$date.'">'."\n";
        }
        $hidden_vars .= '    <input type="hidden" name="month" 
value="'.$this->bo->month.'">'."\n";
***************
*** 235,239 ****
                $hidden_vars .= '    <input type="hidden" name="filter" 
value="'.$this->bo->filter.'">'."\n";
        }
!       $hidden_vars .= '    <input 
name="keywords"'.($GLOBALS['HTTP_POST_VARS']['keywords']?' 
value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'"':'').'>';
  
        $var = Array(
--- 244,248 ----
                $hidden_vars .= '    <input type="hidden" name="filter" 
value="'.$this->bo->filter.'">'."\n";
        }
!       $hidden_vars .= '    <input name="keywords"'.($keywords?' 
value="'.$keywords.'"':'').'>';
  
        $var = Array(





reply via email to

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