Пример #1
0
   </table>

  </div>
    <!-- end left column div -->

    <!-- start right column div -->
	<div>
    <table>
    <tr>
    <td>

<div>
    <?php 
// If there is an ID Card or any Photos show the widget
$photos = pic_array($pid, $GLOBALS['patient_photo_category_name']);
if ($photos or $idcard_doc_id) {
    $widgetTitle = xl("ID Card") . '/' . xl("Photos");
    $widgetLabel = "photos";
    $linkMethod = "javascript";
    $bodyClass = "notab-right";
    $widgetAuth = false;
    $fixedWidth = false;
    expand_collapse_widget($widgetTitle, $widgetLabel, $widgetButtonLabel, $widgetButtonLink, $widgetButtonClass, $linkMethod, $bodyClass, $widgetAuth, $fixedWidth);
    ?>
<br />
<?php 
    if ($idcard_doc_id) {
        image_widget($idcard_doc_id, $GLOBALS['patient_id_category_name']);
    }
    foreach ($photos as $photo_doc_id) {
Пример #2
0
<?php 
$result = getPatientData($pid, "*, DATE_FORMAT(DOB,'%Y-%m-%d') as DOB_YMD");
$result2 = getEmployerData($pid);
$thisauth = acl_check('patients', 'demo');
if ($thisauth) {
    if ($result['squad'] && !acl_check('squads', $result['squad'])) {
        $thisauth = 0;
    }
}
if (!$thisauth) {
    echo "<p>(" . htmlspecialchars(xl('Demographics not authorized'), ENT_NOQUOTES) . ")</p>\n";
    echo "</body>\n</html>\n";
    exit;
}
if ($thisauth == 'write') {
    foreach (pic_array() as $var) {
        print $var;
    }
    echo "<td><span class='title'>" . htmlspecialchars(getPatientName($pid), ENT_NOQUOTES) . "</span>&nbsp;&nbsp;</td>";
    if (acl_check('admin', 'super')) {
        echo "<td><a class='css_button iframe' href='../deleter.php?patient=" . htmlspecialchars($pid, ENT_QUOTES) . "'>" . "<span>" . htmlspecialchars(xl('Delete'), ENT_NOQUOTES) . "</span></a></td>";
    }
    if ($GLOBALS['oer_config']['ws_accounting']['enabled']) {
        // Show current balance and billing note, if any.
        echo "<td>&nbsp;&nbsp;&nbsp;<span class='bold'><font color='#ee6600'>" . htmlspecialchars(xl('Balance Due'), ENT_NOQUOTES) . ": " . htmlspecialchars(oeFormatMoney(get_patient_balance($pid)), ENT_NOQUOTES) . "</font><br />";
        if ($result['genericname2'] == 'Billing') {
            htmlspecialchars(xl('Billing Note'), ENT_NOQUOTES) . ":";
            echo "<span class='bold'><font color='red'>" . htmlspecialchars($result['genericval2'], ENT_NOQUOTES) . "</font></span>";
        }
        echo "</span></td>";
    }