protected function OnInput() { parent::OnInput(); $this->title = 'Информация о персонале'; $this->patient = getPatientInfoById($_GET['id']); $this->medicines = getAllMedicines(); $this->costs = getAllCosts(); $this->procedure = getAllProcedures(); $this->place = getAllPlaces(); $this->doctor = getAllPersonals(); $this->schedule = getScheduleOfPatient($_GET['id']); }
<td><b>Количество</b></td> <td><b>Цена за штуку (руб)</b></td> <td><b>Дата назначения</b></td> <td><b>Пациент</b></td> <td><b>Врач</b></td> <td><b>Сумма (руб)</b></td> </tr> <? $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]->id_patient); ?> <tr align="center"> <td><?php echo $k; ?> </td> <td><?php echo $cost; ?> </td> <td><?php echo $expences[$i]->count; ?> </td> <td><?php
<td><b>Цена за штуку (руб)</b></td> <td><b>Дата назначения</b></td> <td><b>Период</b></td> <td><b>Пациент</b></td> <td><b>Врач</b></td> <td><b>Сумма (руб)</b></td> </tr> <? $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 $medicine; ?> </td> <td><?php echo $expences[$i]->count; ?> </td> <td><?php
}) }); $('#repo').click( function() { var patient_id = $('#patient_id').val(); var month = $('#month').val(); var year = $('#year').val(); window.location.href = "?option=report&id_patient="+patient_id+'&month='+month+'&year='+year; }); }); </script> <? $foto_url = 'img/unknown.jpg'; $patient = getPatientInfoById($_GET['id']); ?> <div class="row"> <div class="col-lg-3" > <div class="contact-block"> <div><img src="<?php echo $foto_url; ?> " alt="" width="100%" class="img"></div> </div> </div> <div class="col-lg-9" > <div class="contact-info"> <b class="info">Ф.И.О:</b> <?php echo $patient->patientname; ?>
<table class="table table-condenced"> <tr> <td><b>#</b></td> <td><b>Мероприятие</b></td> <td><b>Помещение</b></td> <td><b>Время начала</b></td> <td><b>Время конца</b></td> <td><b>Пациент / Группа пациентов</b></td> <td><b>Ответственный</b></td> </tr> <? for($i = 0; $i < count($schedule); $i++) { $k = $i + 1; $procedure = getProcedureNameById($schedule[$i]->id_procedure); $place = getPlaceNameById($schedule[$i]->id_place); $patient = getPatientInfoById($schedule[$i]->id_patient); $personal = getPersonalInfoById($schedule[$i]->id_doctor); $now = date('H:i'); if ($schedule[$i]->start_time <= $now && $schedule[$i]->finish_time >= $now) { ?> <tr class="info"> <td><?php echo $k; ?> </td> <td><?php echo $procedure; ?> </td>
<?php include '../config.php'; function getPatientInfoById($id) { $sql = "SELECT * FROM patients WHERE id='{$id}'"; $res = mysql_query($sql); $result = mysql_fetch_object($res); return $result; } $group = $_POST['group']; $id_group = substr($group, 5); $sql = "SELECT * FROM groupofpatients WHERE id_group = '{$id_group}'"; $res = mysql_query($sql); while ($row = mysql_fetch_object($res)) { $result[] = $row; } $html = "<table class='table table-condenced'><tr><td><b>#</b></td><td><b>ФИО Пациент</b></td></tr>"; for ($i = 0; $i < count($result); $i++) { $k = $i + 1; $patient = getPatientInfoById($result[$i]->id_patient); $html .= "<tr>"; $html .= "<td>{$k}</td>"; $html .= "<td>" . $patient->patientname . "</td>"; $html .= "</tr>"; } $html .= "</table>"; echo $html;
<script> $(document).ready( function() { $('#main').removeClass('active'); $('#patients').addClass('active'); }); </script> <?php $pat = getPatientInfoById($_GET['id_patient']); ?> <div class="row"> <div class="alert alert-info"><b>Расход на пациента на период: <?php echo $month . '/20' . $year; ?> </b></div> </div> <br> <div class="col-lg-12"> <div class="alert alert-warning">Расход препаратов на пациента - <b><?php echo $pat->patientname; ?> </b></div> </div> <div class="col-lg-12"> <table class="table table-condensed"> <tr align="Center" class="info"> <td>#</td> <td><b>Наименование</b></td> <td><b>Количество</b></td> <td><b>Цена за штуку (руб)</b></td>