[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] projects/inc/class.uistatistics.inc.php, 1.49
From: |
nomail |
Subject: |
[Phpgroupware-cvs] projects/inc/class.uistatistics.inc.php, 1.49 |
Date: |
Mon, 10 May 2004 01:07:03 +0200 |
Update of /projects/inc
Modified Files:
Branch:
class.uistatistics.inc.php
date: 2004/05/09 23:07:03; author: ceb; state: Exp; lines: +31 -13
Log Message:
update
=====================================================================
Index: projects/inc/class.uistatistics.inc.php
diff -u projects/inc/class.uistatistics.inc.php:1.48
projects/inc/class.uistatistics.inc.php:1.49
--- projects/inc/class.uistatistics.inc.php:1.48 Wed Mar 24 16:35:15 2004
+++ projects/inc/class.uistatistics.inc.php Sun May 9 23:07:03 2004
@@ -699,9 +699,10 @@
function project_gantt()
{
- $project_id =
get_var('project_id',array('GET','POST'));
- $sdate = get_var('sdate',array('GET','POST'));
- $edate = get_var('edate',array('GET','POST'));
+ $project_id =
get_var('project_id',array('GET','POST'));
+ $sdate =
get_var('sdate',array('GET','POST'));
+ $edate =
get_var('edate',array('GET','POST'));
+ $gantt_popup =
get_var('gantt_popup',array('GET','POST'));
if (! $project_id)
{
@@ -712,20 +713,33 @@
$project_array = explode(',',$project_id);
}
+ $GLOBALS['phpgw_info']['flags']['app_header'] =
lang('projects') . ': ' . lang('gantt chart') . $this->admin_header_info();
+
+ $jscal = CreateObject('phpgwapi.jscalendar'); //
before phpgw_header() !!!
+
+ if($gantt_popup)
+ {
+
$GLOBALS['phpgw']->template->set_file(array('project_stat' =>
'stats_gant_popup.tpl'));
+ $this->set_app_langs();
+ $gantt_popup = True;
+
+
$GLOBALS['phpgw']->template->set_var('jscal_setup_src',$GLOBALS['phpgw']->link('/phpgwapi/js/jscalendar/jscalendar-setup.php'));
+ }
+ else
+ {
+ $this->display_app_header();
+
$GLOBALS['phpgw']->template->set_file(array('project_stat' =>
'stats_gant.tpl'));
+ $gantt_popup = False;
+ }
+
$link_data = array
(
'menuaction' =>
'projects.uistatistics.project_gantt',
'action' => $action,
- 'project_id' => $project_id
+ 'project_id' => $project_id,
+ 'gantt_popup' => $gantt_popup
);
- $GLOBALS['phpgw_info']['flags']['app_header'] =
lang('projects') . ': ' . lang('gantt chart') . $this->admin_header_info();
-
- $jscal = CreateObject('phpgwapi.jscalendar'); //
before phpgw_header() !!!
- $this->display_app_header();
-
-
$GLOBALS['phpgw']->template->set_file(array('project_stat' =>
'stats_gant.tpl'));
-
if(is_array($sdate))
{
$start_array =
$jscal->input2date($sdate['str']);
@@ -744,6 +758,9 @@
$GLOBALS['phpgw']->template->set_var('sdate_select',$jscal->input('sdate[str]',$start));
$GLOBALS['phpgw']->template->set_var('edate_select',$jscal->input('edate[str]',$end));
+
$GLOBALS['phpgw']->template->set_var('gantt_link',$GLOBALS['phpgw']->link('/index.php','menuaction=projects.uistatistics.project_gantt&action='
. $action
+
. '&project_id=' . $project_id .
'&gantt_popup=True'));
+
$GLOBALS['phpgw']->template->set_var('project_id',$project_id);
$GLOBALS['phpgw']->template->set_var('action_url',$GLOBALS['phpgw']->link('/index.php',$link_data));
@@ -751,7 +768,8 @@
$this->bostatistics->show_graph(array('project_array'
=> $project_array,'sdate' => $start, 'edate' => $end));
-
//$GLOBALS['phpgw']->template->set_var('pix_src',$this->show_pix());
+
$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 . 'draw_tmp.png');
$GLOBALS['phpgw']->template->pfp('out','project_stat');
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] projects/inc/class.uistatistics.inc.php, 1.49,
nomail <=