protected function OnInput() { parent::OnInput(); $this->med_id = $_GET['id']; $this->medicine_name = getMedicineNameById($this->med_id); $this->incomings = Incomings($this->med_id); }
protected function OnInput() { parent::OnInput(); $this->med_id = $_GET['id']; $this->medicine_name = getMedicineNameById($this->med_id); $this->expences = Expences($this->med_id); $this->patients = getAllpatients(); }
protected function OnInput() { parent::OnInput(); $this->med_id = $_GET['id_med']; $this->medicine = getMedicineNameById($this->med_id); $this->month = $_GET['month']; $this->year = $_GET['year']; $this->incomings = getIncomingsFromDate($this->med_id, $this->month, $this->year); $this->expences = getExpencesFromDate($this->med_id, $this->month, $this->year); }
$sum = 0; $sum_count = 0; for($i = 0; $i < count($expences); $i++) { $k = $i + 1; $sum += $expences[$i]->price * $expences[$i]->count; $sum_count += $expences[$i]->count; $patient = getPatientInfoById($expences[$i]->patient_id); ?> <tr align="center"> <td><?php echo $k; ?> </td> <td><?php echo getMedicineNameById($expences[$i]->med_id); ?> </td> <td><?php echo $expences[$i]->count; ?> </td> <td><?php echo $expences[$i]->price; ?> </td> <td><?php echo $expences[$i]->data; ?> </td> <td><?php