protected function OnInput() { parent::OnInput(); $this->costs_id = $_GET['id']; $this->cost_name = getCostNameById($this->costs_id); $this->incomings = CIncomings($this->costs_id); }
protected function OnInput() { parent::OnInput(); $this->cost_id = $_GET['id']; $this->cost_name = getCostNameById($this->cost_id); $this->expences = CExpences($this->cost_id); $this->patients = getAllpatients(); }
protected function OnInput() { parent::OnInput(); $this->id_cost = $_GET['id_med']; $this->cost = getCostNameById($this->id_cost); $this->month = $_GET['month']; $this->year = $_GET['year']; $this->incomings = getCostIncomingsFromDate($this->id_cost, $this->month, $this->year); $this->expences = getCostExpencesFromDate($this->id_cost, $this->month, $this->year); }
$sum = 0; $sum_count = 0; for($i = 0; $i < count($cexpences); $i++) { $k = $i + 1; $sum += $cexpences[$i]->price * $cexpences[$i]->count; $sum_count += $cexpences[$i]->count; $patient = getPatientInfoById($cexpences[$i]->id_patient); ?> <tr align="center"> <td><?php echo $k; ?> </td> <td><?php echo getCostNameById($cexpences[$i]->id_cost); ?> </td> <td><?php echo $cexpences[$i]->count; ?> </td> <td><?php echo $cexpences[$i]->price; ?> </td> <td><?php echo $cexpences[$i]->data; ?> </td> <td><?php