示例#1
0
        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'));
$recordset = null;
while ($problem = $problemQ->fetch()) {
    $row = $problemQ->getCurrentRow();
    eval("\$aux = {$val};");
    $recordset[$row] = $row . OPEN_SEPARATOR . $problem->getIdProblem() . OPEN_SEPARATOR . $problem->getIdPatient() . OPEN_SEPARATOR . $aux . OPEN_SEPARATOR . I18n::localDate($problem->getOpeningDate()) . OPEN_SEPARATOR . I18n::localDate($problem->getClosingDate());
}
// end while
$problemQ->freeResult();
$problemQ->close();
unset($problemQ);
$tbody = array();
foreach ($recordset as $arrKey => $arrValue) {
    $array = explode(OPEN_SEPARATOR, $arrValue, 6);
    $patQ = new Query_Page_Patient();
    if ($patQ->select($array[2])) {
        $pat = $patQ->fetch();
        if (!$pat) {
            $patQ->close();