$tbody[] = $row; $row = Form::label("family_situation", _("Informações complementares") . ":"); $row .= Form::textArea("family_situation", $formVar["family_situation"], array('rows' => 3, 'cols' => 30)); $tbody[] = $row; $row = Form::label("labour_situation", _("Trabalho dos familiares") . ":"); $row .= Form::textArea("labour_situation", $formVar["labour_situation"], array('rows' => 3, 'cols' => 30)); $tbody[] = $row; $row = Form::label("education", _("Procedência do encaminhamento") . ":"); $row .= Form::textArea("education", $formVar["education"], array('rows' => 3, 'cols' => 30)); $tbody[] = $row; $row = Form::label("insurance_company", _("CID") . ":"); $row .= Form::text("insurance_company", isset($formVar["insurance_company"]) ? $formVar["insurance_company"] : null, array('size' => 30, 'error' => isset($formError["insurance_company"]) ? $formError["insurance_company"] : null)); $tbody[] = $row; $staffQ = new Query_Staff(); $array = null; $array[0] = ""; // to permit null value if ($staffQ->selectType('D')) { while ($staff = $staffQ->fetch()) { $array[$staff->getIdMember()] = $staff->getFirstName() . " " . $staff->getSurname1() . " " . $staff->getSurname2(); } $staffQ->freeResult(); } $staffQ->close(); unset($staffQ); $row = Form::label("id_member", _("Atendente") . ":"); $row .= Form::select("id_member", $array, $formVar["id_member"]); unset($array); $tbody[] = $row; $tfoot = array(Form::button("save", _("Gravar dados")) . Form::generateToken()); echo Form::fieldset($title, $tbody, $tfoot);
*/ $memberType = isset($_GET["type"]) ? Check::safeText($_GET["type"]) : ""; /** * Show page */ $title = _("Staff Members"); require_once "../layout/header.php"; /** * Breadcrumb */ $links = array(_("Admin") => "../admin/index.php", $title => ""); 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);