}
//----------------------
// caption
//----------------------
$clsForm->strStyleExtraLabel = 'padding-top: 6px;';
$clsForm->strExtraFieldText = form_error('txtCaption');
echoT($clsForm->strGenericTextEntry($bImage ? 'Caption' : 'Document Title', 'txtCaption', false, $formData->txtCaption, 60, 255));
//----------------------
// description
//----------------------
echoT($clsForm->strNotesEntry('Description', 'txtDescription', false, $formData->txtDescription, 5, 60));
//----------------------
// profile image?
//----------------------
if ($bImage) {
    echoT($clsForm->strGenericCheckEntry('Profile image?', 'chkProfile', 'TRUE', false, $formData->bProfile));
}
//----------------------
// submit
//----------------------
//   echoT($clsForm->strSubmitEntry(($bUpdate ? 'Update' : 'Upload file'), 1, 'cmdSubmit', 'text-align: left;'));
echoT('
         <tr>
            <td class="enpView" style=" padding-top: 10px;" colspan="1">
            <input type="submit" name="cmdSubmit" value="' . ($bUpdate ? 'Update' : 'Upload file') . '" style="text-align: left;"
                  class="btn"
                  onmouseover="this.className=\'btn btnhov\'"
                  onmouseout="this.className=\'btn\'">
            </td>
         </tr>');
echoT('</table>' . form_close('<br>'));
$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.';
echoT($clsForm->strGenericCheckEntry('Attendance Records Read Only?', 'chkATableReadOnly', 'true', false, $formData->bATableReadOnly));
// Hidden?
if (!$bNew) {
    $clsForm->strStyleExtraLabel = 'padding-top: 4px;';
    $clsForm->strExtraFieldText = 'Check this box to hide the program. You can always restore it later.';
    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();
/*----------------------
// 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) . ' - ';
            if (is_null($erec->dteEnd) || $erec->dteEnd == 0) {
                $strEDates .= 'ongoing)</i>';
            } else {
                $strEDates .= date('m/d/Y', $erec->dteEnd) . ')</i>';
            }
            $strClientChk .= '<div><input type="checkbox" name="chkClient[]" ' . ($client->bSelected ? 'checked' : '') . ' value="' . $client->lClientID . '_' . $erec->lKeyID . '">' . strLinkView_ClientRecord($lClientID, 'View client record', true) . '&nbsp;' . htmlspecialchars($client->strClientLName . ', ' . $client->strClientFName) . ' ' . $strEDates . '</div>' . "\n";
        }
// 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
//-------------------------------
$clsForm->strStyleExtraLabel = 'padding-top: 4pt; ';
echoT($clsForm->strGenericCheckEntry('Available for Checkout', 'chkAvailLoan', 'TRUE', false, $formData->bAvailForLoan));
//----------------------
// Location
//----------------------
$clsForm->strExtraFieldText = form_error('txtLocation');
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
echoT($clsForm->strNotesEntry('Location', 'txtLocation', true, $formData->txtLocation, 3, 50));
//----------------------
// Description
//----------------------
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
echoT($clsForm->strNotesEntry('Description', 'txtNotes', false, $formData->txtNotes, 3, 50));
echoT($clsForm->strSubmitEntry('Save', 2, 'cmdSubmit', 'text-align: center; width: 80pt;'));
echoT('</table>' . form_close('<br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
closeBlock();
    // Start of Week
    $clsForm->strExtraFieldText = '<br><i>(applies to weekly time periods)</i><br>';
    echoT($clsForm->strLabelRow('Start of Week', ts_util\strXlateDayofWeek($tst->lFirstDayOfWeek), 1));
    $clsForm->strStyleExtraLabel = 'padding-top: 6px;';
}
//------------------------
// Time Granularity
//------------------------
$clsForm->strExtraFieldText = form_error('ddlTimeGrain');
echoT($clsForm->strLabelRow('Time Granularity', $formData->strTimeGrainDDL, 1));
//------------------------
// 24 Hour Timeclock
//------------------------
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
$clsForm->strExtraFieldText = '&nbsp;<i>If checked, 4:42 PM will be displayed as 16:42.</i>';
echoT($clsForm->strGenericCheckEntry('24-Hour Time Display', 'chk24Hour', 'true', false, $formData->b24HrTime));
//------------------------
// Hidden?
//------------------------
if (!$bNew) {
    $clsForm->strStyleExtraLabel = 'padding-top: 4px;';
    $clsForm->strExtraFieldText = '<br><i>You can hide a time sheet and it not be available
                    to users.<br>
                    You can unhide it later without loss of data. Even when hidden, <br>
                    the time sheet information will be included in time sheet reports.</i>';
    echoT($clsForm->strGenericCheckEntry('Hidden?', 'chkHidden', 'true', false, $formData->bHidden));
}
//------------------------
// Acknowledgment Text
//------------------------
echoT($clsForm->strNotesEntry('Acknowledgment Text', 'txtAck', false, $formData->txtAck, 3, 40));
//----------------------
$clsForm->strStyleExtraLabel = 'width: 120pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('ddlPPCat');
echoT($clsForm->strLabelRow('Test Category', $formData->strCatDDL, 1));
//----------------------
// Program Name
//----------------------
$clsForm->strExtraFieldText = form_error('txtTestName');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Test Name', 'txtTestName', true, $formData->txtTestName, 50, 255));
//----------------------
// Description
//----------------------
echoT($clsForm->strNotesEntry('Description', 'txtDescription', false, $formData->txtDescription, 3, 50));
// Hidden?
if (!$bNew) {
    $clsForm->strStyleExtraLabel = 'padding-top: 2px;';
    $clsForm->strExtraFieldText = 'Check this box to hide the test. You can always restore it later.';
    echoT($clsForm->strGenericCheckEntry('Hidden?', 'chkHidden', 'true', false, $formData->bHidden));
}
// Published?
if (!$bNew) {
    $clsForm->strStyleExtraLabel = 'padding-top: 2px;';
    $clsForm->strExtraFieldText = 'Check this box to publish the test. Once published, you will
                    not be able to add questions or change answers.';
    echoT($clsForm->strGenericCheckEntry('Published?', 'chkPublished', 'true', false, $formData->bPublished));
}
echoT($clsForm->strSubmitEntry(($bNew ? 'Add ' : 'Update ') . 'Pre/Post Test', 1, 'cmdSubmit', 'text-align: center;'));
echoT('</table>' . form_close('<br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
closeBlock();
<?php

$clsGF = new generic_form();
$attributes = array('name' => 'frmStat', 'id' => 'frmAddEdit');
echo form_open('clients/status_cat_entry/addEdit/' . $lCatID . '/' . $lCatEntryID, $attributes);
echoT('<br><br><table class="enpRptC">');
echoT($clsGF->strTitleRow(($bNew ? 'Add new ' : 'Edit ') . 'Client Status Entry (' . $strCatName . ')', 2, ''));
$clsGF->strExtraFieldText = form_error('txtStatEntry');
$clsGF->strID = 'addEditEntry';
echoT($clsGF->strGenericTextEntry('Status Entry', 'txtStatEntry', true, $formD->txtStatEntry, 40, 80));
echoT($clsGF->strGenericCheckEntry('Allow sponsorship?', 'chkAllowSpon', 'TRUE', false, $formD->bAllowSponsorship));
echoT($clsGF->strGenericCheckEntry('Show in directory?', 'chkShowInDir', 'TRUE', false, $formD->bShowInDir));
echoT($clsGF->strGenericCheckEntry('Default status?', 'chkDefault', 'TRUE', false, $formD->bDefault));
//   if (!$bNew){
//      echoT($clsGF->strGenericCheckEntry('Retire entry?', 'chkRetire', 'TRUE', false, false));
//   }
echoT($clsGF->strSubmitEntry('Save', 2, 'cmdSubmit', ''));
echoT('</table>' . form_close('<br><br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
echoT('<table width="600" border="0">');
$clsForm->strStyleExtraLabel = 'text-align: right; width: 130pt; padding-top: 8px;';
//------------------------
// Reporting month
//------------------------
$clsForm->strExtraFieldText = form_error('txtMonth');
echoT($clsForm->strLabelRow('Month', '<input type="text" value="' . $txtMonth . '" name="txtMonth" size="8" id="month1">', 1, ''));
//------------------------
// Show case notes summary
//------------------------
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
echoT($clsForm->strGenericCheckEntry('Show case notes summary', 'chkCNotes', 'true', false, $formData->bShowCNotes));
//------------------------
// Show duration
//------------------------
echoT($clsForm->strGenericCheckEntry('Show duration', 'chkDuration', 'true', false, $formData->bShowDuration));
//------------------------
// Show activity
//------------------------
echoT($clsForm->strGenericCheckEntry('Show activity', 'chkActivity', 'true', false, $formData->bShowActivity));
//------------------------
// Show attendance link
//------------------------
echoT($clsForm->strGenericCheckEntry('Show ' . $cprog->strSafeAttendLabel . ' link', 'chkALink', 'true', false, $formData->bShowALink));
$clsForm->strStyleExtraLabel = 'text-align: left;';
echoT($clsForm->strSubmitEntry('View Attendance', 2, 'cmdSubmit', ''));
echoT('</table>' . form_close('<br>'));
<?php

$attributes = array('name' => 'frmLoc', 'id' => 'frmAddEdit');
echo form_open('admin/admin_special_lists/people_lists/addEditRel/' . $lKeyID, $attributes);
$clsGF = new generic_form();
$clsGF->strLabelClass = 'enpRptLabel';
$clsGF->bValueEscapeHTML = false;
echoT('<br><br><table class="enpRptC">');
echoT($clsGF->strTitleRow(($bNew ? 'Add New ' : 'Update ') . 'People Relationship', 2, ''));
$clsGF->strExtraFieldText = form_error('txtRelName');
$clsGF->strID = 'addEditEntry';
echoT($clsGF->strGenericTextEntry('Relationship Name', 'txtRelName', true, $formD->txtRelName, 40, 40));
$clsGF->strExtraFieldText = form_error('ddlRC');
echoT($clsGF->strGenericDDLEntry('Relationship Category', 'ddlRC', true, $formD->strRelCatDDL));
echoT($clsGF->strGenericCheckEntry('Spousal relationship?', 'chkSpouse', 'TRUE', false, $formD->bSpouse));
echoT($clsGF->strSubmitEntry('Save', 2, 'cmdSubmit', ''));
echoT('</table>' . form_close('<br><br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
<?php

global $gbAdmin;
if (!$gbAdmin) {
    echoT('You must be an Administrator to use this feature.');
} else {
    openBlock('Database backup', '');
    $attributes = array('name' => 'frmBackup', 'id' => 'backupDB');
    echoT(form_open('admin/db_zutil/backupRun', $attributes));
    $clsForm = new generic_form();
    $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
    $clsForm->strTitleClass = 'enpViewTitle';
    $clsForm->strEntryClass = 'enpView';
    $clsForm->strStyleExtraLabel = 'width: 120pt;';
    $clsForm->bValueEscapeHTML = false;
    echoT('<table width="800" border="0">');
    echoT($clsForm->strLabelRow('Backup as', '
                                  <input type="radio" name="rdoType" value="zip" checked>zip&nbsp;&nbsp;
                                  <input type="radio" name="rdoType" value="gzip" >gzip&nbsp;&nbsp;
                                  <input type="radio" name="rdoType" value="txt"  >text&nbsp;&nbsp;
                                   ', 1));
    echoT($clsForm->strGenericCheckEntry('Include "DROP TABLE"', 'chkDrop', 'true', false, true));
    $clsForm->strStyleExtraLabel = 'text-align: left;';
    echoT($clsForm->strSubmitEntry('Run Backup', 2, 'cmdSubmit', 'text-align: left;'));
    echoT('</table>' . form_close('<br>'));
    closeblock();
}
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
echoT('<br><table class="enpView">' . $clsForm->strTitleRow(($bNew ? 'Add new ' : 'Update ') . ' Client Location', 2, ''));
$clsForm->strStyleExtraLabel = 'width: 120pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtLoc');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Location', 'txtLoc', true, $formD->txtLoc, 40, 80));
echoT($clsForm->strGenericTextEntry('Address 1', 'txtAddr1', false, $formD->txtAddr1, 40, 100));
echoT($clsForm->strGenericTextEntry('Address 2', 'txtAddr2', false, $formD->txtAddr2, 40, 100));
echoT($clsForm->strGenericTextEntry('City', 'txtCity', false, $formD->txtCity, 40, 50));
echoT($clsForm->strGenericTextEntry($gclsChapterVoc->vocState, 'txtState', false, $formD->txtState, 40, 50));
echoT($clsForm->strGenericTextEntry($gclsChapterVoc->vocZip, 'txtZip', false, $formD->txtZip, 20, 25));
echoT($clsForm->strGenericTextEntry('Country', 'txtCountry', false, $formD->txtCountry, 40, 200));
$clsForm->strStyleExtraLabel = 'padding-top: 3px;';
$clsForm->strExtraFieldText = '<i>If checked, show Delightful Labor medical features for clients at this location.</i>';
echoT($clsForm->strGenericCheckEntry('Allow med. features?', 'chkAllowEMR', 'true', false, $formD->chkAllowEMR));
echoT($clsForm->strNotesEntry('Description', 'txtDescription', false, $formD->txtDescription, 3, 35));
// allow user to select which sponsorship programs the location participates in
echoT('
      <tr>
         <td class="enpViewLabel">
            Participates in<br>
            these sponsorship<br>
            programs:
         </td>
         <td class="enpView">');
foreach ($sponProgs as $clsProg) {
    $lSPID = $clsProg->lKeyID;
    echoT('
         <input type="checkbox" name="chkSponProgs[]" value="' . $lSPID . '" id="chkSP_' . $lSPID . '" ' . $progInUse[$lSPID] . ' ' . 'value="TRUE">' . htmlspecialchars($clsProg->strProg) . '<br>');
}
echoT($clsGF->strTitleRow(($bNew ? 'Add a new ' : 'Edit a') . ' field in table <i>"' . $strTableLabel . '"</i>', 2, ''));
echoT($clsGF->strLabelRow('Field type', $strFieldTypeLabel, 1));
$clsGF->strStyleExtraLabel = 'padding-top: 8px;';
// Field Name
$clsGF->strExtraFieldText = form_error('txtFieldName');
$clsGF->strID = 'addEditEntry';
echoT($clsGF->strGenericTextEntry('Field name', 'txtFieldName', true, $strFieldNameUser, 40, 80));
// Field Notes
$clsGF->strExtraFieldText = '<br><i>Extra info to accompany field on user input forms</i>';
echoT($clsGF->strNotesEntry('Field Notes', 'txtFieldNotes', false, $strFieldNotes, 3, 38));
// prefill?
if ($bMultiEntry && $enumFieldType != CS_FT_HEADING && $enumFieldType != CS_FT_LOG) {
    $clsGF->strID = 'addEditEntry';
    $clsGF->strExtraFieldText = '<br><i>If checked, when adding a new record this field<br>
                    will be prefilled with the most recent previous entry</i>';
    echoT($clsGF->strGenericCheckEntry('Pre-fill field?', 'chkPrefill', 'true', false, $opts->bPrefill));
} else {
    echoT(form_hidden('chkPrefill', 'false'));
}
showExtraOpts($clsGF, $enumFieldType, $opts);
// Hide field
$clsGF->strStyleExtraLabel = 'padding-top: 4px;';
$clsGF->strExtraFieldText = '<i>By hiding a field, it will not be visible to the user.<br>
                                  You can restore it at a later time without loss of data.</i>';
echoT($clsGF->strGenericCheckEntry('Hide this field?', 'chkHidden', 'true', false, $opts->bHidden));
if ($bShowRequired) {
    $clsGF->strStyleExtraLabel = 'padding-top: 4px;';
    echoT($clsGF->strGenericCheckEntry('Required?', 'chkRequired', 'true', false, $opts->bRequired));
}
echoT($clsGF->strSubmitEntry('Submit', 2, 'cmdSubmit', ''));
echoT('</table>' . form_close('<br><br>'));
<?php

global $gbDateFormatUS, $gstrFormatDatePicker;
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
echo form_open('biz/biz_contact_add_edit/contactUpdate/' . $lContactID);
openBlock(($bNew ? 'Add New ' : 'Update ') . 'Business Contact', '');
echoT('<table class="">');
//   echoT($clsForm->strTitleRow( (($bNew ? 'Add New ' : 'Update ').'Contact Record'), 2, ''));
$strConName = strLinkView_PeopleRecord($lPID, 'View people record', true) . ' ' . str_pad($lPID, 5, '0', STR_PAD_LEFT) . ' ' . htmlspecialchars($contactName);
echoT($clsForm->strTitleRow('Contact for <i>' . $bizName . '</i>', 2, ''));
echoT($clsForm->strLabelRow('Contact', $strConName, 1));
echoT($clsForm->strLabelRow('Relationship', $formData->relDDL, 1));
echoT($clsForm->strGenericCheckEntry('Soft Cash?', 'chkSoft', 'TRUE', false, $formData->bSoftCash));
echoT($clsForm->strSubmitEntry('Save', 2, 'cmdSubmit', 'width: 50pt;'));
echoT(form_close());
closeBlock();
echoT('</table>');
echoT(form_open('creports/add_edit_crpt/add_edit/' . $lReportID, $attributes));
//-------------------
// Name
//-------------------
$clsForm->strExtraFieldText = form_error('txtName');
$clsForm->strID = 'addEditEntry';
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 7pt; width: 90pt;';
echoT($clsForm->strGenericTextEntry('Report Name', 'txtName', true, $formData->strName, 40, 255));
//-------------------
// Notes
//-------------------
$clsForm->strStyleExtraLabel = 'padding-top: 3pt;';
echoT($clsForm->strNotesEntry('Notes', 'txtNotes', false, $formData->strNotes, 3, 40));
//-------------------
// Report Type
//-------------------
if ($bNew) {
    echoT($clsForm->strGenericDDLEntry('Report Type', 'ddlCRpt', true, $formData->strCRptTypeDDL));
} else {
    echoT($clsForm->strLabelRow('Report Type', $formData->strRptType, 1));
}
//-------------------
// Private?
//-------------------
$clsForm->strExtraFieldText = '<i>If checked, only you (and admins) have access to this report.<br>' . 'If public, all users can run the report, but only you and admins can modify it.</i>';
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 3pt;';
echoT($clsForm->strGenericCheckEntry('Private?', 'chkPrivate', 'TRUE', false, $formData->bPrivate));
echoT($clsForm->strSubmitEntry('Add Report', 1, 'cmdSubmit', 'text-align: center;'));
echoT('</table>' . form_close('<br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
closeBlock();
openBlock(($bNew ? 'Add New' : 'Edit') . ' ' . $strGroupType . ' Group Name', '');
echoT('<table class="enpView">');
//------------------------
// Group
//------------------------
$clsForm->strStyleExtraLabel = 'width: 80pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtGroupName');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Group Name', 'txtGroupName', true, $strGroupName, 40, 80));
// does the group have extended fields?
if ($gProps->extended) {
    if ($gProps->lNumBool > 0) {
        $clsForm->strStyleExtraLabel = 'padding-top: 4px;';
        foreach ($gProps->bools as $bField) {
            $clsForm->strExtraFieldText = $bField->strLabelExtra;
            echoT($clsForm->strGenericCheckEntry($bField->strLabel, $bField->strFormFN, 'true', false, $bField->bValue));
        }
    }
    if ($gProps->lNumInt > 0) {
        echo __FILE__ . ' ' . __LINE__ . '<br>' . "\n";
        die;
    }
}
/* -------------------------------------
echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\'))
   .': '.__LINE__.'<br>$gProps   <pre>');
echo(htmlspecialchars( print_r($gProps, true))); echo('</pre></font><br>');
// ------------------------------------- */
/*   
   echoT('
      <br>
   echoT(strDatePicker('datepicker2', true));
   $clsForm->strExtraFieldText = form_error('txtEDate');
   echoT($clsForm->strGenericDatePicker(
                      'End', 'txtEDate', true,
                      $txtEDate,  'frmGiftAckRpt', 'datepicker2'));
*/
//--------------------------------
// include only not acknowledged
//--------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: middle; width: 120pt; ';
echoT($clsForm->strLabelRow('Include donations', '<input type="radio" name="rdoAck" value="notAck" ' . ($bNotAck ? 'checked' : '') . '>Not acknowledged&nbsp;' . '<input type="radio" name="rdoAck" value="all"    ' . ($bNotAck ? '' : 'checked') . '>All donations', 1));
//---------------------------------
// include sponsorship payments
//---------------------------------
if ($enumAckType == 'gifts') {
    $clsForm->strExtraFieldText = ' (check to include)';
    echoT($clsForm->strGenericCheckEntry('Include sponsorship payments', 'chkSpon', 'true', false, $bIncludeSpon));
}
//---------------------------------
// mark donations as acknowledged
//---------------------------------
$clsForm->strExtraFieldText = ' Check to mark donations<br><i>Note: donations are marked as acknowledged when the report is exported</i>';
echoT($clsForm->strGenericCheckEntry('Mark donations as acknowledged', 'chkMarkAck', 'true', false, $bMarkAck));
//--------------------------------
// Sort by
//--------------------------------
echoT($clsForm->strLabelRow('Sort by', '<input type="radio" name="rdoSort" value="date"  ' . ($enumSort == 'date' ? 'checked' : '') . '>Date&nbsp;' . '<input type="radio" name="rdoSort" value="amnt"  ' . ($enumSort == 'amnt' ? 'checked' : '') . '>Amount&nbsp;' . '<input type="radio" name="rdoSort" value="donor" ' . ($enumSort == 'donor' ? 'checked' : '') . '>Donor&nbsp;', 1));
echoT($clsForm->strSubmitEntry('Run Report', 2, 'cmdSubmit', 'text-align: center;'));
echoT('</table>' . form_close('<br>'));
//   echoT('<script type="text/javascript">skillsRpt.addEditEntry.focus();</script>');
closeblock();
<?php

$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
$attributes = array('name' => 'frmTSProject', 'id' => 'frmAddEdit');
echoT(form_open('admin/timesheets/ts_projects/addEditTSProject/' . $lTSProjID, $attributes));
openBlock('Time Sheets: ' . ($bNew ? 'Add New' : 'Edit') . ' Billable Project', '');
echoT('<table class="enpView">');
//------------------------
// Project Name
//------------------------
$clsForm->strStyleExtraLabel = 'width: 80pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtProject');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Project Name', 'txtProject', true, $formData->txtProject, 30, 80));
//------------------------
// Internal Project
//------------------------
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
$clsForm->strExtraFieldText = '<br><i>Internal projects can be things like "overhead", "sick time", "vacation", etc.</i>';
echoT($clsForm->strGenericCheckEntry('Internal Project', 'chkInternal', 'true', false, $formData->bInternalProject));
echoT($clsForm->strSubmitEntry('Save', 2, 'cmdSubmit', 'text-align: center; width: 80pt;'));
echoT('</table>' . form_close('<br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
closeBlock();
$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>');
<?php

global $gdteNow;
echoT(form_open('reports/pre_vol_hours/yearRun'));
openBlock('Volunteer Hours by Year', '');
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->strStyleExtraLabel = 'width: 120pt;';
$clsForm->bValueEscapeHTML = false;
echoT('<table width="800" border="0">');
$lCurrentYear = (int) date('Y', $gdteNow);
$strOut = '<select name="ddlYear">' . "\n";
for ($idx = $lCurrentYear - 20; $idx <= $lCurrentYear + 1; ++$idx) {
    $strOut .= '<option value="' . $idx . '" ' . ($idx == $lCurrentYear ? 'SELECTED' : '') . '>' . $idx . '</option>' . "\n";
}
$strOut .= '</select>' . "\n";
$clsForm->strStyleExtraLabel = 'width: 120pt; padding-top: 6px;';
echoT($clsForm->strLabelRow('Year', $strOut, 1));
$clsForm->strExtraFieldText = '<i>(check to view report by volunteer)</i>';
echoT($clsForm->strGenericCheckEntry('Summary by Vol.', 'chkViaVol', 'true', false, false));
$clsForm->strStyleExtraLabel = 'text-align: left;';
echoT($clsForm->strSubmitEntry('Run Report', 2, 'cmdSubmit', 'text-align: center;'));
echoT('</table>' . form_close('<br>'));
closeblock();
// Accounting country of Origin
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: middle; ';
echoT($clsForm->strLabelRow('Accounting Country', $formData->strACORadio, 1));
//-------------------------------
// Past Due Duration
//-------------------------------
$clsForm->strStyleExtraLabel = '';
echoT($clsForm->strLabelRow('Past Due Duration', 'At least 
                      <select name="ddlPastDue">
                        <option value="1">1</option> 
                        <option value="2" selected>2</option> 
                        <option value="3">3</option> 
                        <option value="4">4</option> 
                        <option value="5">5</option> 
                        <option value="6">6</option> 
                      </select> months past due', 1));
//-------------------------------
// Include inactive?
//-------------------------------
echoT($clsForm->strGenericCheckEntry('Include inactive?', 'chkInactive', 'true', false, false));
//----------------------
// Sponsorship Program
//----------------------
//   $clsForm->strExtraFieldText = form_error('rdoGender');
//   echoT($clsForm->strGenderRadioEntry('Gender', 'rdoGender', true, $formData->rdoGender));
$clsForm->strStyleExtraLabel = ' text-align: left; ';
echoT($clsForm->strSubmitEntry('Run Report', 2, 'cmdSubmit', 'width: 150pt;'));
echoT('</table>' . form_close('<br>'));
echoT('<script type="text/javascript">skillsRpt.addEditEntry.focus();</script>');
closeblock();
echoT($clsGF->strLabelRow('Multi-entry', $strMulti, 1));
// read only
if ($bNew || $bMultiEntry) {
    $strReadOnly = '<input type="checkbox" name="chkReadOnly" value="true" ' . ($bReadOnly ? 'checked' : '') . '> ' . 'For multi-entry tables, do not allow a record to be edited.';
    echoT($clsGF->strLabelRow('Read Only', $strReadOnly, 1));
}
// description
echoT($clsGF->strNotesEntry('Description', 'txtDescription', false, $strDescription, 3, 45));
// Collapsible heading groups
$clsGF->strExtraFieldText = 'Check for collapsable headings<br>
                         <table><tr><td style="width: 300pt; font-style:italic">
                         For tables with many fields, you can group the fields by using
                         headings. This option allows the fields under a heading to
                         optionally be collapsed.
                         </td></tr></table>';
echoT($clsGF->strGenericCheckEntry('Collapsible heading groups?', 'chkCollapsible', 'true', false, $bCollapsible));
// Alert on No Entry
$clsGF->strExtraFieldText = 'Check to generate alert<br><table><tr><td style="width: 300pt; font-style:italic">
                         Create an alert to the user if this table doesn\'t have
                         an entry. The alert is displayed when viewing the
                         <b>' . $strTTypeLabel . '</b> record.
                         </td></tr></table>';
echoT($clsGF->strGenericCheckEntry('Create alert for no data entry?', 'chkAlertNoDataEntry', 'true', false, $bAlertNoDataEntry));
// Alert text
// will use strip_tags ( string $str [, string $allowable_tags ] ) when displayed
// Example: echo strip_tags($text, '<b><i><br>');
$clsGF->strExtraFieldText = '<br>You can use the following HTML tags:<br>
                      <ul style="margin-top: 0pt; margin-bottom: 0pt; font-family: courier" >
                         <li>&lt;b&gt; - bold</li>
                         <li>&lt;i&gt; - italic</li>
                         <li>&lt;br&gt; - line break</li>