Esempio n. 1
0
            echo htmlspecialchars($arr[0], ENT_NOQUOTES);
            ?>
</b></span>
            <a href="javascript:;" class="small" onclick="load_location('stats_full.php?active=all&category=" . $key . "')">
            (<b><?php 
            echo htmlspecialchars(xl('Manage'), ENT_NOQUOTES);
            ?>
</b>)
            </a>
            </td>
            </tr>
        <?php 
        }
        echo "<table>";
        if (sqlNumRows($pres) == 0) {
            if (getListTouch($pid, $key)) {
                // Data entry has happened to this type, so can display an explicit None.
                echo "  <tr><td colspan='{$numcols}' class='text'>&nbsp;&nbsp;" . htmlspecialchars(xl('None'), ENT_NOQUOTES) . "</td></tr>\n";
            } else {
                // Data entry has not happened to this type, so show 'Nothing Recorded"
                echo "  <tr><td colspan='{$numcols}' class='text'>&nbsp;&nbsp;" . htmlspecialchars(xl('Nothing Recorded'), ENT_NOQUOTES) . "</td></tr>\n";
            }
        }
        while ($row = sqlFetchArray($pres)) {
            // output each issue for the $ISSUE_TYPE
            if (!$row['enddate'] && !$row['returndate']) {
                $rowclass = "noend_noreturn";
            } else {
                if (!$row['enddate'] && $row['returndate']) {
                    $rowclass = "noend";
                } else {
Esempio n. 2
0
</th>
    <th><?php 
    echo htmlspecialchars(xl('Enc'), ENT_NOQUOTES);
    ?>
</th>
    </tr>
  <?php 
    // collect issues
    $condition = '';
    if ($GLOBALS['erx_enable'] && $GLOBALS['erx_medication_display'] && $focustype == 'medication') {
        $condition .= "and erx_uploaded != '1' ";
    }
    $pres = sqlStatement("SELECT * FROM lists WHERE pid = ? AND type = ? {$condition}" . "ORDER BY begdate", array($pid, $focustype));
    // if no issues (will place a 'None' text vs. toggle algorithm here)
    if (sqlNumRows($pres) < 1) {
        if (getListTouch($pid, $focustype)) {
            // Data entry has happened to this type, so can display an explicit None.
            echo "<tr><td class='text'><b>" . htmlspecialchars(xl("None"), ENT_NOQUOTES) . "</b></td></tr>";
        } else {
            // Data entry has not happened to this type, so can show the none selection option.
            echo "<tr><td class='text'><input type='checkbox' class='noneCheck' name='" . htmlspecialchars($focustype, ENT_QUOTES) . "' value='none' /><b>" . htmlspecialchars(xl("None"), ENT_NOQUOTES) . "</b></td></tr>";
        }
    }
    // display issues
    while ($row = sqlFetchArray($pres)) {
        $rowid = $row['id'];
        $disptitle = trim($row['title']) ? $row['title'] : "[Missing Title]";
        $ierow = sqlQuery("SELECT count(*) AS count FROM issue_encounter WHERE " . "list_id = ?", array($rowid));
        // encount is used to toggle the color of the table-row output below
        ++$encount;
        $bgclass = $encount & 1 ? "bg1" : "bg2";