phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: forum/inc class.uiadmin.inc.php,1.1.2.3,1.1.2.4


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: forum/inc class.uiadmin.inc.php,1.1.2.3,1.1.2.4
Date: Tue, 04 Jun 2002 17:06:40 -0400

Update of /cvsroot/phpgroupware/forum/inc
In directory subversions:/tmp/cvs-serv30494

Modified Files:
      Tag: Version-0_9_14-branch
        class.uiadmin.inc.php 
Log Message:
fix

Index: class.uiadmin.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/forum/inc/class.uiadmin.inc.php,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -r1.1.2.3 -r1.1.2.4
*** class.uiadmin.inc.php       4 Jun 2002 14:14:48 -0000       1.1.2.3
--- class.uiadmin.inc.php       4 Jun 2002 21:06:38 -0000       1.1.2.4
***************
*** 129,133 ****
                                                                Array(
                                                                        
'menuaction'    => 'forum.uiadmin.edit_category',
!                                                                       
'cat_id'        => $cat['id']
                                                                )
                                                        ),
--- 129,133 ----
                                                                Array(
                                                                        
'menuaction'    => 'forum.uiadmin.edit_category',
!                                                                       
'cat_id'                => $cat['id']
                                                                )
                                                        ),
***************
*** 135,187 ****
                                                                Array(
                                                                        
'menuaction'    => 'forum.uiadmin.delete_category',
!                                                                       
'cat_id'        => $cat['id']
                                                                )
                                                        )
                                        );
-                               }
  
!                               $this->template->set_var($var);
  
!                               $GLOBALS['tr_color'] = 
$GLOBALS['phpgw_info']['theme']['row_off'];
!                               //Cleaning the ForumB variable because the 
blocks use more than once
!                               $this->template->set_var('ForumB','');
  
!                               $forums = 
$this->bo->get_forums_for_cat($cat['id']);
!                               if(sizeof($forums) != 0)
!                               {
!                                       while(list($key,$forum) = each($forums))
                                        {
!                                               $GLOBALS['tr_color'] = 
$GLOBALS['phpgw']->nextmatchs->alternate_row_color();
!                                               $var = Array(
!                                                       'TR_BG'        => 
$GLOBALS['tr_color'],
!                                                       'SUBCAT_NAME'  => 
$forum['name'],
!                                                       'SUBCAT_DESC'  => 
($forum['descr']?$forum['descr']:'&nbsp;'),
!                                                       'SUBEDIT_LINK' => 
$GLOBALS['phpgw']->link('/index.php',
!                                                                       Array(
!                                                                               
'menuaction'    => 'forum.uiadmin.edit_forum',
!                                                                               
'cat_id'        => $cat['id'],
!                                                                               
'forum_id'      => $forum['id']
!                                                                       )
!                                                               ),
!                                                       'SUBDEL_LINK'  => 
$GLOBALS['phpgw']->link('/index.php',
!                                                                       Array(
!                                                                               
'menuaction'    => 'forum.uiadmin.delete_forum',
!                                                                               
'cat_id'        => $cat['id'],
!                                                                               
'forum_id'      => $forum['id']
                                                                        )
!                                                               )
!                                               );
!                                               $this->template->set_var($var);
!                                               //Parsing the inner block
!                                               
$this->template->fp('ForumB','ForumBlock',true);
                                        }
                                }
-                               // Parsing the outer block
-                               $var = Array(
-                                       'TD_BG'         => 'ffffff',
-                                       'TR_BG'         => $GLOBALS['tr_color']
-                               );
-                               $this->template->set_var($var);
-                               $this->template->fp('CatB','CatBlock',true);
                        }
                        $this->template->pfp('Out','INDEX');
--- 135,188 ----
                                                                Array(
                                                                        
'menuaction'    => 'forum.uiadmin.delete_category',
!                                                                       
'cat_id'                => $cat['id']
                                                                )
                                                        )
                                        );
  
!                                       $this->template->set_var($var);
! 
!                                       $GLOBALS['tr_color'] = 
$GLOBALS['phpgw_info']['theme']['row_off'];
!                                       //Cleaning the ForumB variable because 
the blocks use more than once
!                                       $this->template->set_var('ForumB','');
  
!                                       $forums = 
$this->bo->get_forums_for_cat($cat['id']);
  
!                                       if(sizeof($forums) != 0)
                                        {
!                                               while(list($key,$forum) = 
each($forums))
!                                               {
!                                                       $GLOBALS['tr_color'] = 
$GLOBALS['phpgw']->nextmatchs->alternate_row_color();
!                                                       $var = Array(
!                                                               'TR_BG'        
=> $GLOBALS['tr_color'],
!                                                               'SUBCAT_NAME'  
=> $forum['name'],
!                                                               'SUBCAT_DESC'  
=> ($forum['descr']?$forum['descr']:'&nbsp;'),
!                                                               'SUBEDIT_LINK' 
=> $GLOBALS['phpgw']->link('/index.php',
!                                                                               
Array(
!                                                                               
        'menuaction'    => 'forum.uiadmin.edit_forum',
!                                                                               
        'cat_id'        => $cat['id'],
!                                                                               
        'forum_id'      => $forum['id']
!                                                                               
)
!                                                                       ),
!                                                               'SUBDEL_LINK'  
=> $GLOBALS['phpgw']->link('/index.php',
!                                                                               
Array(
!                                                                               
        'menuaction'    => 'forum.uiadmin.delete_forum',
!                                                                               
        'cat_id'        => $cat['id'],
!                                                                               
        'forum_id'      => $forum['id']
!                                                                               
)
                                                                        )
!                                                       );
!                                                       
$this->template->set_var($var);
!                                                       //Parsing the inner 
block
!                                                       
$this->template->fp('ForumB','ForumBlock',true);
!                                               }
                                        }
+                                       // Parsing the outer block
+                                       $var = Array(
+                                               'TD_BG'         => 'ffffff',
+                                               'TR_BG'         => 
$GLOBALS['tr_color']
+                                       );
+                                       $this->template->set_var($var);
+                                       
$this->template->fp('CatB','CatBlock',true);
                                }
                        }
                        $this->template->pfp('Out','INDEX');




reply via email to

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