[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 3 require_once(dirname(__FILE__) . SEP . 'class.monitor.inc.php'); 4 5 class ui_viewworkitem extends monitor 6 { 7 8 var $public_functions = array( 9 'form' => true, 10 ); 11 var $itemId; 12 13 function ui_viewworkitem() 14 { 15 parent::monitor('view_workitem'); 16 } 17 18 function form() 19 { 20 $this->show_monitor_tabs($this->class_name); 21 $this->itemId = (int)get_var('itemId', 'any', 0); 22 23 if (!$this->itemId) 24 { 25 $this->message[] = lang('No work item indicated'); 26 $wi = array( 27 'itemId' => 0, 28 'wf_order_id' => 0, 29 'wf_wf_procname' => '', 30 'wf_version' => '', 31 'wf_type' => '', 32 'wf_is_interactive' => '', 33 'wf_name' => '', 34 'wf_started' => 0, 35 'wf_duration' => 0, 36 ); 37 $fname = ''; 38 $lname = ''; 39 } 40 else 41 { 42 $wi =& $this->process_monitor->monitor_get_workitem($this->itemId); 43 44 $GLOBALS['egw']->accounts->get_account_name($wi['wf_user'],$lid,$fname,$lname); 45 } 46 47 $this->t->set_var(array( 48 'wi_itemId' => $wi['wf_item_id'], 49 'wi_orderId' => $wi['wf_order_id'], 50 'wi_wf_procname'=> $wi['wf_wf_procname'], 51 'wi_version' => $wi['wf_version'], 52 'act_icon' => $this->act_icon($wi['wf_type'],$wi['wf_is_interactive']), 53 'wi_name' => $wi['wf_name'], 54 'wi_user' => $fname . ' ' . $lname, 55 'wi_started' => $GLOBALS['egw']->common->show_date($wi['wf_started']), 56 'wi_duration' => $this->time_diff($wi['wf_duration']), 57 )); 58 59 $this->t->set_block('view_workitem', 'block_properties', 'properties'); 60 if ( (empty($wi['wf_properties'])) || (!(count($wi['wf_properties']))) ) 61 { 62 $this->t->set_var('properties', '<tr><td colspan="2" align="center">'. lang('No properties defined') .'</td></tr>'); 63 } 64 else { 65 foreach ($wi['wf_properties'] as $key=>$prop) 66 { 67 $this->t->set_var(array( 68 'key' => $key, 69 'prop_value' => $prop, 70 'class_alternate_row' => $this->nextmatchs->alternate_row_color($tr_color, true), 71 )); 72 $this->t->parse('properties', 'block_properties', true); 73 } 74 } 75 76 $this->fill_general_variables(); 77 $this->finish(); 78 } 79 } 80 ?>
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 |