示例#1
0
echo "<table class='grid'>\n\t<tr><th class='tCol'>{$xx['vws_time']}</th>\n";
for ($i = 0; $i < 7; $i++) {
    $cTime = mktime(12, 0, 0, $m, $sDow + $i, $y);
    //current time
    if (strpos($days, date("N", $cTime)) !== false) {
        $sDate = date("Y-m-d", $cTime);
        echo "<th class='dCol point' style='width:{$cWidth}' onclick=\"goDay('{$sDate}');\" title=\"{$xx['vws_view_day']}\">" . makeD($sDate, $_SESSION['mobile'] ? 1 : 4, 'xs') . "</th>\n";
    }
}
echo "</tr>\n</table>\n\t</div>";
/* retrieve events */
retrieve($sDayOfWk, $sDoNextW, 'guc');
/* display days */
echo "<div" . ($_SESSION['mobile'] ? '' : " class='scrollBoxWe'") . ">\n";
echo "<table class='grid'>\n\t<tr><td class='tCol tColBg'>\n";
showHours();
echo "</td>\n";
for ($i = 0; $i < 7; $i++) {
    $cTime = mktime(12, 0, 0, $m, $sDow + $i, $y);
    //current time
    $cDate = date("Y-m-d", $cTime);
    //current date
    if (strpos($days, date("N", $cTime)) !== false) {
        $dayBg = '';
        $curSeq = 0;
        if (!empty($evtList[$cDate])) {
            //check day background should be set
            foreach ($evtList[$cDate] as $evt) {
                if ($evt['dbg'] and $evt['seq'] > $curSeq) {
                    $dayBg = " background:{$evt['cbg']};";
                    $curSeq = $evt['seq'];
<?php

$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '170pt';
$attributes = new stdClass();
$attributes->lTableWidth = 900;
$attributes->lUnderscoreWidth = 350;
$attributes->bStartOpen = true;
openBlock('Monthly Report for ' . strXlateMonth($lMonth) . ' ' . $lYear, '');
showHours($clsRpt, $attributes, $lMonth, $lYear, $sngHrsMins, $sngNonPVHrs);
showVolCount($clsRpt, $attributes, $lMonth, $lYear, $lNumVolsPV, $lNumVolsNonPV, $lNumUniqueVolID);
showPatientsServed($clsRpt, $attributes, $lMonth, $lYear, $lNumPatients, $lNumPatientVisits);
closeBlock();
function showPatientsServed($clsRpt, $attributes, $lMonth, $lYear, $lNumPatients, $lNumPatientVisits)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $attributes->bCloseDiv = false;
    $attributes->divID = 'csDiv';
    $attributes->divImageID = 'csDivImg';
    openBlock('Patients Served', '', $attributes);
    echoT($clsRpt->openReport());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('# Patient Visits:') . $clsRpt->writeCell(number_format($lNumPatientVisits) . ' ' . strLinkView_VMgrRptPVViaMonth($lMonth, $lYear, 'View details', true)) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('# Unique Patients:') . $clsRpt->writeCell(number_format($lNumPatients) . ' ' . strLinkView_VMgrRptUniquePatientsViaMonth($lMonth, $lYear, 'View details', true)) . $clsRpt->closeRow());
    echoT($clsRpt->closeReport());
    $attributes->bCloseDiv = true;
    closeBlock($attributes);
}
function showVolCount($clsRpt, $attributes, $lMonth, $lYear, $lNumVolsPV, $lNumVolsNonPV, $lNumUniqueVolID)