phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property/inc class.soadmin_location.inc.php,1.2


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/inc class.soadmin_location.inc.php,1.2,1.3
Date: Fri, 30 May 2003 14:55:10 -0400

Update of /cvsroot/phpgroupware/property/inc
In directory subversions:/tmp/cvs-serv14123/inc

Modified Files:
        class.soadmin_location.inc.php 
Log Message:
no message

Index: class.soadmin_location.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/property/inc/class.soadmin_location.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.soadmin_location.inc.php      30 May 2003 10:43:03 -0000      1.2
--- class.soadmin_location.inc.php      30 May 2003 18:55:08 -0000      1.3
***************
*** 463,470 ****
                {
  
!                       $this->db->query("UPDATE fm_location_config set
!                               location_type           = '". 
$values[$column_name]     . "' WHERE column_name='" . $column_name. 
"'",__LINE__,__FILE__);
  
!                       $receipt['message'][] = array('msg'     => 
lang('location config has been edited for') . ' ' . $column_name);
  
                        return $receipt;
--- 463,496 ----
                {
  
!                       $this->db->query("SELECT * FROM fm_location_config  
WHERE column_name='$column_name' ",__LINE__,__FILE__);
!                       $this->db->next_record();
  
!                       $column_info['type']            = 
$this->db->f('datatype');
!                       $column_info['precision']       = 
$this->db->f('precision_');
!                       $column_info['scale']           = $this->db->f('scale');
!                       $column_info['default']         = 
$this->db->f('default_value');
!                       $column_info['nullable']        = 
$this->db->f('nullable');
!                       $location_type                          = 
$this->db->f('location_type');
! 
!                       if(!($location_type==$values[$column_name]))
!                       {
!                               $this->init_process();
! 
!                               
if($this->oProc->AddColumn('fm_location'.$values[$column_name],$column_name, 
$column_info))
!                               {
!                                       $this->oProc->DropColumn('fm_location' 
.$location_type ,'', $column_name);
! 
! 
!                                       $this->db->query("UPDATE 
fm_location_config set
!                                               location_type           = '". 
$values[$column_name]     . "' WHERE column_name='" . $column_name . 
"'",__LINE__,__FILE__);
! 
!                                       $receipt['message'][] = array('msg'     
=> lang('column %1 has been moved',$column_name));
!                               }
!                               else
!                               {
!                                       $receipt['message'][] = array('msg'     
=> lang('column %1 could not be moved',$column_name));
! 
!                               }
!                       }
  
                        return $receipt;





reply via email to

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