$dteLogEntry = $le->dteLogEntry;
    if ($dteGroup != $dteLogEntry) {
        $strDate = '<b>' . date($genumDateFormat, $le->dteLogEntry) . '</b>';
        $dteGroup = $dteLogEntry;
    } else {
        $strDate = '&nbsp;';
    }
    $lDuration = $le->lTimeOutMin - $le->lTimeInMin;
    $lTotMin += $lDuration;
    echoT('
            <tr class="makeStripe">
               <td class="enpRpt" style="text-align: center;">' . $strDate . '
               </td>
               <td class="enpRpt" style="text-align: right;" nowrap>' . strFormattedTimeViaMinutes($le->lTimeInMin, $b24Hr) . '
               </td>
               <td class="enpRpt" style="text-align: right;" nowrap>' . strFormattedTimeViaMinutes($le->lTimeOutMin, $b24Hr) . '
               </td>
               <td class="enpRpt" style="text-align: center;">' . strDurationViaMinutes($lDuration) . '
               </td>
               <td class="enpRpt" style="width: 120pt;">' . htmlspecialchars($le->strLocation) . '
               </td>
               <td class="enpRpt" style="width: 375pt;">' . nl2br(htmlspecialchars($le->strNotes)) . '
               </td>
            </tr>');
}
echoT('
         <tr class="makeStripe">
            <td class="enpRpt" style="text-align: left;" colspan="3">
               <b>TOTAL
            </td>
            <td class="enpRpt" style="text-align: center;"><b>' . strDurationViaMinutes($lTotMin) . '</b>
     $lTotMinutes += $de->lTimeOut - $de->lTimeIn;
     echoT('
        <td>&nbsp;</td>
        <td>&nbsp;</td>');
     if (!$bSubmitted) {
         echoT('            
           <td>&nbsp;</td>
           <td style="text-align: center; vertical-align: top;">' . strLinkEdit_TSLogEntries($de->lEntryID, 'Edit entry', true) . '
           </td>
           <td style="text-align: center; vertical-align: top;">' . strLinkRem_TSLogEntry($de->lEntryID, 'Remove entry', true, true) . '
           </td>');
     }
     echoT('
        <td style="vertical-align: top; text-align: right;">' . strFormattedTimeViaMinutes($de->lTimeIn, $b24Hr) . '
        </td>
        <td style="vertical-align: top; text-align: right;">' . strFormattedTimeViaMinutes($de->lTimeOut, $b24Hr) . '
        </td>
        <td style="vertical-align: top; text-align: center;">' . strDurationViaMinutes($de->lTimeOut - $de->lTimeIn) . '
        </td>
        <td style="vertical-align: top; width: 100pt;">' . htmlspecialchars($de->location) . '
        </td>
        <td style="vertical-align: top; width: 220pt;">' . nl2br(htmlspecialchars($de->notes)) . '
        </td>
     </tr>');
 }
 echoT('
     <tr>
        <td colspan="3" style="margin: 0px; height: 2px;border-spacing: 0px; padding: 0px;">&nbsp;</td>
        <td colspan="8" style="margin: 0px; height: 2px;border-spacing: 0px; padding: 0px;">' . strImgTagBlackLine(600, 2) . '</td>
     </tr>');
 echoT('