'Browse Tasks','pagename'=>$pagename,'group_project_id'=>$group_project_id,'sectionvals'=>$g->getPublicName()));
?>
';?>
getText('pm_include_grouphtml', 'gantt_chart');?>
getTechnicians();
$tech_id_arr=util_result_column_to_array($res_tech,0);
$tech_id_arr[]='0'; //this will be the 'any' row
$tech_name_arr=util_result_column_to_array($res_tech,1);
$tech_name_arr[]=$Language->getText('pm','tech_any');
if ( empty($_assigned_to) ) {
$_assigned_to='0';
}
$tech_box=html_build_select_box_from_arrays ($tech_id_arr,$tech_name_arr,'_assigned_to',$_assigned_to,true,$Language->getText('pm','unassigned'));
/*
creating a custom category box which includes "any" and "none"
*/
$res_cat=$pg->getCategories();
$cat_id_arr=util_result_column_to_array($res_cat,0);
$cat_id_arr[]='0'; //this will be the 'any' row
$cat_name_arr=util_result_column_to_array($res_cat,1);
$cat_name_arr[]=$Language->getText('pm','cat_any');
$cat_box=html_build_select_box_from_arrays ($cat_id_arr,$cat_name_arr,'_category_id',$_category_id,true,$Language->getText('pm','none').$Language->getText('pm','none'));
/*
Creating a custom sort box
*/
$title_arr=array();
$title_arr[]=$Language->getText('pm','task_id');
$title_arr[]=$Language->getText('pm','summary');
$title_arr[]=$Language->getText('pm','start_date');
$title_arr[]=$Language->getText('pm','end_date');
$title_arr[]=$Language->getText('pm','percent_complete');
$order_col_arr=array();
$order_col_arr[]='project_task_id';
$order_col_arr[]='summary';
$order_col_arr[]='start_date';
$order_col_arr[]='end_date';
$order_col_arr[]='percent_complete';
$order_box=html_build_select_box_from_arrays ($order_col_arr,$title_arr,'_order',$_order,false);
$dispres_title_arr=array();
$dispres_title_arr[]=$Language->getText('pm_ganttpage','months');
$dispres_title_arr[]=$Language->getText('pm_ganttpage','weeks');
$dispres_title_arr[]=$Language->getText('pm_ganttpage','days');
if (!$_resolution) {
$_resolution=$Language->getText('pm_ganttpage','months');
}
$dispres_box=html_build_select_box_from_arrays ($dispres_title_arr,$dispres_title_arr,'_resolution',$_resolution,false);
/*
Graph Size Box
*/
$size_col_arr=array();
$size_col_arr[]=640;
$size_col_arr[]=800;
$size_col_arr[]=1024;
$size_col_arr[]=1600;
$size_title_arr=array();
$size_title_arr[]='640 x 480';
$size_title_arr[]='800 x 600';
$size_title_arr[]='1024 x 768';
$size_title_arr[]='1600 x 1200';
if (!$_size) {
$_size='800';
}
$size_box=html_build_select_box_from_arrays ($size_col_arr,$size_title_arr,'_size',$_size,false);
if (!$_status) {
$_status='100';
}
/*
Show the new pop-up boxes to select assigned to and/or status
*/
global $_size;
if ($_size==640) {
$gantt_width=740;
$gantt_height=620;
} elseif ($_size==1024) {
$gantt_width=1084;
$gantt_height=920;
} elseif ($_size==1600) {
$gantt_width=1660;
$gantt_height=1340;
} else {
$gantt_width=860;
$gantt_height=740;
}
//echo "XX $_size $gantt_width $gantt_height XX";
?>
';
echo '';
//pm_footer(array());
?>