phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.uiadmin.inc.php, 1.1.1.2


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.uiadmin.inc.php, 1.1.1.2
Date: Tue, 1 Jun 2004 15:05:28 +0200

Update of /property/inc
Modified Files:
        Branch: 
          class.uiadmin.inc.php

date: 2004/06/01 13:05:28;  author: sigurdne;  state: Exp;  lines: +49 -31

Log Message:
no message
=====================================================================
Index: property/inc/class.uiadmin.inc.php
diff -u property/inc/class.uiadmin.inc.php:1.1.1.1 
property/inc/class.uiadmin.inc.php:1.1.1.2
--- property/inc/class.uiadmin.inc.php:1.1.1.1  Fri Apr 23 13:13:58 2004
+++ property/inc/class.uiadmin.inc.php  Tue Jun  1 13:05:28 2004
@@ -595,6 +595,11 @@
                                        
$GLOBALS['phpgw']->preferences->add($this->currentapp,"approval_from",$values['approval_from'],'user');
                                        $receipt['message'][] = array('msg' => 
lang('Approval from is updated'));
                                }
+                               if ($values['old_default_vendor_category'] != 
$values['default_vendor_category'])
+                               {
+                                       
$GLOBALS['phpgw']->preferences->add($this->currentapp,"default_vendor_category",$values['default_vendor_category'],'user');
+                                       $receipt['message'][] = array('msg' => 
lang('default vendor category is updated'));
+                               }
                                
$GLOBALS['phpgw']->preferences->save_repository();
                        }
 
@@ -603,45 +608,58 @@
                                $prefs = 
$this->bocommon->create_preferences($this->currentapp,$this->filter);
                        }
 
+                       $cats           = CreateObject('phpgwapi.categories');
+                       $cats->app_name = 'fm_vendor';
+
+                       $cat_data       = 
$cats->formatted_xslt_list(array('selected' => 
$prefs['default_vendor_category'],'globals' => True));
+
                        $msgbox_data = $this->bocommon->msgbox_data($receipt);
 
                        $data = array
                        (
-                               'msgbox_data'                   => 
$GLOBALS['phpgw']->common->msgbox($msgbox_data),
-                               'form_action'                   => 
$GLOBALS['phpgw']->link('/index.php','menuaction='.$this->currentapp.'.uiadmin.contact_info'),
-                               'done_action'                   => 
$GLOBALS['phpgw']->link('/admin/index.php'),
-                               'lang_submit'                   => 
lang('submit'),
-                               'lang_save'                             => 
lang('Edit'),
-                               'lang_add_statustext'   => lang('Edit ID'),
-                               'lang_done'                             => 
lang('done'),
-                               'lang_done_statustext'  => lang('Back to 
Admin'),
-
-                               'lang_email_statustext' => lang('Enter the 
email-address for this user'),
-
-                               'lang_user'                             => 
lang('User'),
-                               'lang_email'                    => 
lang('Email'),
-                               'value_old_email'               => 
$prefs['email'],
-                               'value_email'                   => 
$prefs['email'],
-
-                               'lang_phone'                    => 
lang('Phone'),
-                               'value_old_phone'               => 
$prefs['cellphone'],
-                               'value_phone'                   => 
$prefs['cellphone'],
-
-                               'lang_approval_from'            => 
lang('Approval from'),
-                               'value_old_approval_from'       => 
$prefs['approval_from'],
-                               'approval_from'                         => 
$this->bocommon->get_user_list('select',$prefs['approval_from']),
-                               'select_user_name'                      => 
'approval_from',
+                               'msgbox_data'                                   
=> $GLOBALS['phpgw']->common->msgbox($msgbox_data),
+                               'form_action'                                   
=> 
$GLOBALS['phpgw']->link('/index.php','menuaction='.$this->currentapp.'.uiadmin.contact_info'),
+                               'done_action'                                   
=> $GLOBALS['phpgw']->link('/admin/index.php'),
+                               'lang_submit'                                   
=> lang('submit'),
+                               'lang_save'                                     
        => lang('Edit'),
+                               'lang_add_statustext'                   => 
lang('Edit ID'),
+                               'lang_done'                                     
        => lang('done'),
+                               'lang_done_statustext'                  => 
lang('Back to Admin'),
+
+                               'lang_email_statustext'                 => 
lang('Enter the email-address for this user'),
+
+                               'lang_user'                                     
        => lang('User'),
+                               'lang_email'                                    
=> lang('Email'),
+                               'value_old_email'                               
=> $prefs['email'],
+                               'value_email'                                   
=> $prefs['email'],
+
+                               'lang_phone'                                    
=> lang('Phone'),
+                               'value_old_phone'                               
=> $prefs['cellphone'],
+                               'value_phone'                                   
=> $prefs['cellphone'],
+
+                               'lang_approval_from'                    => 
lang('Approval from'),
+                               'value_old_approval_from'               => 
$prefs['approval_from'],
+                               'approval_from'                                 
=> $this->bocommon->get_user_list('select',$prefs['approval_from']),
+                               'select_user_name'                              
=> 'approval_from',
                                'lang_approval_from_statustext' => lang('Select 
the users supervisor'),
 
-                               'lang_user_statustext'  => lang('Select the 
user to edit email'),
-                               'select_user_name'              => 'filter',
-                               'lang_no_user'                  => lang('No 
user'),
-                               'value_user_id'                 => 
$this->filter,
-                               'user_list'                             => 
$this->bocommon->get_user_list('filter',$this->filter)
+                               'lang_default_vendor_category'          => 
lang('default vendor category'),
+                               'value_old_default_vendor_category'     => 
$prefs['default_vendor_category'],
+                               'vendor_category'                               
        => $cat_data['cat_list'],
+                               'select_user_name'                              
        => 'approval_from',
+                               'lang_default_vendor_category_statustext'       
=> lang('Select default vendor category'),
+                               'lang_no_cat'                                   
        => lang('No category'),
+
+
+                               'lang_user_statustext'                  => 
lang('Select the user to edit email'),
+                               'select_user_name'                              
=> 'filter',
+                               'lang_no_user'                                  
=> lang('No user'),
+                               'value_user_id'                                 
=> $this->filter,
+                               'user_list'                                     
        => $this->bocommon->get_user_list('filter',$this->filter)
                        );
 
-                       $appname                                                
= lang('User contact info');
-                       $function_msg                                   = 
lang('edit info');
+                       $appname                                                
        = lang('User contact info');
+                       $function_msg                                           
= lang('edit info');
 
                        $GLOBALS['phpgw_info']['flags']['app_header'] = 
lang($this->currentapp) . ' - ' . $appname . ': ' . $function_msg;
                        
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('contact_info' => $data));




reply via email to

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