[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.uiworkorder.php, 1.1.1.10
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.uiworkorder.php, 1.1.1.10 |
Date: |
Sun, 23 May 2004 10:19:28 -0000 |
Update of /property
Modified Files:
Branch:
class.uiworkorder.php
date: 2004/04/30 17:35:58; author: sigurdne; state: Exp; lines: +12 -10
Log Message:
no message
=====================================================================
Index: property/class.uiworkorder.php
diff -u property/class.uiworkorder.php:1.1.1.9
property/class.uiworkorder.php:1.1.1.10
--- property/class.uiworkorder.php:1.1.1.9 Fri Apr 30 09:52:25 2004
+++ property/class.uiworkorder.php Fri Apr 30 17:35:58 2004
@@ -421,7 +421,7 @@
'links'
=> $links,
'allow_allrows'
=> false,
'start_record'
=> $this->start,
- 'record_limit'
=> 15, //$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'],
+ 'record_limit'
=> 15, //$GLOBALS['phpgw_data']['user']['preferences']['common']['maxmatchs'],
'num_records'
=> count($workorder_list),
'all_records'
=> $this->bo->total_records,
'link_url'
=> $this->bocommon->link('/index.php',$link_data),
@@ -534,8 +534,8 @@
if ($values['approval'] &&
$values['mail_address'])
{
-
$coordinator_name=$GLOBALS['phpgw_info']['user']['fullname'];
-
$coordinator_email=$GLOBALS['phpgw_info']['user']['preferences'][$this->currentapp]['email'];
+
$coordinator_name=$GLOBALS['phpgw_data']['user']['fullname'];
+
$coordinator_email=$GLOBALS['phpgw_data']['prefs'][$this->currentapp .
'.email'];
$headers = "Return-Path: <".
$coordinator_email .">\r\n";
$headers .= "From: " .
$coordinator_name . "<" . $coordinator_email .">\r\n";
$headers .= "Bcc: " .
$coordinator_name . "<" . $coordinator_email .">\r\n";
@@ -681,7 +681,7 @@
'id' => $id
);
- $dateformat =
strtolower($GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
+ $dateformat =
strtolower($GLOBALS['phpgw_data']['user']['preferences']['common']['dateformat']);
$sep = '/';
$dlarr[strpos($dateformat,'y')] = 'yyyy';
$dlarr[strpos($dateformat,'m')] = 'MM';
@@ -691,17 +691,19 @@
$dateformat= (implode($sep,$dlarr));
-
$supervisor_id=$GLOBALS['phpgw_info']['user']['preferences'][$this->currentapp]['approval_from'];
+
$supervisor_id=$GLOBALS['phpgw_data']['prefs'][$this->currentapp .
'.approval_from'];
$need_approval =
$config->config_data['workorder_approval'];
if ($supervisor_id && ($need_approval=='yes'))
{
- $prefs =
$this->bocommon->create_preferences($this->currentapp,$supervisor_id);
- $supervisor_email = $prefs['email'];
+// $prefs =
$this->bocommon->create_preferences($this->currentapp,$supervisor_id);
+// $supervisor_email = $prefs['email'];
+ $supervisor_email =
$GLOBALS['phpgw']->prefs->get('email',$supervisor_id,$this->currentapp);
+
}
-
$project_status=$GLOBALS['phpgw_info']['user']['preferences'][$this->currentapp]['project_status'];
+
$project_status=$GLOBALS['phpgw_data']['prefs'][$this->currentapp .
'.project_status'];
if(!$values['status'])
{
$values['status']=$project_status;
@@ -847,7 +849,7 @@
'lang_ask_approval'
=> lang('Ask for approval'),
'lang_ask_approval_statustext' =>
lang('Check this to send a mail to your supervisor for approval'),
'value_approval_mail_address' =>
$supervisor_email,
- 'currency'
=> $GLOBALS['phpgw_info']['user']['preferences']['common']['currency']
+ 'currency'
=> $GLOBALS['phpgw_data']['user']['preferences']['common']['currency']
);
$appname
= lang('Workorder');
@@ -1077,7 +1079,7 @@
'edit_action'
=>
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uiworkorder.edit&id='
. $id),
'lang_edit_statustext' =>
lang('Edit this entry workorder'),
'lang_edit'
=> lang('Edit'),
- 'currency'
=> $GLOBALS['phpgw_info']['user']['preferences']['common']['currency'],
+ 'currency'
=> $GLOBALS['phpgw_data']['user']['preferences']['common']['currency'],
'lang_total_records' =>
lang('Total records'),
'total_hours_records' =>
$hour_data['total_hours_records'],
'table_header_hour'
=> $hour_data['table_header'],
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.uiworkorder.php, 1.1.1.10,
nomail <=