phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpbrain/inc class.sokb.inc.php,1.2,1.3 class.u


From: Dave Hall <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpbrain/inc class.sokb.inc.php,1.2,1.3 class.uikb.inc.php,1.3,1.4
Date: Sun, 16 Mar 2003 22:11:57 -0500

Update of /cvsroot/phpgroupware/phpbrain/inc
In directory subversions:/tmp/cvs-serv3528/inc

Modified Files:
        class.sokb.inc.php class.uikb.inc.php 
Log Message:
admin fixes/features  and extra langs

Index: class.sokb.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpbrain/inc/class.sokb.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.sokb.inc.php  17 Mar 2003 02:30:31 -0000      1.2
--- class.sokb.inc.php  17 Mar 2003 03:11:54 -0000      1.3
***************
*** 249,253 ****
                        foreach($faq_ids as $key => $val)
                        {
!                               $this->db->query("UPDATE phpgw_kb_faqs SET 
published = 1 WHERE faq_id = $key");
                                $i++;
                        }
--- 249,253 ----
                        foreach($faq_ids as $key => $val)
                        {
!                               $this->db->query("UPDATE phpgw_kb_faq SET 
published = 1 WHERE faq_id = $key", __LINE__, __FILE__);
                                $i++;
                        }

Index: class.uikb.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpbrain/inc/class.uikb.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** class.uikb.inc.php  17 Mar 2003 02:30:31 -0000      1.3
--- class.uikb.inc.php  17 Mar 2003 03:11:54 -0000      1.4
***************
*** 30,33 ****
--- 30,34 ----
                                                                        
'maint_answer'  => True,
                                                                        
'maint_question'=> True,
+                                                                       
'preview'               => True,
                                                                        'rate'  
                => True,
                                                                        'save'  
                => True,
***************
*** 334,338 ****
                        $this->t->set_var('admin_url', 
$GLOBALS['phpgw']->link('/admin/index.php'));
                        $this->t->set_var('lang_return_to_admin', 
lang('return_to_admin'));
!                               $this->t->set_var('msg', ((strlen($msg) !=0) ? 
lang($msg) : '&nbsp;'));
  
                                $faqs = $this->bo->get_faq_list('', true);      
                        
--- 335,339 ----
                        $this->t->set_var('admin_url', 
$GLOBALS['phpgw']->link('/admin/index.php'));
                        $this->t->set_var('lang_return_to_admin', 
lang('return_to_admin'));
!                               $this->t->set_var('msg', ((strlen($msg) !=0) ? 
$msg : '&nbsp;'));
  
                                $faqs = $this->bo->get_faq_list('', true);      
                        
***************
*** 345,351 ****
                                foreach($faqs as $key => $vals)
                                {
!                                       $this->t->set_var(array('faq_id'        
=> $id,
                                                                                
        'text'          => $vals['text'],
!                                                                               
                'row_bg'                => (($row%2) ? $this->theme['row_on'] : 
$this->theme['row_off'])
                                                                                
        )
                                                                        );
--- 346,357 ----
                                foreach($faqs as $key => $vals)
                                {
!                                       $this->t->set_var(array('faq_id'        
=> $key,
                                                                                
        'text'          => $vals['text'],
!                                                                               
                'row_bg'        => (($row%2) ? $this->theme['row_on'] : 
$this->theme['row_off']),
!                                                                               
                'extra'         => '<a 
href="'.$GLOBALS['phpgw']->link('/index.php', 
!                                                                               
                                                        array('menuaction'      
=> 'phpbrain.uikb.preview',
!                                                                               
                                                                        
'faq_id'        => $key
!                                                                               
                                                                        )
!                                                                               
                                                                ). '" 
target="_blank">'.lang('preview').'</a>'
                                                                                
        )
                                                                        );
***************
*** 368,371 ****
--- 374,383 ----
                        }//end is admin
                }//end maint answers
+               
+               function preview()
+               {
+                       $this->view(false);
+                       $GLOBALS['phpgw']->common->phpgw_exit();
+               }
  
                function rate()
***************
*** 609,616 ****
                }//end show unanswered
  
!               function view()
                {
!                       $GLOBALS['phpgw']->common->phpgw_header();
!                       echo parse_navbar();
                        
                        $faq_id = (isset($_GET['faq_id']) ? 
trim($_GET['faq_id']) : 0);
--- 621,631 ----
                }//end show unanswered
  
!               function view($header = true)
                {
!                       if($header)
!                       {
!                       $GLOBALS['phpgw']->common->phpgw_header();
!                       echo parse_navbar();
!                       }
                        
                        $faq_id = (isset($_GET['faq_id']) ? 
trim($_GET['faq_id']) : 0);





reply via email to

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