aging_report.php File Reference


Variables

 $dcmPage = new DcmmsPage(_("Aging Report"))
 $arrInterval
 $arrIntervalSeconds
 $arrCount
 $form = new HTML_QuickForm("AgingForm")
 $selCount = new HTML_QuickForm_select("count", _("Count:"), $arrCount)
 $selInterval
 $selAdministrativeArea
 $strQuery
 $selSubtype = new HTML_QuickForm_select('subtype', _('Type:'))
 $strQuery
 $numAdministrativeArea = $form->exportValue("administrativearea")
 $strWhere = ""
 $numRowCount = $objTable->getRowCount()
 $strCell = ''
 $Graph = & Image_Graph::factory("Image_Graph", array(800, 600))
 $Arial_v = & $Graph->addNew('font', 'Arial')
 $Plotarea = & $Graph->add(Image_Graph::factory("Image_Graph_Plotarea"))
 $Dataset = & Image_Graph::factory("Image_Graph_Dataset_Trivial")
 $numCount = $form->exportValue("count")
 $strEndTimestamp = $form->exportValue("end_timestamp")
 $strInterval = $form->exportValue("interval")
 $numIntervalSeconds = $arrIntervalSeconds[$strInterval]
 $objResult = pg_query($strQuery)
 $arrRow = pg_fetch_row($objResult)
 $Bar = & Image_Graph::factory("Image_Graph_Plot_Bar", &$Dataset)
 $Plot = & $Plotarea->add(&$Bar)
 $AxisX = & $Plotarea->getAxis(IMAGE_GRAPH_AXIS_X)
 $strTmpPath = tempnam("c:\\tmp\\ms_tmp", "graph").".png"
 $Graph = & Image_Graph::factory("Image_Graph", array(800, 600))
 $Arial_v = & $Graph->addNew('font', 'Arial')
 $Plotarea = & $Graph->add(Image_Graph::factory("Image_Graph_Plotarea"))
 $Dataset = & Image_Graph::factory("Image_Graph_Dataset_Trivial")
 $Graph = & Image_Graph::factory("Image_Graph", array(800, 600))
 $Arial_v = & $Graph->addNew('font', 'Arial')
 $Plotarea = & $Graph->add(Image_Graph::factory("Image_Graph_Plotarea"))
 $Dataset = & Image_Graph::factory("Image_Graph_Dataset_Trivial")

Variable Documentation

$Arial_v = & $Graph->addNew('font', 'Arial')
 

$Arial_v = & $Graph->addNew('font', 'Arial')
 

$Arial_v = & $Graph->addNew('font', 'Arial')
 

$arrCount
 

Initial value:

 array(
  "1" => "1",
  "4" => "4",
  "7" => "7",
  "12" => "12",
  "14" => "14",
  "30" => "30",
  "52" => "52")

$arrInterval
 

Initial value:

 array(
  "hour" => _("hour(s)"),
  "day" => _("day(s)"),
  "month" => _("month(s)"),
  "year" => _("year(s)"))

$arrIntervalSeconds
 

Initial value:

 array(
  "hour" => 3600.0,
  "day" => 86400.0,
  "month" => 2592000.0,
  "year" => 31536000.0)

$arrRow = pg_fetch_row($objResult)
 

$AxisX = & $Plotarea->getAxis(IMAGE_GRAPH_AXIS_X)
 

$Bar = & Image_Graph::factory("Image_Graph_Plot_Bar", &$Dataset)
 

$Dataset = & Image_Graph::factory("Image_Graph_Dataset_Trivial")
 

$Dataset = & Image_Graph::factory("Image_Graph_Dataset_Trivial")
 

$Dataset = & Image_Graph::factory("Image_Graph_Dataset_Trivial")
 

$dcmPage = new DcmmsPage(_("Aging Report"))
 

Todo:
Use PEAR DB.

Refactor Graphing code.

$form = new HTML_QuickForm("AgingForm")
 

$Graph = & Image_Graph::factory("Image_Graph", array(800, 600))
 

$Graph = & Image_Graph::factory("Image_Graph", array(800, 600))
 

$Graph = & Image_Graph::factory("Image_Graph", array(800, 600))
 

$numAdministrativeArea = $form->exportValue("administrativearea")
 

Add where clause if necessary.

$numCount = $form->exportValue("count")
 

$numIntervalSeconds = $arrIntervalSeconds[$strInterval]
 

$numRowCount = $objTable->getRowCount()
 

$objResult = pg_query($strQuery)
 

$Plot = & $Plotarea->add(&$Bar)
 

$Plotarea = & $Graph->add(Image_Graph::factory("Image_Graph_Plotarea"))
 

$Plotarea = & $Graph->add(Image_Graph::factory("Image_Graph_Plotarea"))
 

$Plotarea = & $Graph->add(Image_Graph::factory("Image_Graph_Plotarea"))
 

$selAdministrativeArea
 

Initial value:

 new HTML_QuickForm_select("administrativearea",
  _("Administrative Area:"))

$selCount = new HTML_QuickForm_select("count", _("Count:"), $arrCount)
 

$selInterval
 

Initial value:

 new HTML_QuickForm_select("interval", _("Interval:"),
  $arrInterval)

$selSubtype = new HTML_QuickForm_select('subtype', _('Type:'))
 

$strCell = ''
 

$strEndTimestamp = $form->exportValue("end_timestamp")
 

$strInterval = $form->exportValue("interval")
 

$strQuery
 

Initial value:

 'select dcmmstranslation(\''.$_SESSION['language'].
      '\', description) as description, Subtype from WorkorderSubtype'

$strQuery
 

Initial value:

 "select dcmmstranslation('".$_SESSION["language"].
  "', name), CodedValue from AdministrativeArea"

$strTmpPath = tempnam("c:\\tmp\\ms_tmp", "graph").".png"
 

$strWhere = ""
 


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