$strOut .= $deposit->strCountryName . '&nbsp;' . $deposit->strFlagImg . '&nbsp;&nbsp;' . date($genumDateFormat, $deposit->dteStart) . ' - ' . date($genumDateFormat, $deposit->dteEnd) . ' by ' . htmlspecialchars($deposit->strCFName . ' ' . $deposit->strCLName) . '&nbsp;' . '(' . number_format($deposit->lNumGifts) . ' entries)&nbsp;' . strLinkView_DepositEntry($deposit->lKeyID, 'View deposit record', true) . '<br>';
    }
    echoT($clsForm->strLabelRow('Recent Deposits', $strOut, 1));
}
//-------------------------------
// Accounting country of Origin
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: middle; width: 100pt; ';
echoT($clsForm->strLabelRow('Accounting Country', $formData->strACORadio, 1));
//----------------------
// report start
//----------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
echoT(strDatePicker('datepicker1', false));
$clsForm->strExtraFieldText = form_error('txtSDate');
echoT($clsForm->strGenericDatePicker('Start', 'txtSDate', true, $txtSDate, 'frmNewDeposit', 'datepicker1'));
//----------------------
// report end
//----------------------
echoT(strDatePicker('datepicker2', true));
$clsForm->strExtraFieldText = form_error('txtEDate');
echoT($clsForm->strGenericDatePicker('End', 'txtEDate', true, $txtEDate, 'frmNewDeposit', 'datepicker2'));
//------------------------
// Bank
//------------------------
$clsForm->strExtraFieldText = form_error('txtBank');
echoT($clsForm->strGenericTextEntry('Bank', 'txtBank', false, $formData->txtBank, 30, 80));
//------------------------
// Account
//------------------------
$clsForm->strExtraFieldText = form_error('txtAccount');
 echoT($clsForm->strLabelRow('clientID', $strClientID, 1));
 //----------------------
 // name
 //----------------------
 $clsForm->strStyleExtraLabel = 'width: 120pt; padding-top: 8px;';
 $clsForm->strExtraFieldText = form_error('txtFName');
 $clsForm->strID = 'addEditEntry';
 echoT($clsForm->strGenericTextEntry("{$strClientVName} First Name", 'txtFName', true, $formData->txtFName, 20, 30));
 echoT($clsForm->strGenericTextEntry("{$strClientVName} Middle Name", 'txtMName', false, $formData->txtMName, 20, 30));
 echoT($clsForm->strGenericTextEntry("{$strClientVName} Last Name", 'txtLName', false, $formData->txtLName, 20, 30));
 //----------------------
 // birthdate
 //----------------------
 echoT(strDatePicker('datepicker1', false));
 $clsForm->strExtraFieldText = form_error('txtBDate');
 echoT($clsForm->strGenericDatePicker('Birthdate', 'txtBDate', true, $formData->txtBDate, 'frmEditClient', 'datepicker1'));
 //----------------------
 // Date enrolled
 //----------------------
 echoT(strDatePicker('datepicker2', false));
 $clsForm->strExtraFieldText = form_error('txtPEntryDate');
 echoT($clsForm->strGenericDatePicker('Date entered in program', 'txtPEntryDate', true, $formData->txtPEntryDate, 'frmEditClient', 'datepicker2'));
 //-----------------------------------------------------
 // sponsorship categories supported by this location
 //-----------------------------------------------------
 echoT('
      <td class="enpViewLabel" style="width: 120pt;">
         Participates in these<br>Sponsorship Programs:
      </td>
      <td class="enpView" style="">');
 if ($clsSponProg->lNumSponPrograms == 0) {
//----------------------
echoT('<table class="enpView">');
if ($bUpdate) {
    if ($bImage) {
        echoT($clsForm->strLabelRow('Image', $strImageTag, 1));
    }
} else {
    $clsForm->strExtraFieldText = form_error('userfile');
    echoT($clsForm->strLabelRow($bImage ? 'Image file (jpg/gif/png)' : 'Document (pdf)', '<input type="file" name="userfile" size="80" />', 1));
}
//----------------------
// date of image/doc
//----------------------
echoT(strDatePicker('datepicker1', true));
$clsForm->strExtraFieldText = form_error('txtDate');
echoT($clsForm->strGenericDatePicker(($bImage ? 'Image' : 'Document') . ' Date', 'txtDate', true, $formData->txtDate, 'frmUpload', 'datepicker1'));
//----------------------
// tags
//----------------------
if ($lNumTags == 0) {
    $clsForm->strStyleExtraValue = 'padding-top: 8pt;';
    echoT($clsForm->strLabelRow('Tags', '<i>There are no <b>' . $strTagLabel . '</b> tags defined. Contact your system administrator to add tags.', 1));
    $clsForm->strStyleExtraValue = '';
} else {
    echoT($clsForm->strLabelRow('Tags', imgDocTags\strImgDocTagsDDL('ddlTags', 5, true, $lNumTags, $tags), 1));
}
//----------------------
// caption
//----------------------
$clsForm->strStyleExtraLabel = 'padding-top: 6px;';
$clsForm->strExtraFieldText = form_error('txtCaption');
//----------------------
// Enrollment Label
//----------------------
$clsForm->strExtraFieldText = '<br><i><span style="color: #999;">Enrollment, Application, Program Recrutment, etc</i></span>' . form_error('txtEnrollLabel');
echoT($clsForm->strGenericTextEntry('Enrollment Label', 'txtEnrollLabel', true, $formData->txtEnrollLabel, 20, 80));
//----------------------
// Attendance Label
//----------------------
$clsForm->strExtraFieldText = '<br><i><span style="color: #999;">Attendance, Client Contact, Participation, Case Entry, etc</i></span>' . form_error('txtAttendLabel');
echoT($clsForm->strGenericTextEntry('Attendance Label', 'txtAttendLabel', true, $formData->txtAttendLabel, 20, 80));
//----------------------
// Start Date
//----------------------
echoT(strDatePicker('datepicker1', true));
$clsForm->strExtraFieldText = form_error('txtStartDate');
echoT($clsForm->strGenericDatePicker('Program Start Date', 'txtStartDate', true, $formData->txtStartDate, 'frmEditCProg', 'datepicker1'));
//----------------------
// End Date
//----------------------
echoT(strDatePicker('datepicker2', true));
$clsForm->strExtraFieldText = form_error('txtEndDate');
echoT($clsForm->strGenericDatePicker('Program End Date', 'txtEndDate', true, $formData->txtEndDate, 'frmEditCProg', 'datepicker2'));
//----------------------
// Description
//----------------------
echoT($clsForm->strNotesEntry('Description', 'txtDescription', false, $formData->txtDescription, 5, 50));
// Read Only
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
$clsForm->strExtraFieldText = 'If checked, enrollment records can\'t be modified after entry.';
echoT($clsForm->strGenericCheckEntry('Enrollment Records Read Only?', 'chkETableReadOnly', 'true', false, $formData->bETableReadOnly));
$clsForm->strExtraFieldText = 'If checked, attendance/contact records can\'t be modified after entry.';
$clsForm = new generic_form();
$clsForm->strLabelClass = 'enpRptLabel';
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$lEntryID = $clsEntry->lKeyID;
$attributes = array('name' => 'frmClientStat');
echoT(form_open('clients/client_rec_stat/addEditStatusEntry/' . $lClientID . '/' . $lStatusID, $attributes));
echoT('<table class="enpView">');
$lMatchID = $bNew ? -1 : $clsEntry->lStatusID;
echoT($clsForm->strTitleRow(($bNew ? 'Add new ' : 'Update ') . 'status for ' . $client->strSafeName, 2, ''));
//---------------------------
// status category and entry
//---------------------------
echoT($clsForm->strLabelRow('Status Category', $client->strStatusCatName, 1));
$clsForm->strExtraFieldText = form_error('ddlStatus');
echoT($clsForm->strGenericDDLEntry('Status', 'ddlStatus', true, $statDDL));
//---------------------------
// Packet status?
//---------------------------
$clsForm->strExtraFieldText = ' (if checked, this status will be included in packet export)';
echoT($clsForm->strGenericCheckEntry('Packet Status?', 'chkPacket', 'TRUE', false, $bPacketStatus));
//--------------------
// status date
//--------------------
echoT(strDatePicker('datepicker1', false));
$clsForm->strExtraFieldText = form_error('txtDate');
echoT($clsForm->strGenericDatePicker('Date', 'txtDate', true, $txtDate, 'frmClientStat', 'datepicker1'));
echoT($clsForm->strNotesEntry('Notes', 'txtNotes', false, $txtNotes, 5, 46));
echoT($clsForm->strSubmitEntry('Submit', 1, 'cmdSubmit', 'text-align: left;'));
echoT('</table></form>');
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
$attributes = array('name' => 'frmMeasureAddEdit', 'id' => 'IDmeasureAddEdit');
echoT(form_open('emr/measurements/addEditMeasurement/' . $lClientID . '/' . $lMeasureID, $attributes));
$clsForm->strStyleExtraLabel = 'width: 90pt;';
echoT('<table class="enpView" >');
echoT($clsForm->strLabelRow('Client', $client->strSafeName, 1));
echoT($clsForm->strLabelRow('Birthday/Age', $client->strClientAgeBDay, 1));
/*------------------------
     Date of Measurement
  ------------------------*/
$clsForm->strStyleExtraLabel = 'padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtDate');
echoT($clsForm->strGenericDatePicker('Date of Measurement', 'txtDate', true, $formData->strDate, 'frmMeasureAddEdit', 'datepicker1'));
/*-------------------------------
     Height
  -------------------------------*/
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';
$clsForm->strID = 'addEditEntry';
$clsForm->strExtraFieldText = ($gbMetric ? 'cm' : 'in') . form_error('txtHeight');
$clsForm->strStyleExtraValue = 'vertical-align: middle;';
echoT($clsForm->strGenericTextEntry('Height', 'txtHeight', false, $formData->txtHeight, 6, 6));
/*-------------------------------
     Weight
  -------------------------------*/
$clsForm->strExtraFieldText = ($gbMetric ? 'kg' : 'lb') . form_error('txtWeight');
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';
echoT($clsForm->strGenericTextEntry('Weight', 'txtWeight', false, $formData->txtWeight, 6, 6));
<?php

$attributes = array('name' => 'frmEventDate');
echoT(form_open('volunteers/event_dates_add_edit/addEditDate/' . $lEventID . '/' . $lDateID, $attributes));
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strEntryClass = 'enpView';
$clsForm->strStyleExtraLabel = 'width: 100pt;';
$clsForm->bValueEscapeHTML = false;
echoT('<table>');
if ($bNew) {
    $strEventDateID = '<i>new</i>';
} else {
    $strEventDateID = str_pad($lDateID, 5, '0', STR_PAD_LEFT);
}
//----------------------
// event date
//----------------------
echoT(strDatePicker('datepicker1', true, 2010));
$clsForm->strExtraFieldText = form_error('txtEDate');
echoT($clsForm->strGenericDatePicker('Event date', 'txtEDate', true, $formData->txtEDate, 'frmEventDate', 'datepicker1'));
echoT($clsForm->strSubmitEntry('Save Date', 2, 'cmdSubmit', ''));
echoT('</table></form>');
   .': '.__LINE__.'<br>$pledge   <pre>');
echo(htmlspecialchars( print_r($pledge, true))); echo('</pre></font><br>');
// ------------------------------------- */
//-------------------------------
// Amount
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strExtraFieldText = $pledge->strFlagImg . form_error('txtAmount');
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Amount', 'txtAmount', true, $formData->txtAmount, 10, 20));
//-------------------------------
// Date of donation
//-------------------------------
$clsForm->strExtraFieldText = form_error('txtDDate');
echoT($clsForm->strGenericDatePicker('Date', 'txtDDate', true, $formData->txtDDate, 'frmEditPledge', 'datepickerFuture'));
//-------------------------------
// Check number
//-------------------------------
echoT($clsForm->strGenericTextEntry('Check number', 'txtCheckNum', false, $formData->strCheckNum, 30, 255));
//-------------------------------
// Payment type
//-------------------------------
$clsForm->strExtraFieldText = form_error('ddlPayType');
echoT($clsForm->strLabelRow('Payment type*', $formData->strDDLPayType, 1));
//-------------------------------
// Major gift category
//-------------------------------
echoT($clsForm->strLabelRow('Major gift category', $formData->strDDLMajGiftType, 1));
//-------------------------------
// Notes
global $glVolID;
openBlock(($bNew ? 'Add New ' : 'Edit ') . ' Volunteer Trainging for ' . $volRec->strSafeNameFL, '');
$attributes = array('name' => 'frmTraining');
echoT(form_open('hospice/vols/vol_training/addEditVolTraining/' . $lTrainingID . '/' . $lVolID, $attributes));
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strEntryClass = 'enpView';
$clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 4px;';
$clsForm->bValueEscapeHTML = false;
echoT('<table>');
//----------------------
// Training date
//----------------------
echoT(strDatePicker('datepicker1', false, 2000));
$clsForm->strExtraFieldText = form_error('txtDate');
echoT($clsForm->strGenericDatePicker('Date of Training', 'txtDate', true, $formData->txtDate, 'frmTraining', 'datepicker1'));
/*-------------------------------
     Duration
  -------------------------------*/
$clsForm->strExtraFieldText = form_error('ddlDuration');
echoT($clsForm->strLabelRow('Duration', $formData->ddlDuration, 1));
/*-------------------------------
     Training Type
  -------------------------------*/
$clsForm->strExtraFieldText = form_error('ddlTraining');
echoT($clsForm->strLabelRow('Training Type', $formData->strTrainingType, 1));
/*-------------------------------
     Conducted By
  -------------------------------*/
$clsForm->strExtraFieldText = form_error('ddlTrainingBy');
echoT($clsForm->strLabelRow('Conducted By', $formData->strTrainingBy, 1));
closeBlock();
openBlock('Miscellaneous', '');
echoT('<table class="enpView" >');
/*
      //------------------------
      // Gender
      //------------------------
   $clsForm->strStyleExtraLabel = 'width: 90pt; padding-top: 2px;';
   echoT($clsForm->strGenderRadioEntry('Gender', 'rdoGender', true, $formData->enumGender));
*/
//------------------------
// Birthdate
//------------------------
$clsForm->strStyleExtraLabel = 'padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtBDate');
echoT($clsForm->strGenericDatePicker('Birthdate', 'txtBDate', false, $formData->txtBDate, 'frmAddNewVol', 'datepicker1'));
//-------------------------------
// Accounting country of Origin
//-------------------------------
/*
   echoT('
         <tr>
            <td class="enpViewLabel" width="100" style="padding-top: 8px;">
               Accounting Country:
            </td>
            <td class="enpView">'
               .$formData->rdoACO.'
            </td>
         </tr>');
*/
//-------------------------------
// Payment type
//-------------------------------
$clsForm->strExtraFieldText = form_error('ddlPayType');
echoT($clsForm->strLabelRow('Payment type*', $formData->strDDLPayType, 1));
//-------------------------------
// Major gift category
//-------------------------------
echoT($clsForm->strLabelRow('Major gift category', $formData->strDDLMajGiftType, 1));
//-------------------------------
// Attributed to
//-------------------------------
echoT($clsForm->strLabelRow('Attributed to', $formData->strDDLAttrib, 1));
//-------------------------------
// Date of donation
//-------------------------------
$clsForm->strExtraFieldText = form_error('txtDDate');
echoT($clsForm->strGenericDatePicker('Date', 'txtDDate', true, $formData->txtDDate, 'frmFulfillment', 'datepickerFuture'));
//-------------------------------
// Notes
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 2pt; ';
$clsForm->strExtraFieldText = form_error('txtNotes');
echoT($clsForm->strNotesEntry('Notes', 'txtNotes', false, $formData->txtNotes, 2, 40));
//-------------------------------
// Save / close
//-------------------------------
echoT($clsForm->strSubmitEntry('Save', 2, 'cmdSubmit', 'width: 100pt;'));
echoT(form_close());
echoT('<script type="text/javascript">frmFulfillment.addEditEntry.focus();</script>');
echoT('</table>');
closeBlock();
$clsForm->strStyleExtraValue = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strExtraFieldText = '<br><i>If blank, the donor\'s name will be used</i>';
echoT($clsForm->strGenericTextEntry('Bid Sheet Ack.', 'txtDonorAck', true, $formData->txtDonorAck, 40, 255));
$clsForm->strStyleExtraValue = '';
//-------------------------------
// Item Name
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strExtraFieldText = form_error('txtItemName');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Item Name', 'txtItemName', true, $formData->txtItemName, 40, 255));
//-------------------------------
// Date obtained
//-------------------------------
$clsForm->strExtraFieldText = form_error('txtODate');
echoT($clsForm->strGenericDatePicker('Date Obtained', 'txtODate', true, $formData->txtODate, 'frmEditItem', 'datepickerFuture'));
//-------------------------------
// Estimated Value
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';
$clsForm->strTextBoxPrefix = $auction->strCurrencySymbol;
$clsForm->strStyleExtraValue = 'vertical-align: middle; ';
$clsForm->strExtraFieldText = form_error('txtEstValue');
echoT($clsForm->strGenericTextEntry('Estimated Value', 'txtEstValue', true, $formData->txtEstValue, 8, 20));
//-------------------------------
// Out of Pocket
//-------------------------------
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';
$clsForm->strTextBoxPrefix = $auction->strCurrencySymbol;
$clsForm->strExtraFieldText = form_error('txtOutOfPocket');
echoT($clsForm->strGenericTextEntry('Cell', 'txtCell', false, $formData->txtCell, 20, 40));
echoT('</table>');
closeBlock();
openBlock('Miscellaneous', '');
echoT('<table class="enpView" >');
//------------------------
// Gender
//------------------------
$clsForm->strStyleExtraLabel = 'width: 90pt; padding-top: 2px;';
echoT($clsForm->strGenderRadioEntry('Gender', 'rdoGender', true, $formData->enumGender));
//------------------------
// Birthdate
//------------------------
$clsForm->strStyleExtraLabel = 'padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtBDate');
echoT($clsForm->strGenericDatePicker('Birthdate', 'txtBDate', false, $formData->strBDay, 'frmEditPerson', 'datepicker1'));
//-------------------------------
// Accounting country of Origin
//-------------------------------
if (!$gbVolLogin) {
    echoT('
            <tr>
               <td class="enpViewLabel" width="100" style="padding-top: 8px;">
                  Accounting Country:
               </td>
               <td class="enpView">' . $formData->rdoACO . '
               </td>
            </tr>');
}
//-------------------------------
// Notes
global $glVolID;
openBlock(($bNew ? 'Add New ' : 'Edit ') . ' Volunteer Activity by ' . $volRec->strSafeNameFL, '');
$attributes = array('name' => 'frmHrsLog');
echoT(form_open('hospice/vols/hospice_vol/otherActivity/' . $lActivityID . '/' . $lVolID, $attributes));
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strEntryClass = 'enpView';
$clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 4px;';
$clsForm->bValueEscapeHTML = false;
echoT('<table>');
//----------------------
// activity date
//----------------------
echoT(strDatePicker('datepicker1', false, 2000));
$clsForm->strExtraFieldText = form_error('txtDate');
echoT($clsForm->strGenericDatePicker('Date of vol. activity', 'txtDate', true, $formData->txtDate, 'frmHrsLog', 'datepicker1'));
/*-------------------------------
     Start Time
  -------------------------------*/
$clsForm->strExtraFieldText = form_error('ddlStart');
echoT($clsForm->strGenericDDLEntry('Start Time', 'ddlStart', true, $formData->lStartTime));
/*-------------------------------
     Duration
  -------------------------------*/
$clsForm->strExtraFieldText = form_error('ddlDuration');
echoT($clsForm->strGenericDDLEntry('Duration', 'ddlDuration', true, $formData->enumDuration));
/*-------------------------------
     Activity
  -------------------------------*/
$clsForm->strExtraFieldText = form_error('ddlActivity');
echoT($clsForm->strLabelRow('Activity', $formData->strVolActivity, 1));
echoT($clsForm->strLabelRowOneCol('Source Attendance Record', 2, 'style="font-weight: bold;"', 221));
echoT($clsForm->strLabelRow('attendanceID', str_pad($arec->lKeyID, 5, '0', STR_PAD_LEFT) . '&nbsp' . strLinkView_UFMFRecordViaRecID($cprog->lAttendanceTableID, $arec->lClientID, $arec->lKeyID, 'View attendance record', true), 1));
echoT($clsForm->strLabelRow('enrollmentID', str_pad($arec->lEnrollID, 5, '0', STR_PAD_LEFT) . '&nbsp' . strLinkView_UFMFRecordViaRecID($cprog->lEnrollmentTableID, $arec->lClientID, $arec->lEnrollID, 'View enrollment record', true), 1));
echoT($clsForm->strLabelRow('Client', htmlspecialchars($arec->strClientFName . ' ' . $arec->strClientLName) . '&nbsp;' . strLinkView_ClientRecord($arec->lClientID, 'View client record', true), 1));
echoT($clsForm->strLabelRow('Date', date($genumDateFormat, $arec->dteAttendance), 1));
echoT($clsForm->strLabelRow('Duration', number_format($arec->dDuration, 2), 1));
echoT($clsForm->strLabelRow('Case Notes', nl2br(htmlspecialchars($arec->strCaseNotes)), 1));
// target attendance record
echoT($clsForm->strLabelRowOneCol('<br>Target Attendance Records', 2, 'style="font-weight: bold;"', 221));
//----------------------
// attendance date
//----------------------
$clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 8px;';
echoT(strDatePicker('datepicker1', true));
$clsForm->strExtraFieldText = form_error('txtADate');
echoT($clsForm->strGenericDatePicker('Attendance Date', 'txtADate', true, $formData->txtADate, 'frmCloneAttendance', 'datepicker1'));
//----------------------
// skip duplicates
//----------------------
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
$clsForm->strExtraFieldText = '<br><i>If checked, skip clients who already
                have attendance records<br>for the specified date.</i>';
echoT($clsForm->strGenericCheckEntry('Skip duplicates', 'chkSkipDups', 'true', false, $bSkipDups));
// the client list
$clsForm->strStyleExtraLabel = 'padding-top: 8px;';
$strClientChk = strHTMLSetClearAllButton(true, 'frmCloneAttendance', 'chkClient[]', 'Select All') . '&nbsp;&nbsp;' . strHTMLSetClearAllButton(false, 'frmCloneAttendance', 'chkClient[]', 'Clear All') . '<br>' . "\n";
foreach ($clients as $client) {
    if ($client->lNumERecs > 0) {
        $lClientID = $client->lClientID;
        foreach ($client->erecs as $erec) {
            $strEDates = ' <i>(enrollment: ' . date('m/d/Y', $erec->dteStart) . ' - ';
     $strComparisionVal = '';
     break;
 case CS_FT_ID:
 case CS_FT_INTEGER:
     $strComparisionVal = '<input type="text" name="txtCompValue" value="' . $term->lCompVal . '"
              style="width: 50px; text-align: right;">' . form_error('txtCompValue');
     break;
 case CS_FT_CURRENCY:
     $strComparisionVal = '<input type="text" name="txtCompValue" value="' . number_format($term->curCompVal, 2) . '"
              style="width: 70px; text-align: right;">&nbsp;' . $term->ACO->strFlagImg . form_error('txtCompValue');
     break;
 case CS_FT_DATE:
     //----------------------
     // Date
     //----------------------
     $strComparisionVal = strDatePicker('datepicker1', true) . $clsForm->strGenericDatePicker('Date', 'txtDate', true, $term->strDteCompVal, 'fmrSearchTerm', 'datepicker1', '', true) . form_error('txtDate');
     break;
 case CS_FT_TEXTLONG:
 case CS_FT_TEXT255:
 case CS_FT_TEXT80:
 case CS_FT_TEXT20:
 case CS_FT_TEXT:
     $strComparisionVal = '<input type="text" name="txtCompValue" value="' . $term->strCompVal . '"
              style="width: 150px;">' . form_error('txtCompValue');
     break;
 case CS_FT_DDLMULTI:
 case CS_FT_DDL:
     $strComparisionVal = strLoadDDLCompare($term) . form_error('ddlCompareTo');
     break;
 case CS_FT_DDL_SPECIAL:
     $strComparisionVal = strLoadDDLSpecialCompare($term) . form_error('ddlCompareTo');
//----------------------
// Serial # b
//----------------------
$clsForm->strExtraFieldText = form_error('txtSNb');
echoT($clsForm->strGenericTextEntry('Serial/Item Tag (b)', 'txtSNb', false, $formData->txtSNb, 30, 255));
//----------------------
// Responsible Party
//----------------------
$clsForm->strExtraFieldText = form_error('txtRParty');
echoT($clsForm->strGenericTextEntry('Responsible Party', 'txtRParty', true, $formData->txtRParty, 30, 255));
//----------------------
// Date Acquired
//----------------------
echoT(strDatePicker('datepicker1', true, 1970));
$clsForm->strExtraFieldText = form_error('txtDateAcquired');
echoT($clsForm->strGenericDatePicker('Date Acquired', 'txtDateAcquired', true, $formData->txtDateAcquired, 'frmIItem', 'datepicker1'));
//-------------------------------
// Estimated Value
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strExtraFieldText = form_error('txtEstValue');
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';
echoT($clsForm->strGenericTextEntry('Estimated Value', 'txtEstValue', true, $formData->txtEstValue, 10, 20));
//-------------------------------
// Accounting country of Origin
//-------------------------------
$clsForm->strExtraFieldText = form_error('rdoACO');
echoT($clsForm->strLabelRow('Accounting Country', $formData->strACORadio, 1));
//-------------------------------
// Available for loan/checkout
//-------------------------------
//-------------------------------
// Record ID
//-------------------------------
echoT($clsForm->strLabelRow('Auction ID', $bNew ? '<i>new</i>' : str_pad($lAuctionID, 5, '0', STR_PAD_LEFT), 1));
//-------------------------------
// Auction Name
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 4pt; ';
$clsForm->strExtraFieldText = form_error('txtAuctionName');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Auction Name', 'txtAuctionName', true, $formData->txtAuctionName, 40, 255));
//-------------------------------
// Date of auction
//-------------------------------
$clsForm->strExtraFieldText = form_error('txtADate');
echoT($clsForm->strGenericDatePicker('Date of Auction', 'txtADate', true, $formData->txtADate, 'frmEditAuction', 'datepickerFuture'));
//-------------------------------
// Contact
//-------------------------------
$clsForm->strExtraFieldText = form_error('txtContact');
echoT($clsForm->strGenericTextEntry('Contact', 'txtContact', false, $formData->txtContact, 40, 255));
//-------------------------------
// Email
//-------------------------------
$clsForm->strExtraFieldText = form_error('txtEmail');
echoT($clsForm->strGenericTextEntry('Email', 'txtEmail', false, $formData->txtEmail, 40, 200));
//-------------------------------
// Phone
//-------------------------------
$clsForm->strExtraFieldText = form_error('txtPhone');
echoT($clsForm->strGenericTextEntry('Phone', 'txtPhone', false, $formData->txtPhone, 40, 80));
// First name
$clsForm->strExtraFieldText = form_error('txtFName');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('First Name', 'txtFName', true, $formData->txtFName, 30, 30));
// Middle name
$clsForm->strExtraFieldText = form_error('txtMName');
echoT($clsForm->strGenericTextEntry('Middle Name', 'txtMName', false, $formData->txtMName, 30, 30));
// Last name
$clsForm->strExtraFieldText = form_error('txtLName');
echoT($clsForm->strGenericTextEntry('Last Name', 'txtLName', true, $formData->txtLName, 30, 30));
//----------------------
// birthdate
//----------------------
echoT(strDatePicker('datepicker1', false));
$clsForm->strExtraFieldText = form_error('txtBDate');
echoT($clsForm->strGenericDatePicker('Date of Birth', 'txtBDate', true, $formData->txtBDate, 'frmEditP', 'datepicker1'));
// Address
echoT($clsForm->strGenericTextEntry('Address 1', 'txtAddr1', false, $formData->txtAddr1, 40, 80));
echoT($clsForm->strGenericTextEntry('Address 2', 'txtAddr2', false, $formData->txtAddr2, 40, 80));
echoT($clsForm->strGenericTextEntry('City', 'txtCity', false, $formData->txtCity, 40, 80));
echoT($clsForm->strGenericTextEntry('State', 'txtState', false, $formData->txtState, 40, 80));
echoT($clsForm->strGenericTextEntry('Zip', 'txtZip', false, $formData->txtZip, 20, 40));
echoT($clsForm->strGenericTextEntry('Country', 'txtCountry', false, $formData->txtCountry, 20, 80));
// Phone / Cell / Email
$clsForm->strExtraFieldText = form_error('txtEmail');
echoT($clsForm->strGenericTextEntry('Email', 'txtEmail', false, $formData->txtEmail, 40, 120));
echoT($clsForm->strGenericTextEntry('Phone', 'txtPhone', false, $formData->txtPhone, 20, 40));
echoT($clsForm->strGenericTextEntry('Cell', 'txtCell', false, $formData->txtCell, 20, 40));
// Notes
echoT($clsForm->strNotesEntry('Notes', 'txtNotes', false, $formData->txtNotes, 3, 50));
echoT('</table>');
function tf_strRowUserDefined(&$opts)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $clsForm = new generic_form();
    $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
    $clsForm->strTitleClass = 'enpViewTitle';
    $clsForm->strEntryClass = 'enpView';
    $clsForm->strStyleExtraLabel = 'width: 90pt;';
    $clsForm->bValueEscapeHTML = false;
    $strRadioFN = $opts->strRadioFN;
    $strOut = '';
    $strOut .= '        
        <tr>
           <td valign="top">
              <input type="radio" name="' . $strRadioFN . '" value="User" ' . ($opts->bDateRange ? 'checked' : '') . ' >
           </td>
           <td valign="middle">
              <span onClick=setRadioOther(' . $opts->strFormName . '.' . $strRadioFN . ',\'User\')>
              define your report range:</span> <br>' . "\n";
    //----------------------
    // report start
    //----------------------
    $strOut .= '<table >';
    $strOut .= strDatePicker('datepicker1', false);
    $clsForm->strStyleExtraLabel = 'padding-top: 8px;';
    $clsForm->strExtraFieldText = form_error($opts->strSDateFN);
    $clsForm->calOptsTextOnFocus = $clsForm->calOptsTextOnChange = ' setDateRadio(' . $opts->strFormName . '.' . $strRadioFN . ',\'User\') ';
    $strOut .= $clsForm->strGenericDatePicker('Start', $opts->strSDateFN, true, $opts->txtSDate, $opts->strFormName, 'datepicker1', '');
    //----------------------
    // report end
    //----------------------
    $strOut .= strDatePicker('datepicker2', true);
    $clsForm->strExtraFieldText = form_error($opts->strEDateFN);
    $strOut .= $clsForm->strGenericDatePicker('End', $opts->strEDateFN, true, $opts->txtEDate, $opts->strFormName, 'datepicker2');
    $clsForm->calOptsTextOnFocus = $clsForm->calOptsTextOnChange = '';
    $strOut .= '</table>';
    return $strOut;
}
        case 'addNew':
            $strLabel = 'Add a new client: Step 1';
            echoT(form_open('clients/client_rec_add_edit/addNewS1', $attributes));
            break;
        default:
            screamForHelp($enumSource . ': invalid form type<br>error on line <b> -- ' . __LINE__ . ' --</b>,<br>file ' . __FILE__ . ',<br>function ' . __FUNCTION__);
            break;
    }
    openBlock($strLabel, '');
    $strNoOptSel = '<option value="-1">&nbsp;</option>';
    echoT('<table >');
    $clsForm->strExtraFieldText = form_error('ddlLocation');
    $clsForm->strID = 'addEditEntry';
    echoT($clsForm->strGenericDDLEntry('Client Location', 'ddlLocation', true, $strNoOptSel . $strLocationDDL));
    $clsForm->strExtraFieldText = form_error('ddlClientStatCat');
    echoT($clsForm->strGenericDDLEntry('Client Status Category', 'ddlClientStatCat', true, $strClientStatCatDDL));
    $clsForm->strExtraFieldText = form_error('ddlClientVoc');
    echoT($clsForm->strGenericDDLEntry('Vocabulary that will<br>Apply to this Client', 'ddlClientVoc', true, $strClientVocDDL));
    if ($enumSource == 'clientXfer') {
        //----------------------
        // Effective date
        //----------------------
        echoT(strDatePicker('datepicker1', false));
        $clsForm->strExtraFieldText = form_error('txtEDate');
        echoT($clsForm->strGenericDatePicker('Effective date', 'txtEDate', true, $strEDate, 'frmLoc', 'datepicker1'));
    }
    echoT($clsForm->strSubmitEntry('Submit', 1, 'cmdSubmit', 'width: 110pt;'));
    echoT('</table>' . form_close('<br><br>'));
    echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
    closeBlock();
}