[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] projects/inc/class.uistatistics.inc.php, 1.52
From: |
nomail |
Subject: |
[Phpgroupware-cvs] projects/inc/class.uistatistics.inc.php, 1.52 |
Date: |
Tue, 1 Jun 2004 17:34:56 +0200 |
Update of /projects/inc
Modified Files:
Branch:
class.uistatistics.inc.php
date: 2004/06/01 15:34:56; author: ceb; state: Exp; lines: +21 -4
Log Message:
update
=====================================================================
Index: projects/inc/class.uistatistics.inc.php
diff -u projects/inc/class.uistatistics.inc.php:1.51
projects/inc/class.uistatistics.inc.php:1.52
--- projects/inc/class.uistatistics.inc.php:1.51 Wed May 12 21:52:02 2004
+++ projects/inc/class.uistatistics.inc.php Tue Jun 1 15:34:56 2004
@@ -736,6 +736,7 @@
$end =
get_var('end',array('GET','POST'));
$gantt_popup =
get_var('gantt_popup',array('POST','GET'));
$action =
get_var('action',array('POST','GET'));
+ $parent =
get_var('parent',array('POST','GET'));
$screen_width =
get_var('screen_width',array('POST','GET'));
$screen_height =
get_var('screen_height',array('POST','GET'));
@@ -759,6 +760,8 @@
if($gantt_popup)
{
$GLOBALS['phpgw']->template->set_file(array('project_stat' =>
'stats_gant_popup.tpl'));
+
$GLOBALS['phpgw']->template->set_block('project_stat','map','list');
+
$this->set_app_langs();
$gantt_popup = True;
@@ -769,6 +772,8 @@
{
$this->display_app_header();
$GLOBALS['phpgw']->template->set_file(array('project_stat' =>
'stats_gant.tpl'));
+
$GLOBALS['phpgw']->template->set_block('project_stat','map','list');
+
$gantt_popup = False;
}
@@ -820,12 +825,24 @@
//_debug_array($project_array);
- $img_file =
$this->bostatistics->show_graph(array('project_array' => $project_array,'sdate'
=> $start, 'edate' => $end,'width' => $screen_width,
-
'height' => $screen_height,'gantt_popup' => $gantt_popup));
+ $gantt_data =
$this->bostatistics->show_graph(array('project_array' => $project_array,'sdate'
=> $start, 'edate' => $end,'width' => $screen_width,
+
'height' => $screen_height,'gantt_popup' =>
$gantt_popup,'parent' => $parent));
$GLOBALS['phpgw']->template->set_var('lang_close_window',lang('close window'));
$GLOBALS['phpgw']->template->set_var('lang_show_gantt_in_new_window',lang('show
gantt chart in new window'));
-
$GLOBALS['phpgw']->template->set_var('pix_src',$GLOBALS['phpgw_info']['server']['webserver_url']
. SEP . 'phpgwapi' . SEP . 'images' . SEP . $img_file);
+
$GLOBALS['phpgw']->template->set_var('pix_src',$GLOBALS['phpgw_info']['server']['webserver_url']
. SEP . 'phpgwapi' . SEP . 'images' . SEP . $gantt_data['img_file']);
+
+
+ //_debug_array($gantt_data);
+
+ foreach($gantt_data['map'] as $map)
+ {
+
$GLOBALS['phpgw']->template->set_var('coords',$map['map']);
+
+ $link_data['parent'] = $map['project_id'];
+
$GLOBALS['phpgw']->template->set_var('gantt_url',$GLOBALS['phpgw']->link('/index.php',$link_data));
+
$GLOBALS['phpgw']->template->fp('list','map',True);
+ }
$GLOBALS['phpgw']->template->pfp('out','project_stat');
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] projects/inc/class.uistatistics.inc.php, 1.52,
nomail <=