phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


From: nomail
Subject: [Phpgroupware-cvs] property/class.uiadmin.php, 1.1.1.13
Date: Sun, 23 May 2004 12:56:00 -0000

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

date: 2004/05/01 16:18:40;  author: sigurdne;  state: Exp;  lines: +163 -0

Log Message:
no message
=====================================================================
Index: property/class.uiadmin.php
diff -u property/class.uiadmin.php:1.1.1.12 property/class.uiadmin.php:1.1.1.13
--- property/class.uiadmin.php:1.1.1.12 Fri Apr 30 17:35:57 2004
+++ property/class.uiadmin.php  Sat May  1 16:18:40 2004
@@ -668,5 +668,168 @@
                        return array('contact_info' => $data);
                }
 
+               function config()
+               {
+                       $this->bocommon->xsl_add_file(array('admin'));
+                       $config         = 
CreateObject($this->currentapp.'_config');
+                       $config->read_repository();
+
+                       $values         = 
$this->bocommon->get_var2('values',array('POST'));
+//html_print_r($values);
+                       if ($values['save'])
+                       {
+                               if ($values['old_files_dir'] != 
$values['files_dir'])
+                               {
+                                       
$config->config_data['files_dir']=$values['files_dir'];
+                                       $receipt['message'][] = array('msg' => 
lang('files dir is updated'));
+                               }
+                               if ($values['old_export_path'] != 
$values['export_path'])
+                               {
+                                       
$config->config_data['export_path']=$values['export_path'];
+                                       $receipt['message'][] = array('msg' => 
lang('export path is updated'));
+                               }
+                               if ($values['old_default_municipal'] != 
$values['default_municipal'])
+                               {
+                                       
$config->config_data['default_municipal']=$values['default_municipal'];
+                                       $receipt['message'][] = array('msg' => 
lang('default municipal is updated'));
+                               }
+                               if ($values['old_fm_tax'] != $values['fm_tax'])
+                               {
+                                       
$config->config_data['fm_tax']=$values['fm_tax'];
+                                       $receipt['message'][] = array('msg' => 
lang('Tax is updated'));
+                               }
+                               if ($values['old_files_url'] != 
$values['files_url'])
+                               {
+                                       
$config->config_data['files_url']=$values['files_url'];
+                                       $receipt['message'][] = array('msg' => 
lang('files url is updated'));
+                               }
+                               if ($values['old_map_url'] != 
$values['map_url'])
+                               {
+                                       
$config->config_data['map_url']=$values['map_url'];
+                                       $receipt['message'][] = array('msg' => 
lang('map url is updated'));
+                               }
+                               if ($values['old_gab_insert_level'] != 
$values['gab_insert_level'])
+                               {
+                                       
$config->config_data['gab_insert_level']=$values['gab_insert_level'];
+                                       $receipt['message'][] = array('msg' => 
lang('gab insert level is updated'));
+                               }
+                               if ($values['old_mailnotification'] != 
$values['mailnotification'])
+                               {
+                                       
$config->config_data['mailnotification']=$values['mailnotification'];
+                                       $receipt['message'][] = array('msg' => 
lang('mailnotification is updated'));
+                               }
+                               if ($values['old_ownernotification'] != 
$values['ownernotification'])
+                               {
+                                       
$config->config_data['ownernotification']=$values['ownernotification'];
+                                       $receipt['message'][] = array('msg' => 
lang('ownernotification is updated'));
+                               }
+                               if ($values['old_assignednotification'] != 
$values['assignednotification'])
+                               {
+                                       
$config->config_data['assignednotification']=$values['assignednotification'];
+                                       $receipt['message'][] = array('msg' => 
lang('assignednotification is updated'));
+                               }
+                               if ($values['old_groupnotification'] != 
$values['groupnotification'])
+                               {
+                                       
$config->config_data['groupnotification']=$values['groupnotification'];
+                                       $receipt['message'][] = array('msg' => 
lang('groupnotification is updated'));
+                               }
+                               if ($values['old_workorder_approval'] != 
$values['workorder_approval'])
+                               {
+                                       
$config->config_data['workorder_approval']=$values['workorder_approval'];
+                                       $receipt['message'][] = array('msg' => 
lang('workorder approval is updated'));
+                               }
+
+                               $config->save_repository();
+
+                       }
+
+
+                       $msgbox_data = $this->bocommon->msgbox_data($receipt);
+
+                       $data = array
+                       (
+
+
+                               'form_action'                           => 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiadmin.config'),
+                               'done_action'                           => 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiadmin.index'),
+                               '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_files_dir'                        => 
lang('files dir (vfs)'),
+                               'lang_files_dir_statustext'     => lang('Enter 
the path to the "home" catalog'),
+                               'value_old_files_dir'           => 
$value_old_files_dir,
+                               'value_files_dir'                       => 
$config->config_data['files_dir'],
+
+                               'lang_export_path'                      => 
lang('Path to Invoice Export file'),
+                               'lang_export_path_statustext'           => 
lang('On windows use: "//computername/share" or "\\\\computername\share"'),
+                               'value_old_export_path'         => 
$value_old_export_path,
+                               'value_export_path'                     => 
$config->config_data['export_path'],
+
+                               'lang_default_municipal'                        
=> lang('default_municipal'),
+                               'lang_default_municipal_statustext'     => 
lang('gab information'),
+                               'value_old_default_municipal'           => 
$value_old_default_municipal,
+                               'value_default_municipal'                       
=> $config->config_data['default_municipal'],
+
+
+                               'lang_fm_tax'                           => 
lang('Tax [%]'),
+                               'lang_fm_tax_statustext'        => lang('Enter 
the tax in per cent'),
+                               'value_old_fm_tax'                      => 
$value_old_fm_tax,
+                               'value_fm_tax'                          => 
$config->config_data['fm_tax'],
+
+                               'lang_files_url'                        => 
lang('Enter the location of files URL.'),
+                               'lang_files_url_statustext'     => 
lang('Example: http://www.domain.com/files'),
+                               'value_old_files_url'           => 
$value_old_files_url,
+                               'value_files_url'                       => 
$config->config_data['files_url'],
+
+                               'lang_map_url'                          => 
lang('Enter MAP URL.'),
+                               'lang_map_url_statustext'       => 
lang('Example: http://www.domain.com/map'),
+                               'value_old_map_url'                     => 
$value_old_map_url,
+                               'value_map_url'                         => 
$config->config_data['map_url'],
+
+                               'lang_gab_insert_level'                         
=> lang('Enter GAB Location Level.'),
+                               'lang_gab_insert_level_statustext'      => 
lang('Default value is: 3'),
+                               'value_old_gab_insert_level'            => 
$value_old_gab_insert_level,
+                               'value_gab_insert_level'                        
=> $config->config_data['gab_insert_level'],
+
+
+                               'lang_mailnotification'                         
=> lang('Mail Notification'),
+                               'lang_mailnotification_statustext'      => 
lang('TTS'),
+                               'value_old_mailnotification'            => 
$value_old_mailnotification,
+                               'value_mailnotification'                        
=> $config->config_data['mailnotification'],
+
+
+                               'lang_disabled'                                 
        => lang('Disabled'),
+                               'lang_ownernotification'                        
=> lang('Owner Notification'),
+                               'lang_ownernotification_statustext'     => 
lang('TTS'),
+                               'value_old_ownernotification'           => 
$config->config_data['ownernotification'],
+                               'ownernotification'                             
        => 
$this->bo->get_notification_list($config->config_data['ownernotification']),
+
+                               'lang_assignednotification'                     
=> lang('Assigned Notification'),
+                               'lang_assignednotification_statustext'  => 
lang('TTS'),
+                               'value_old_assignednotification'                
=> $config->config_data['assignednotification'],
+                               'assignednotification'                          
=> 
$this->bo->get_notification_list($config->config_data['assignednotification']),
+
+                               'lang_groupnotification'                        
=> lang('Group Notification'),
+                               'lang_groupnotification_statustext'     => 
lang('TTS'),
+                               'value_old_groupnotification'           => 
$config->config_data['groupnotification'],
+                               'groupnotification'                             
        => 
$this->bo->get_notification_list($config->config_data['groupnotification']),
+
+                               'lang_workorder_approval'                       
=> lang('Ask for workorder approval by e-mail'),
+                               'lang_workorder_approval_statustext'    => 
'',//lang(''),
+                               'value_old_workorder_approval'          => 
$value_old_workorder_approval,
+                               'value_workorder_approval'                      
=> $config->config_data['workorder_approval']
+                       );
+
+                       $appname                                                
= lang('Configuration');
+                       $function_msg                                   = 
lang('edit config');
+
+                       $GLOBALS['phpgw_info']['flags']['app_header'] = 
lang($this->currentapp) . ' - ' . $appname . ': ' . $function_msg;
+                       //$this->save_sessiondata();
+                       return array('config' => $data);
+               }
+
        }
 ?>




reply via email to

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