if ($logical == OPEN_NOT) { $query .= " NOT " . $word[$i] . " AND "; } else { $query .= $word[$i] . " " . $logical . " "; } } } if ($logical == OPEN_NOT) { $query .= " NOT "; } $query .= $word[$num - 1] . ")"; $thead = array(sprintf(_("Search Results From Query: %s"), $query) => array('colspan' => 2)); $options = array(0 => array('align' => 'right')); $tbody = array(); while ($pat = $patQ->fetch()) { $row = $patQ->getCurrentRow() . '.'; $row .= OPEN_SEPARATOR; $row .= HTML::link($pat->getSurname1() . " " . $pat->getSurname2() . ", " . $pat->getFirstName(), '../medical/patient_view.php', array('id_patient' => $pat->getIdPatient())); if ($val != "") { $row .= "<br />" . $key . " "; eval("\$row .= {$val};"); } $tbody[] = explode(OPEN_SEPARATOR, $row); } // end while $patQ->freeResult(); $patQ->close(); unset($patQ); echo HTML::table($thead, $tbody, null, $options); echo $pageLinks; require_once "../layout/footer.php";
$query .= $word[$i] . " " . $logical . " "; } } } if ($logical == OPEN_NOT) { $query .= " NOT "; } $query .= $word[$num - 1] . ")"; echo HTML::insertScript('checkboxes.js'); echo HTML::start('form', array('method' => 'post', 'action' => '../medical/relative_new.php')); echo Form::hidden("id_patient", $idPatient, array('id' => 'r_id_patient')); $thead = array(sprintf(_("Search Results From Query: %s"), $query) => array('colspan' => 2)); $options = array(0 => array('align' => 'right')); $tbody = array(); while ($pat = $patQ->fetch()) { $row = $patQ->getCurrentRow() . '.'; $row .= Form::checkBox("check[]", $pat->getIdPatient(), array('id' => String::numberToAlphabet($patQ->getCurrentRow()))); $row .= OPEN_SEPARATOR; $row .= $pat->getSurname1() . ' ' . $pat->getSurname2() . ' ' . $pat->getFirstName(); if ($val != "") { $row .= "<br />" . $key . " "; eval("\$row .= {$val};"); } $tbody[] = explode(OPEN_SEPARATOR, $row); } // end while $patQ->freeResult(); $patQ->close(); unset($patQ); $tfoot = array(0 => HTML::link(_("Select all"), '#', null, array('id' => 'select_all_checks')) . ' / ' . HTML::link(_("Unselect all"), '#', null, array('id' => 'unselect_all_checks')), 1 => Form::button("add", _("Add selected to Relatives List")) . Form::generateToken()); echo HTML::table($thead, $tbody, $tfoot, $options);