[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 3 require_once(dirname(__FILE__) . SEP . 'class.bo_user_forms.inc.php'); 4 5 class ui_userprocesses extends bo_user_forms 6 { 7 var $public_functions = array( 8 'form' => true 9 ); 10 11 //communication with the workflow engine 12 var $GUI; 13 14 function ui_userprocesses() 15 { 16 parent::bo_user_forms('user_processes'); 17 $this->GUI =& CreateObject('workflow.workflow_gui'); 18 } 19 20 function form() 21 { 22 $this->t->set_block('user_processes', 'block_table', 'table'); 23 24 $this->link_data = array( 25 'find' => $this->search_str, 26 ); 27 28 $processes =& $this->GUI->gui_list_user_processes($GLOBALS['egw_info']['user']['account_id'], $this->start, $this->offset, $this->sort_mode, $this->search_str, ''); 29 30 // fill the table 31 $this->fill_table($processes['data'],$processes['cant']); 32 $this->show_user_tabs($this->class_name); 33 34 //collect error messages 35 $this->message[] = $this->GUI->get_error(false, _DEBUG); 36 37 $this->fill_form_variables(); 38 $this->finish(); 39 } 40 41 function fill_table(&$processes_list_data, $total_number) 42 { 43 //warning header names are header_[name or alias of the column in the query without a dot 44 //this is necessary for sorting 45 $header_array = array( 46 'wf_procname' => lang('Name'), 47 ); 48 $this->fill_nextmatchs($header_array,$total_number); 49 50 foreach ($processes_list_data as $process_data) 51 { 52 $this->t->set_var(array( 53 'link_wf_procname' => $GLOBALS['egw']->link('/index.php', 'menuaction=workflow.ui_useractivities.form&filter_process='. $process_data['wf_p_id']), 54 'item_wf_procname' => $process_data['wf_procname'], 55 'item_version' => $process_data['wf_version'], 56 'link_activities' => $GLOBALS['egw']->link('/index.php', 'menuaction=workflow.ui_useractivities.form&filter_process='. $process_data['wf_p_id']), 57 'item_activities' => $process_data['wf_activities'], 58 'link_instances' => $GLOBALS['egw']->link('/index.php', 'menuaction=workflow.ui_userinstances.form&filter_process='. $process_data['wf_p_id']), 59 'item_instances' => $process_data['wf_instances'], 60 'color_line' => $this->nextmatchs->alternate_row_color($tr_color, true), 61 )); 62 $this->t->parse('table', 'block_table', true); 63 } 64 if (!($total_number)) $this->t->set_var('table', '<tr><td colspan="3" align="center">'. lang('There are no processes available') .'</td></tr>'); 65 } 66 67 } 68 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |