function GetRow($opt) { global $rs; if (!$rs) { return; } if ($opt == 1) { // Get first row // $rs->MoveFirst(); // NOTE: no need to move position if ($this->GrpCount == 1) { $this->FirstRowData = array(); $this->FirstRowData['Job_Name'] = ewr_Conv($rs->fields('Job_Name'), 200); $this->FirstRowData['Job_Offered_Candidates'] = ewr_Conv($rs->fields('Job_Offered_Candidates'), 20); $this->FirstRowData['dateCreated'] = ewr_Conv($rs->fields('dateCreated'), 133); } } else { // Get next row $rs->MoveNext(); } if (!$rs->EOF) { if ($opt != 1) { if (is_array($this->Job_Name->GroupDbValues)) { $this->Job_Name->setDbValue(@$this->Job_Name->GroupDbValues[$rs->fields('Job_Name')]); } else { $this->Job_Name->setDbValue(ewr_GroupValue($this->Job_Name, $rs->fields('Job_Name'))); } } $this->Job_Offered_Candidates->setDbValue($rs->fields('Job_Offered_Candidates')); $this->dateCreated->setDbValue($rs->fields('dateCreated')); $this->Val[1] = $this->Job_Offered_Candidates->CurrentValue; $this->Val[2] = $this->dateCreated->CurrentValue; } else { $this->Job_Name->setDbValue(""); $this->Job_Offered_Candidates->setDbValue(""); $this->dateCreated->setDbValue(""); } }
function GetRow($opt) { global $rs; if (!$rs) { return; } if ($opt == 1) { // Get first row // $rs->MoveFirst(); // NOTE: no need to move position $this->FirstRowData = array(); $this->FirstRowData['Count28messages_message29'] = ewr_Conv($rs->fields('Count(messages.message)'), 20); $this->FirstRowData['timeta'] = ewr_Conv($rs->fields('timeta'), 135); } else { // Get next row $rs->MoveNext(); } if (!$rs->EOF) { $this->Count28messages_message29->setDbValue($rs->fields('Count(messages.message)')); $this->timeta->setDbValue($rs->fields('timeta')); $this->Val[1] = $this->Count28messages_message29->CurrentValue; $this->Val[2] = $this->timeta->CurrentValue; } else { $this->Count28messages_message29->setDbValue(""); $this->timeta->setDbValue(""); } }