echo HTML::rule(); /** * Show closed medical problems */ echo HTML::section(2, _("Closed Medical Problems List:")); $problemQ = new Query_Page_Problem(); if (!$problemQ->selectProblems($idPatient, true)) { echo Msg::info(_("No closed medical problems defined for this patient.")); echo HTML::rule(); } while ($problem = $problemQ->fetch()) { echo HTML::section(3, _("Order Number")); echo HTML::para($problem->getOrderNumber()); if ($problem->getIdMember()) { $staffQ = new Query_Staff(); if ($staffQ->select($problem->getIdMember())) { $staff = $staffQ->fetch(); if ($staff) { echo HTML::section(3, _("Attending Physician")); echo HTML::para($staff->getSurname1() . ' ' . $staff->getSurname2() . ', ' . $staff->getFirstName()); } $staffQ->freeResult(); } $staffQ->close(); unset($staffQ); unset($staff); } echo HTML::section(3, _("Opening Date")); echo HTML::para(I18n::localDate($problem->getOpeningDate())); echo HTML::section(3, _("Last Update Date")); echo HTML::para(I18n::localDate($problem->getLastUpdateDate()));
echo HTML::breadcrumb($links, "icon icon_staff"); unset($links); $staffQ = new Query_Staff(); if (!empty($memberType)) { $numRows = $staffQ->selectType($memberType); switch ($memberType) { case 'A': $listTitle = _("Administratives:"); break; case 'D': $listTitle = _("Doctors:"); break; } $viewType = false; } else { $numRows = $staffQ->select(); $listTitle = _("Staff Members") . ":"; $viewType = true; } //Error::debug($_SESSION); echo HTML::para(HTML::link(_("Add New Administrative"), '../admin/staff_new_form.php', array('type' => 'A')) . ' | ' . HTML::link(_("Add New Doctor"), '../admin/staff_new_form.php', array('type' => 'D'))); echo HTML::rule(); echo HTML::section(3, $listTitle); $relatedLinks = ""; if (!empty($memberType)) { $relatedLinks .= HTML::link(_("View all staff members"), '../admin/staff_list.php'); } else { $relatedLinks .= _("View all staff members"); } $relatedLinks .= ' | '; if ($memberType != 'A') {
* Checking permissions */ require_once "../auth/login_check.php"; loginCheck(OPEN_PROFILE_ADMINISTRATOR); require_once "../lib/Form.php"; Form::compareToken($returnLocation); require_once "../model/Query/Staff.php"; /** * Retrieving post var */ $idMember = intval($_POST["id_member"]); /** * Delete staff member */ $staffQ = new Query_Staff(); if (!$staffQ->select($idMember)) { $staffQ->close(); FlashMsg::add(_("That staff member does not exist."), OPEN_MSG_ERROR); header("Location: " . $returnLocation); exit; } $staff = $staffQ->fetch(); if (!$staff) { $staffQ->close(); Error::fetch($staffQ); } $staffQ->delete($staff->getIdMember(), $staff->getIdUser()); $info = trim($staff->getFirstName() . " " . $staff->getSurname1() . " " . $staff->getSurname2()); FlashMsg::add(sprintf(_("Staff member, %s, has been deleted."), $info)); $staffQ->close(); unset($staffQ);
echo HTML::section(3, _("Situação da família")); echo HTML::para(nl2br($patient->getFamilySituation())); } if ($patient->getLabourSituation()) { echo HTML::section(3, _("Condição de trabalho")); echo HTML::para(nl2br($patient->getLabourSituation())); } if ($patient->getEducation()) { echo HTML::section(3, _("Formação")); echo HTML::para(nl2br($patient->getEducation())); } if ($patient->getInsuranceCompany()) { echo HTML::section(3, _("Situação inicial")); echo HTML::para($patient->getInsuranceCompany()); } if ($patient->getIdMember()) { $staffQ = new Query_Staff(); if ($staffQ->select($patient->getIdMember())) { $staff = $staffQ->fetch(); if ($staff) { echo HTML::section(3, _("Atendente")); echo HTML::para($staff->getSurname1() . ' ' . $staff->getSurname2() . ', ' . $staff->getFirstName()); } $staffQ->freeResult(); } $staffQ->close(); unset($staffQ); unset($staff); } unset($patient); require_once "../layout/footer.php";