echoT($clsForm->strGenericCheckEntry('Hidden?', 'chkHidden', 'true', false, $formData->bHidden));
}
// Mentor/Mentee Program?
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
//   $clsForm->strExtraFieldText = '<br>For mentor/mentee programs, two volunteer personalized tables are required.<br>See user\'s guide for details.';
echoT($clsForm->strGenericCheckEntry('Mentor/Mentee Program?', 'chkMentorMentee', 'true', false, $formData->bMentorMentee));
echoT('</table>');
closeBlock();
/*----------------------
     Validation file
  ----------------------*/
openBlock('Validation', '');
echoT('<table class="enpView">');
$strNote = '<i>You can optionally provide your own software to manage complex enrollment/attendance validation.<br>' . 'The validation software is in the form of a codeIgniter helper file. Save your file<br>' . 'in directory </i><font style="font-family: courier;">
         application/helpers/custom_verification</font><i>
         and your <br> file name must end with
         </i><font style="font-family: courier;">"_helper.php"</font><i>.
         Please see the user\'s guide for more details.<br>';
echoT($clsForm->strLabelRowOneCol($strNote, 2));
$clsForm->strExtraFieldText = form_error('txtE_VerificationModule');
echoT($clsForm->strGenericTextEntry('Validation File (enrollment)', 'txtE_VerificationModule', false, $formData->txtE_VerificationModule, 60, 255));
$clsForm->strExtraFieldText = '<br>' . '<i>If you specify a validation file, this is where you specify the name of your function <br>' . 'to call. Your routine returns false if the form data is not valid.<br>' . form_error('txtE_VModEntryPoint');
echoT($clsForm->strGenericTextEntry('Entry Point (enrollment)', 'txtE_VModEntryPoint', false, $formData->txtE_VModEntryPoint, 60, 255));
$clsForm->strExtraFieldText = form_error('txtA_VerificationModule');
echoT($clsForm->strGenericTextEntry('Validation File (attendance)', 'txtA_VerificationModule', false, $formData->txtA_VerificationModule, 60, 255));
$clsForm->strExtraFieldText = '<br>' . '<i>If you specify a validation file, this is where you specify the name of your function <br>' . 'to call. Your routine returns false if the form data is not valid.<br>' . form_error('txtA_VModEntryPoint');
echoT($clsForm->strGenericTextEntry('Entry Point (attendance)', 'txtA_VModEntryPoint', false, $formData->txtA_VModEntryPoint, 60, 255));
echoT($clsForm->strSubmitEntry($strBlockLabel, 1, 'cmdSubmit', 'text-align: center;'));
echoT('</table>' . form_close('<br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
closeBlock();
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->strStyleExtraLabel = 'width: 90pt;';
$clsForm->bValueEscapeHTML = false;
echoT('<table  border="0">');
//--------------------------------
// Time Frame
//--------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6px;';
$clsForm->strStyleExtraValue = 'vertical-align: top;';
echoT($clsForm->strLabelRow('Time Frame', $dateRanges, 1));
//--------------------------------
// Client Programs
//--------------------------------
$clsForm->strExtraFieldText = form_error('chkCProgs');
echoT($clsForm->strLabelRowOneCol('<b>View enrollees from the following programs:</b>', 2, '', 260));
$clsForm->bAddLabelColon = false;
/* -------------------------------------
echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\'))
   .': '.__LINE__.'<br>$cprogs   <pre>');
echo(htmlspecialchars( print_r($cprogs, true))); echo('</pre></font><br>');
// ------------------------------------- */
foreach ($cprogs as $cprog) {
    if ($cprog->bShowCProgLink) {
        $lCProgID = $cprog->lKeyID;
        $strChecked = in_array($lCProgID, $formData->cProgSelectedIDs) ? 'checked' : '';
        $strProg = '<input type="checkbox" name="chkCProgs[]" value="' . $lCProgID . '" ' . $strChecked . '> ' . htmlspecialchars($cprog->strProgramName);
        echoT($clsForm->strLabelRow('', $strProg, 1));
    }
}
$clsForm->strStyleExtraLabel = 'text-align: left;';
<?php

global $gbDateFormatUS, $genumDateFormat, $gstrFormatDatePicker;
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
$attributes = array('name' => 'frmCloneAttendance', 'id' => 'frmAddEdit');
echoT(form_open('cprograms/attendance/cloneAttOpts/' . $lCProgID . '/' . $lARecID, $attributes));
openBlock('Clone Attendance Record', '');
echoT('<table class="enpView" style="width: 500pt;">');
// source attendance record
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
    }
    echoT($clsGF->strGenericCheckEntry('Hide table', 'chkHide', 'true', false, $bHidden));
    $clsGF->strExtraFieldText = 'Check to remove<br><table><tr><td style="width: 300pt; font-style:italic">
               Checking this box will remove this table
               and the associated data, from your database.
               <font color="red"><b>This action can not be undone!</b></font>
               </td></tr></table>';
    echoT($clsGF->strGenericCheckEntry('Remove table', 'chkRetire', 'YES', false, false));
}
echoT('</table>');
closeBlock();
/*----------------------
     Validation file
  ----------------------*/
openBlock('Validation', '');
echoT('<table class="enpView">');
$strNote = '<i>You can optionally provide your own software to manage complex validation.<br>' . 'The validation software is in the form of a codeIgniter helper file. Save your file<br>' . 'in directory </i><font style="font-family: courier;">
         application/helpers/custom_verification</font><i>
         and your <br> file name must end with
         </i><font style="font-family: courier;">"_helper.php"</font><i>.
         Please see the user\'s guide for more details.<br>';
echoT($clsGF->strLabelRowOneCol($strNote, 2));
$clsGF->strExtraFieldText = form_error('txtVerificationModule');
echoT($clsGF->strGenericTextEntry('Validation File', 'txtVerificationModule', false, $txtVerificationModule, 60, 255));
$clsGF->strExtraFieldText = '<br>' . '<i>If you specify a validation file, this is where you specify the name of your function <br>' . 'to call. Your routine returns false if the form data is not valid.<br>' . form_error('txtVModEntryPoint');
echoT($clsGF->strGenericTextEntry('Entry Point', 'txtVModEntryPoint', false, $txtVModEntryPoint, 60, 255));
echoT('</table>');
closeBlock();
echoT($clsGF->strSubmitEntry('Submit', 1, 'cmdSubmit', ' width: 120pt; '));
echoT(form_close('<br><br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');