workorderlist.php File Reference


Variables

 $dcmPage = new DcmmsPage(_('Workorder'))
 $strQuery
 $intStatus = $arrWorkorderRecord['status']
 break
 $arrRow = pg_fetch_array($result, 0)
 $params ['totalItems'] = $arrRow[0]
 $params ['perPage'] = 10
 $params ['nextImg'] = _('Next >>')
 $params ['prevImg'] = _('<< Back')
 $pager = & Pager::factory($params)
 $data = $pager->getPageData()
 $links = $pager->getLinks()
 $query
 $arreActions
 $objDbTablePager
 $intRowCount = $objDbTablePager->getRowCount()
 $strActionHtml = ''
 break
case __pad3__
case $config = parse_ini_file('conf/dataobject.ini', TRUE)
 $options = $config['DB_DataObject']
 $_DB_DATAOBJECT_FORMBUILDER ['CONFIG']
 $options ['database']
 $objWorkorder = DB_DataObject::factory('Workorder')
 $objWorkorderBuilder = DB_DataObject_FormBuilder::create($objWorkorder)
 $objWorkorderForm = $objWorkorderBuilder->getForm()
 $objRenderer = & new HTML_QuickForm_Renderer_Default()
 break
case map

Variable Documentation

$_DB_DATAOBJECT_FORMBUILDER['CONFIG']
 

Initial value:

 
      $config['DB_DataObject_FormBuilder']

$arreActions
 

Initial value:

 array('Map' => 
      basename(__FILE__).'?PHPSESSID='.
      session_id().'&action=map&WorkorderID=',
      'View' => 'workorderpage.php?'.
      'PHPSESSID='.session_id().'&action=view&id=',
      'Print' => 'print_workorder.php?PHPSESSID='.session_id().
      '&action=print&WorkorderID=', "Maintenance"=>"maintenance.php?".
      "PHPSESSID=".session_id()."&action=viewworkorder&id=",
      "Resource"=>"resource.php?table=Staff&PHPSESSID=".session_id().
      "&action=select_workorder&WorkorderID="      
    )

$arrRow = pg_fetch_array($result, 0)
 

case $config = parse_ini_file('conf/dataobject.ini', TRUE)
 

$data = $pager->getPageData()
 

$dcmPage = new DcmmsPage(_('Workorder'))
 

Todo:
Delete action.

Avoid redirection.

$intRowCount = $objDbTablePager->getRowCount()
 

$intStatus = $arrWorkorderRecord['status']
 

$links = $pager->getLinks()
 

$objDbTablePager
 

Initial value:

 new DbTablePager($dcmPage->postgis->db, $query, 
      array('class' => 'tab_one_panel'))

$objRenderer = & new HTML_QuickForm_Renderer_Default()
 

$objWorkorder = DB_DataObject::factory('Workorder')
 

$objWorkorderBuilder = DB_DataObject_FormBuilder::create($objWorkorder)
 

$objWorkorderForm = $objWorkorderBuilder->getForm()
 

$options['database']
 

Initial value:

 'pgsql://'.$_SESSION['UserName'].':'.
      $_SESSION['Password'].'@'.'localhost/'.$_SESSION['strDataBase']

$options = $config['DB_DataObject']
 

$pager = & Pager::factory($params)
 

$params['prevImg'] = _('<< Back')
 

$params['nextImg'] = _('Next >>')
 

$params['perPage'] = 10
 

$params['totalItems'] = $arrRow[0]
 

$query
 

Initial value:

 'select Workorder.ID as WorkorderID,
      workorder.complainant, dcmmstranslation(\''.$_SESSION['language'].
      '\', WorkorderSubtype.Description) as Type 
      from Workorder
      left join WorkorderSubtype on Workorder.Subtype = WorkorderSubtype.Subtype
      left join Maintenance on Workorder.ID = Maintenance.ID
      where '.$strWhere.
      ' order by Workorder.ID desc'
Todo:
Adjust table to data model.

$strActionHtml = ''
 

$strQuery
 

Initial value:

 $strQuery = "select ID,Complainant, Subtype, Telephone,".
       " LocationDescription, Status, ".
       $dcmPage->postgis->formatTimestamp("ReceivedDate").
       " as ReceivedDate, Note, AdministrativeArea, Team, DcmmsUser, Network". 
       " from Workorder where ID="

case __pad3__
 

break
 

break
 

break
 

case map
 


Generated on Sat Jul 1 21:19:27 2006 for DCMMS by  doxygen 1.4.6-NO