phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: notes/inc class.ui.inc.php,1.11,1.12


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: notes/inc class.ui.inc.php,1.11,1.12
Date: Tue, 17 Sep 2002 12:30:10 -0400

Update of /cvsroot/phpgroupware/notes/inc
In directory subversions:/tmp/cvs-serv12543

Modified Files:
        class.ui.inc.php 
Log Message:
some changes

Index: class.ui.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/notes/inc/class.ui.inc.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** class.ui.inc.php    17 Sep 2002 16:11:07 -0000      1.11
--- class.ui.inc.php    17 Sep 2002 16:30:08 -0000      1.12
***************
*** 293,303 ****
                function edit($values=0, $msg = '')
                {
!                       if (is_array($values))
                        {
!                               if ($values['id'] > 0)
                                {
!                                       $data = 
$this->bo->read_single($values['id']);
                                }
! 
                                if ($this->debug)
                                {
--- 293,306 ----
                function edit($values=0, $msg = '')
                {
!                       if (!is_array($values))
                        {
!                               $id = get_var('id',array('POST','GET'));
!                               if ($id > 0)
                                {
!                                       $values = 
$this->bo->read_single($values['id']);
                                }
!                       }
!                       else
!                       {
                                if ($this->debug)
                                {
***************
*** 310,315 ****
                                if ($values['save'])
                                {
!                                       $this->bo->save();
!                                       $msg .= $this->messages[!$this->save() 
? 'saved' : 'error_writing'];
                                }
                                elseif($values['done'])
--- 313,319 ----
                                if ($values['save'])
                                {
!                                       $values['id'] = 
$this->bo->save($values);
! 
!                                       $msg .= $this->messages[$values['id'] > 
0 ? 'saved' : 'error_writing'];
                                }
                                elseif($values['done'])
***************
*** 331,343 ****
                                }*/
                        }
! 
!                       $values = $data;
! 
!                       $select_options = array
!                       (
!                               'cat' => $this->cats
!                       );
! 
!                       if (is_array($values))
                        {
                                $no_button = array
--- 335,339 ----
                                }*/
                        }
!                       if ($values['id'] <= 0)
                        {
                                $no_button = array
***************
*** 354,358 ****
                        }
  
!                       
$this->tpl->exec('notes.edit',$values,$select_options,$no_button,array('id' => 
$data['id']));
                }
  
--- 350,354 ----
                        }
  
!                       
$this->tpl->exec('notes.ui.edit',$values,'',$no_button,array('id' => 
$data['id']));
                }
  





reply via email to

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