$strCatID = '<i>new</i>';
} else {
    $strCatID = str_pad($lICatID, 5, '0', STR_PAD_LEFT);
}
$attributes = array('name' => 'frmEditIClient', 'id' => 'frmAddEdit');
echoT(form_open('staff/inventory/icat/addEditICat/' . $lICatID, $attributes));
openBlock(($bNew ? 'Add' : 'Update') . ' Inventory Category', '');
echoT('<table class="enpView">');
echoT($clsForm->strLabelRow('catID', $strCatID, 1));
//----------------------
// category
//----------------------
$clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 6px;';
$clsForm->strExtraFieldText = form_error('txtCat');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Category', 'txtCat', true, $formData->txtCat, 30, 255));
//----------------------
// Parent Category
//----------------------
$clsForm->strExtraFieldText = form_error('ddlParent');
$strDDL = '<select name="ddlParent">
          <option value="-1">(root)</option>' . "\n" . $ddlParent . '</select>';
echoT($clsForm->strLabelRow('Parent Category', $strDDL, 1));
//----------------------
// Notes
//----------------------
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
echoT($clsForm->strNotesEntry('Notes', 'txtNotes', false, $formData->txtNotes, 5, 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>');
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
$clsForm->strStyleExtraLabel = 'width: 100pt;';
openBlock('Silent Auction', '');
echoT('<table>');
//-------------------------------
// 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));
<?php

$clsGF = new generic_form();
$clsGF->bValueEscapeHTML = false;
$attributes = array('name' => 'frmLoc', 'id' => 'frmAddEdit');
echo form_open('admin/admin_special_lists/sponsorship_lists/addEditProg/' . $lSPID, $attributes);
echoT('<br><br><table class="enpRptC">');
echoT($clsGF->strTitleRow(($bNew ? 'Add new ' : 'Update ') . 'Sponsorship Program', 2, ''));
$clsGF->strExtraFieldText = form_error('txtProg');
$clsGF->strID = 'addEditEntry';
echoT($clsGF->strGenericTextEntry('Program Name', 'txtProg', true, $strSponProg, 40, 80));
if (is_numeric($curDefMonthlyCommit)) {
    $strCommit = number_format($curDefMonthlyCommit, 2);
} else {
    //      $strCommit = htmlspecialchars($curDefMonthlyCommit);
    $strCommit = $curDefMonthlyCommit;
}
$clsGF->strExtraFieldText = form_error('txtCommit');
echoT($clsGF->strGenericTextEntry('Monthly Commitment', 'txtCommit', true, $strCommit, 8, 8));
echoT('
      <tr>
         <td class="enpRptLabel">
            <b>Accounting Country*:</b>
         </td>
         <td class="enpRpt">' . $strACORadio . form_error('rdoACO') . '</td>
      </tr>');
echoT($clsGF->strSubmitEntry('Save', 2, 'cmdSubmit', ''));
echoT('</table></form><br><br>');
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
     $strTitle = "Add New {$strClientVName}";
     $strButton = "Add {$strClientVName}";
 } else {
     $strTitle = "Update {$strClientVName}";
     $strButton = "Update {$strClientVName}";
 }
 openBlock($strTitle, '');
 echoT('<table class="enpView">' . $clsForm->strLabelRow($clsClientV->vocs[0]->strLocS, $clsLocation->strLocation, 1));
 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'));
 //-----------------------------------------------------
$clsForm->bValueEscapeHTML = false;
$clsForm->strStyleExtraLabel = 'width: 100pt;';
openBlock('Pledge', '');
echoT('<table>');
//-------------------------------
// Record ID
//-------------------------------
echoT($clsForm->strLabelRow('Pledge ID', $bNew ? '<i>new</i>' : str_pad($lPledgeID, 5, '0', STR_PAD_LEFT), 1));
//-------------------------------
// Commitment Amount
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strExtraFieldText = ' <i>Amount pledged for each pledge payment</i>' . form_error('txtCommit');
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Pledge Amount', 'txtCommit', true, $formData->txtCommit, 10, 20));
//-------------------------------
// Payment Frequency
//-------------------------------
$clsForm->strExtraFieldText = form_error('ddlFreq');
echoT($clsForm->strLabelRow('Payment Frequency', $formData->strDDLFreq, 1));
//-------------------------------
// # of payments
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strExtraFieldText = ' <i>Total # of pledge payment</i>' . form_error('txtNumPay');
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';
echoT($clsForm->strGenericTextEntry('# of payments', 'txtNumPay', true, $formData->txtNumPay, 5, 10));
//-------------------------------
// Accounting country of Origin
//-------------------------------
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
openBlock('Add New Custom Report', '');
echoT('<table class="enpView" >');
//-------------------
// Open form
//-------------------
$attributes = array('name' => 'frmAddCRpt', 'id' => 'frmAddEdit');
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?
<?php

$attributes = array('name' => 'frmLoc', 'id' => 'frmAddEdit');
echoT(form_open('admin/org/addEdit/' . $id, $attributes) . '<br>');
$clsGF = new generic_form();
$clsGF->bValueEscapeHTML = false;
$clsGF->strLabelClass = $clsGF->strLabelRowLabelClass = $clsGF->strLabelClassRequired = 'enpViewLabel';
$clsGF->strTitleClass = 'enpViewTitle';
$clsGF->strStyleExtraLabel = 'width: 100pt; padding-top: 8px;';
$clsGF->strEntryClass = 'enpView';
openBlock(($bNew ? 'Add new ' : 'Edit ') . 'Your Organization Info', '');
echoT('<table class="enpView" >');
//   echoT($clsGF->strTitleRow( (($bNew ? 'Add new ' : 'Edit ').'Your Organization Info'), 2, ''));
$clsGF->strExtraFieldText = form_error('txtChapter');
$clsGF->strID = 'addEditEntry';
echoT($clsGF->strGenericTextEntry('Organization Name', 'txtChapter', true, $clsChapter->strName, 50, 80));
$clsGF->strExtraFieldText = form_error('txtBanner');
echoT($clsGF->strGenericTextEntry('Banner Tag Line', 'txtBanner', true, $clsChapter->strBanner, 50, 80));
echoT($clsGF->strGenericTextEntry('Address', 'txtAddr1', false, $clsChapter->strAddr1, 30, 80));
echoT($clsGF->strGenericTextEntry('Address 2', 'txtAddr2', false, $clsChapter->strAddr2, 30, 80));
echoT($clsGF->strGenericTextEntry('City', 'txtCity', false, $clsChapter->strCity, 30, 40));
echoT($clsGF->strGenericTextEntry('State', 'txtState', false, $clsChapter->strState, 30, 40));
echoT($clsGF->strGenericTextEntry('Country', 'txtCountry', false, $clsChapter->strCountry, 30, 40));
echoT($clsGF->strGenericTextEntry('Zip', 'txtZip', false, $clsChapter->strZip, 12, 25));
echoT($clsGF->strGenericTextEntry('Phone', 'txtPhone', false, $clsChapter->strPhone, 30, 50));
echoT($clsGF->strGenericTextEntry('Fax', 'txtFax', false, $clsChapter->strFax, 30, 50));
$clsGF->strExtraFieldText = form_error('txtEmail');
echoT($clsGF->strGenericTextEntry('Email', 'txtEmail', false, $clsChapter->strEmail, 30, 80));
echoT($clsGF->strGenericTextEntry('Web Site', 'txtWebSite', false, $clsChapter->strWebSite, 30, 100));
/*
   echoT($clsGF->strGenericTextEntry  ('Default Area Code', 'txtDefAC',      false,  $clsChapter->strDefAreaCode, 16, 10));
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
$attributes = array('name' => 'frmAddEdit', 'id' => 'frmGroupAddEdit');
echoT(form_open('groups/add_edit_group/addEdit/' . $enumGroupType . '/' . $lGID, $attributes));
//   $clsGF = new generic_form();
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;
    }
}
/* -------------------------------------
}
echoT($strDuplicateWarning);
openBlock('Name', '');
echoT('<table class="enpView" >');
//------------------------
// Biz ID
//------------------------
$clsForm->bValueEscapeHTML = false;
echoT($clsForm->strLabelRow('Biz ID', $strBizID, 1));
//------------------------
// Name
//------------------------
$clsForm->strID = 'addEditEntry';
$clsForm->strStyleExtraLabel = 'width: 90pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtBizName');
echoT($clsForm->strGenericTextEntry('Name', 'txtBizName', true, $formData->txtBizName, 40, 120));
echoT('</table>');
closeBlock();
openBlock('Address', '');
echoT('<table class="enpView" >');
//------------------------
// Address 1
//------------------------
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($gclsChapterVoc->vocState, 'txtState', false, $formData->txtState, 40, 80));
echoT($clsForm->strGenericTextEntry($gclsChapterVoc->vocZip, 'txtZip', false, $formData->txtZip, 20, 40));
echoT($clsForm->strGenericTextEntry('Country', 'txtCountry', false, $formData->txtCountry, 20, 40));
echoT('</table>');
closeBlock();
    $strTitle = "Add New Volunteer";
    $strButton = "Add Volunteer";
} else {
    $strTitle = "Update Volunteer Record";
    $strButton = "Update";
}
$clsForm->strStyleExtraLabel = 'width: 90pt;';
openBlock('Name', '');
echoT('<table class="enpView" >');
//------------------------
// Title
//------------------------
$clsForm->strStyleExtraLabel = 'width: 90pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtTitle');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Title', 'txtTitle', false, $formData->txtTitle, 40, 50));
//------------------------
// Name
//------------------------
$clsForm->strExtraFieldText = form_error('txtFName');
echoT($clsForm->strGenericTextEntry('First Name', 'txtFName', true, $formData->txtFName, 40, 80));
echoT($clsForm->strGenericTextEntry('Middle Name', 'txtMName', false, $formData->txtMName, 40, 80));
$clsForm->strExtraFieldText = form_error('txtLName');
echoT($clsForm->strGenericTextEntry('Last Name', 'txtLName', true, $formData->txtLName, 40, 80));
echoT($clsForm->strGenericTextEntry('Preferred Name', 'txtPName', false, $formData->txtPName, 40, 80));
echoT('</table>');
closeBlock();
//------------------------
// Address
//------------------------
openBlock('Address / Phone', '');
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
$attributes = array('name' => 'frmClientDups', 'id' => 'frmAddEdit');
echoT(form_open('util/dup_records/opts/' . $enumContext, $attributes));
openBlock('Consolidate Duplicate ' . $strLabel . ' Records', '');
echoT('<table class="enpView">');
//----------------------
// Good ID
//----------------------
$clsForm->strStyleExtraLabel = 'width: 120pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtGoodID');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Correct ' . $strLabel . ' ID', 'txtGoodID', true, $formData->txtGoodID, 8, 8));
//----------------------
// Bad IDs
//----------------------
$clsForm->strExtraFieldText = '<br><i>Enter one or more comma-seperated duplicate ' . $strLabel . ' IDs.</i>' . form_error('txtBadIDs');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Duplicate ' . $strLabel . ' IDs', 'txtBadIDs', true, $formData->txtBadIDs, 60, 120));
echoT($clsForm->strSubmitEntry('Review ' . $strLabel . ' Records', 2, 'cmdSubmit', 'text-align: center;'));
echoT('</table>' . form_close('<br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
switch ($enumContext) {
    case CENUM_CONTEXT_CLIENT:
        echoT('<i>This utility will transfer client information from the duplicate records<br>
                to the correct record. The transferred information includes:<br>
                <ul>
                   <li>Sponsorships
}
//echo(__FILE__.' '.__LINE__.'<br>'."\n"); die;
//--------------------------------
// Aggregate
//--------------------------------
if ($viewOpts->bShowAggregateDonor) {
    echoT($clsForm->strLabelRow('Grouping', '<input type="radio" name="rdoAggDonor" value="all"   ' . ($formData->enumAgg == 'all' ? 'checked' : '') . '>Individual Donors&nbsp;' . '<input type="radio" name="rdoAggDonor" value="group" ' . ($formData->enumAgg == 'group' ? 'checked' : '') . '>Group by Donor (cumulative)&nbsp;', 1));
}
//-------------------------------
// Min Amount
//-------------------------------
if ($viewOpts->bShowMinAmnt) {
    $clsForm->strStyleExtraLabel = 'padding-top: 8px;';
    $clsForm->strExtraFieldText = form_error('txtMinAmount');
    $clsForm->strID = 'addEditEntry';
    echoT($clsForm->strGenericTextEntry('Minimum Amount', 'txtMinAmount', false, $formData->strMinAmount, 14, 20));
}
//-------------------------------
// Max Amount
//-------------------------------
if ($viewOpts->bShowMaxAmnt) {
    $clsForm->strStyleExtraLabel = 'padding-top: 8px;';
    $clsForm->strExtraFieldText = form_error('txtMaxAmount');
    $clsForm->strID = 'addEditEntry';
    echoT($clsForm->strGenericTextEntry('Maximum Amount', 'txtMaxAmount', false, $formData->strMaxAmount, 14, 20));
}
//-------------------------------
// Account
//-------------------------------
if ($viewOpts->bShowAcct) {
    $clsForm->strStyleExtraLabel = '';
<?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->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
if ($bNew) {
    $strGrantID = '<i>new</i>';
} else {
    $strGrantID = str_pad($lGrantID, 5, '0', STR_PAD_LEFT);
}
$attributes = array('name' => 'frmEditGrant', 'id' => 'frmAddEdit');
echoT(form_open('grants/grant_add_edit/addEdit/' . $lProviderID . '/' . $lGrantID, $attributes));
openBlock(($bNew ? 'Add new ' : 'Edit Existing ') . 'Grant', '');
echoT('<table class="enpView">');
//----------------------
// Grant Name
//----------------------
$clsForm->strExtraFieldText = form_error('txtGrantName');
echoT($clsForm->strGenericTextEntry('Grant Name', 'txtGrantName', true, $formData->txtGrantName, 50, 255));
//-------------------------------
// 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>');
//-------------------------------
// Notes
//-------------------------------
echoT($clsForm->strNotesEntry('Notes', 'txtNotes', false, $formData->txtNotes, 3, 40));
global $gclsChapterVoc;
$attributes = array('name' => 'frmLoc', 'id' => 'frmAddEdit');
echoT(form_open('admin/org/addEdit/' . $id, $attributes) . '<br>');
$clsGF = new generic_form();
$clsGF->bValueEscapeHTML = false;
$clsGF->strLabelClass = $clsGF->strLabelRowLabelClass = $clsGF->strLabelClassRequired = 'enpViewLabel';
$clsGF->strTitleClass = 'enpViewTitle';
$clsGF->strStyleExtraLabel = 'width: 120pt; padding-top: 8px;';
$clsGF->strEntryClass = 'enpView';
openBlock(($bNew ? 'Add new ' : 'Edit ') . 'Your Organization Info', '');
echoT('<table class="enpView" >');
//   echoT($clsGF->strTitleRow( (($bNew ? 'Add new ' : 'Edit ').'Your Organization Info'), 2, ''));
$clsGF->strExtraFieldText = form_error('txtChapter');
$clsGF->strID = 'addEditEntry';
echoT($clsGF->strGenericTextEntry('Organization Name', 'txtChapter', true, $clsChapter->strName, 50, 80));
$clsGF->strExtraFieldText = form_error('txtBanner');
echoT($clsGF->strGenericTextEntry('Banner Tag Line', 'txtBanner', true, $clsChapter->strBanner, 50, 80));
echoT($clsGF->strGenericTextEntry('Address', 'txtAddr1', false, $clsChapter->strAddr1, 30, 80));
echoT($clsGF->strGenericTextEntry('Address 2', 'txtAddr2', false, $clsChapter->strAddr2, 30, 80));
echoT($clsGF->strGenericTextEntry('City', 'txtCity', false, $clsChapter->strCity, 30, 40));
echoT($clsGF->strGenericTextEntry($gclsChapterVoc->vocState, 'txtState', false, $clsChapter->strState, 30, 40));
echoT($clsGF->strGenericTextEntry('Country', 'txtCountry', false, $clsChapter->strCountry, 30, 40));
echoT($clsGF->strGenericTextEntry($gclsChapterVoc->vocZip, 'txtZip', false, $clsChapter->strZip, 12, 25));
echoT($clsGF->strGenericTextEntry('Phone', 'txtPhone', false, $clsChapter->strPhone, 30, 50));
echoT($clsGF->strGenericTextEntry('Fax', 'txtFax', false, $clsChapter->strFax, 30, 50));
$clsGF->strExtraFieldText = form_error('txtEmail');
echoT($clsGF->strGenericTextEntry('Email', 'txtEmail', false, $clsChapter->strEmail, 30, 80));
echoT($clsGF->strGenericTextEntry('Web Site', 'txtWebSite', false, $clsChapter->strWebSite, 30, 100));
echoT($clsGF->strGenericTextEntry('Default Area Code', 'txtDefAC', false, $clsChapter->strDefAreaCode, 16, 10));
echoT($clsGF->strGenericTextEntry('Default ' . $gclsChapterVoc->vocState, 'txtDefState', false, $clsChapter->strDefState, 16, 40));
<?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();
echoT('<table class="enpView">');
if ($bClone) {
    // source program ID
    echoT($clsForm->strLabelRow('Original Client Program ID', str_pad($lCloneSourceID, 5, '0', STR_PAD_LEFT), 1));
    // source program ID
    echoT($clsForm->strLabelRow('Original Program Name', '<b>' . htmlspecialchars($strSourceProgName) . '</b><br><br>', 1));
}
// program ID
echoT($clsForm->strLabelRow('Client Program ID', $strCProgID, 1));
//----------------------
// Program Name
//----------------------
$clsForm->strStyleExtraLabel = 'width: 120pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtProgramName');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Program Name', 'txtProgramName', true, $formData->txtProgramName, 50, 255));
//----------------------
// 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');
//---------------------------------
// form setup
//---------------------------------
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
echoT('<table width="800" border="0">');
//---------------------------------
// search text
//---------------------------------
$clsForm->strStyleExtraLabel = 'width: 50pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtSearch');
$clsForm->strID = 'searchEntry';
echoT($clsForm->strGenericTextEntry('Search', 'txtSearch', false, $strSearch, 40, 200));
//---------------------------------
// search qualifier
//---------------------------------
$clsForm->strStyleExtraLabel = 'padding-top: 3px;';
$rdoCriteria = '
        <input type="radio" name="rdoCriteria" value="phrase" ' . ($criteria->bPhrase ? 'checked' : '') . '>Exact phrase&nbsp;&nbsp;
        <input type="radio" name="rdoCriteria" value="all"    ' . ($criteria->bAll ? 'checked' : '') . '>All words&nbsp;&nbsp;
        <input type="radio" name="rdoCriteria" value="any"    ' . ($criteria->bAny ? 'checked' : '') . '>Any word<br>
        <i><font style="font-size:12px;">
             Note: short or common words (like </i><b>the</b><i> and </i><b>and</b><i>) may 
             be ignored for the "all" and "any" options</font><i>';
echoT($clsForm->strLabelRow('Look for', $rdoCriteria, 1));
//---------------------------------
// search in
//---------------------------------
echoT(form_open('hospice/super/location_rec/addEditLoc/' . $lLocID, $attributes));
if ($bNew) {
    $strTitle = "Add New Location";
    $strButton = "Add Location";
} else {
    $strTitle = "Update Location Record";
    $strButton = "Update";
}
$clsForm->strStyleExtraLabel = 'width: 80pt;';
openBlock('Location', '');
echoT('<table class="enpView" >');
echoT($clsForm->strLabelRow('locationID', $strLID, 1));
// Location name / banner name
$clsForm->strExtraFieldText = form_error('txtLocName');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Location Name', 'txtLocName', true, $formData->txtLocName, 50, 80));
$clsForm->strExtraFieldText = form_error('txtLocBannerTag');
echoT($clsForm->strGenericTextEntry('Banner Tag Line', 'txtLocBannerTag', true, $formData->txtLocBannerTag, 50, 80));
// 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 / Fax / Email / Web
echoT($clsForm->strGenericTextEntry('Phone', 'txtPhone', false, $formData->txtPhone, 20, 40));
echoT($clsForm->strGenericTextEntry('Fax', 'txtFax', false, $formData->txtFax, 20, 40));
$clsForm->strExtraFieldText = form_error('txtEmail');
echoT($clsForm->strGenericTextEntry('Email', 'txtEmail', false, $formData->txtEmail, 40, 120));
echoT($clsForm->strGenericTextEntry('Web', 'txtWeb', false, $formData->txtWeb, 40, 120));
$attributes = array('name' => 'frmIItem', 'id' => 'frmAddEdit');
echoT(form_open('staff/inventory/inventory_items/addEditItem/' . $lICatID . '/' . $lIItemID, $attributes));
openBlock(($bNew ? 'Add' : 'Update') . ' Inventory Item', '');
echoT('<table class="enpView">');
echoT($clsForm->strLabelRow('itemID', $strItemID, 1));
//----------------------
// Category Breadcrumb
//----------------------
echoT($clsForm->strLabelRow('Category', htmlspecialchars($strBreadCrumb), 1));
//----------------------
// Item name
//----------------------
$clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 6px;';
$clsForm->strExtraFieldText = form_error('txtItem');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Item', 'txtItem', true, $formData->txtItem, 30, 255));
//----------------------
// Serial # a
//----------------------
$clsForm->strExtraFieldText = form_error('txtSNa');
echoT($clsForm->strGenericTextEntry('Serial/Item Tag (a)', 'txtSNa', false, $formData->txtSNa, 30, 255));
//----------------------
// 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));
//----------------------
// 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->strGenericTextEntry('Account', 'txtAccount', false, $formData->txtAccount, 30, 80));
//----------------------
// Notes
//----------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 3pt; ';
echoT($clsForm->strNotesEntry('Notes', 'txtNotes', false, $formData->txtNotes, 4, 40));
echoT($clsForm->strSubmitEntry('Create Deposit', 2, 'cmdSubmit', 'text-align: center;'));
echoT('</table>' . form_close('<br>'));
closeblock();
echoT(form_open('hospice/patients/patient_rec/addEditPRec/' . $lPatientID, $attributes));
if ($bNew) {
    $strTitle = "Add New Patient";
    $strButton = "Add Patient";
} else {
    $strTitle = "Update Patient Record";
    $strButton = "Update";
}
$clsForm->strStyleExtraLabel = 'width: 90pt;';
openBlock('Name', '');
echoT('<table class="enpView" >');
echoT($clsForm->strLabelRow('patientID', $strPID, 1));
// Title
$clsForm->strStyleExtraLabel = 'width: 90pt; padding-top: 6px;';
$clsForm->strExtraFieldText = form_error('txtTitle');
echoT($clsForm->strGenericTextEntry('Title', 'txtTitle', false, $formData->txtTitle, 30, 30));
// 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');
$attributes = array('name' => $strForm, 'id' => 'frmAddEdit');
echoT(form_open('volunteers/events_add_edit/addEditEvent/' . $lEventID, $attributes));
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strEntryClass = 'enpView';
if ($bNew) {
    $strEventID = '<i>new</i>';
} else {
    $strEventID = str_pad($lEventID, 5, '0', STR_PAD_LEFT);
}
echoT('<table>');
$clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 2px;';
$clsForm->bValueEscapeHTML = false;
echoT($clsForm->strLabelRow('Event ID', $strEventID, 1));
$clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 8px;';
$clsForm->strID = 'addEditEntry';
$clsForm->strExtraFieldText = form_error('txtEvent');
echoT($clsForm->strGenericTextEntry('Event Name', 'txtEvent', true, $formData->strEventName, 53, 255));
echoT($clsForm->strNotesEntry('Note', 'txtNote', false, $formData->strDescription, 4, 50));
echoT($clsForm->strNotesEntry('Location', 'txtLocation', false, $formData->strLocation, 4, 50));
echoT($clsForm->strGenericTextEntry('Contact', 'txtContact', false, $formData->strContact, 53, 255));
echoT($clsForm->strGenericTextEntry('Phone', 'txtPhone', false, $formData->strPhone, 53, 80));
$clsForm->strExtraFieldText = form_error('txtEmail');
echoT($clsForm->strGenericTextEntry('Email', 'txtEmail', false, $formData->strEmail, 53, 200));
echoT($clsForm->strGenericTextEntry('Web Link', 'txtWebLink', false, $formData->strWebSite, 53, 200));
if ($bNew) {
    echoT($recurringOpts);
}
echoT($clsForm->strSubmitEntry('Save Event', 2, 'cmdSubmit', ''));
echoT('</table></form>');
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
//----------------------
// 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');
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('
// Campaign/Account
//-------------------------------
echoT($clsForm->strLabelRow('Campaign/Account', htmlspecialchars($pledge->strCampaign . ' / ' . $pledge->strAccount), 1));
/* -------------------------------------
echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\'))
   .': '.__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));
//-------------------------------
// Winner
if ($pbInfo->bBiz) {
    $strNameLink = ' <i>(business)</i> ';
} else {
    $strNameLink = ' ';
}
echoT($clsForm->strLabelRow('Winning Bidder', $pbInfo->strSafeNameFL . $strNameLink . $pbInfo->strLink, 1));
//-------------------------------
// Winning Amount
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strExtraFieldText = form_error('txtPackageName');
$clsForm->strID = 'winnerAmnt';
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';
$clsForm->strTextBoxPrefix = $auction->strCurrencySymbol;
$clsForm->strStyleExtraValue = 'vertical-align: middle; ';
$clsForm->strExtraFieldText = form_error('txtAmount');
echoT($clsForm->strGenericTextEntry('Winning Amount', 'txtAmount', true, $formData->txtAmount, 8, 20));
/*   
      //-------------------------------
      // Payment Received?
      //-------------------------------
   $clsForm->strExtraFieldText = ' (if checked, a gift record will be created)';
   echoT($clsForm->strGenericCheckEntry('Payment Received?', 
                    'chkReceived', 'true', false, $formData->bReceived));
*/
echoT($clsForm->strSubmitEntry('Save', 2, 'cmdSubmit', 'width: 90pt;'));
echoT(form_close());
echoT('<script type="text/javascript">frmWinningBid.winnerAmnt.focus();</script>');
echoT('</table>');
closeBlock();
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
$attributes = array('name' => 'frmTSTemplate', 'id' => 'frmAddEdit');
echoT(form_open('admin/timesheets/add_edit_tst_record/addEditTST/' . $lTSTID, $attributes));
openBlock('Time Sheets: ' . ($bNew ? 'Add New' : 'Edit') . ' Template', '');
echoT('<table class="enpView">');
//------------------------
// Template Name
//------------------------
$clsForm->strStyleExtraLabel = 'width: 130pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtTemplateName');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Template Name', 'txtTemplateName', true, $formData->txtTemplateName, 30, 80));
if ($bNew) {
    // Time Period
    $clsForm->strExtraFieldText = form_error('ddlTP');
    echoT($clsForm->strLabelRow('Time Period', $formData->strTimePeriodDDL, 1));
    // Start of Week
    $clsForm->strExtraFieldText = '<i>Applies to weekly time periods</i><br>' . form_error('ddlStart');
    echoT($clsForm->strLabelRow('Start of Week', $formData->strStartSOWDDL, 1));
} else {
    // Time Period
    $clsForm->strStyleExtraLabel = 'padding-top: 3px;';
    echoT($clsForm->strLabelRow('Time Period', $tst->enumRptPeriod, 1));
    // 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;';
} else {
    $strProviderID = str_pad($lProviderID, 5, '0', STR_PAD_LEFT);
}
$attributes = array('name' => 'frmEditGrant', 'id' => 'frmAddEdit');
echoT(form_open('grants/provider_add_edit/addEdit/' . $lProviderID, $attributes));
openBlock(($bNew ? 'Add new ' : 'Edit Existing ') . 'Funding Provider', '');
echoT('<table class="enpView">');
// program ID
echoT($clsForm->strLabelRow('Provider ID', $strProviderID, 1));
//----------------------
// Granting Organization
//----------------------
$clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 8px;';
$clsForm->strExtraFieldText = form_error('txtGrantOrg');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Provider/Grantor', 'txtGrantOrg', true, $formData->txtGrantOrg, 50, 255));
//----------------------
// Grant Name
//----------------------
//   $clsForm->strExtraFieldText = form_error('txtGrantName');
//   echoT($clsForm->strGenericTextEntry('Grant Name',  'txtGrantName', true,  $formData->txtGrantName, 50, 255));
/*
      //-------------------------------
      // Accounting country of Origin
      //-------------------------------
   echoT('
         <tr>
            <td class="enpViewLabel" width="100" style="padding-top: 8px;">
               Accounting Country:
            </td>
            <td class="enpView">'
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
$clsForm->strStyleExtraLabel = 'width: 100pt;';
openBlock('Ajax Demo', '');
echoT('<table>');
//-------------------------------
// Name
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strExtraFieldText = form_error('ddlNames');
$clsForm->strID = 'donorName';
$clsForm->strTxtControlExtra = ' onkeyup="showResult(this.value)" autocomplete="off" ';
$clsForm->strExtraFieldText = '
                <span id="notFound" style="visibility: hidden;">(no matches)</span> 
                <br><select name="ddlNames" id="selNames" 
                        size="4" 
                        style="visibility: hidden;"
                        onchange="populateSearch()"></select>
                        
                        ';
echoT('<!--  ------------------------------------------------------------- -->');
echoT('<!--  ------------------------------------------------------------- -->');
echoT($clsForm->strGenericTextEntry('Donor Name', 'txtDonor', true, '', 40, 120));
echoT('<!--  ------------------------------------------------------------- -->');
echoT('<!--  ------------------------------------------------------------- -->');
echoT($clsForm->strSubmitEntry('Save', 2, 'cmdSubmit', 'width: 100pt;'));
echoT(form_close());
echoT('<script type="text/javascript">frmAjaxDemo.donorName.focus();</script>');
echoT('</table>');
closeBlock();
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
$clsForm->strStyleExtraLabel = 'width: 130pt;';
openBlock('Silent Auction Package', '');
echoT('<table>');
//-------------------------------
// Record ID
//-------------------------------
echoT($clsForm->strLabelRow('Package ID', $bNew ? '<i>new</i>' : str_pad($lPackageID, 5, '0', STR_PAD_LEFT), 1));
//-------------------------------
// Package Name
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strExtraFieldText = form_error('txtPackageName');
$clsForm->strID = 'addEditEntry';
echoT($clsForm->strGenericTextEntry('Package Name', 'txtPackageName', true, $formData->txtPackageName, 40, 255));
//-------------------------------
// Public Notes
//-------------------------------
$clsForm->strExtraFieldText = form_error('txtPublicNotes');
echoT($clsForm->strNotesEntry('Public Notes', 'txtPublicNotes', false, $formData->txtPublicNotes, 2, 40));
//-------------------------------
// Private Notes
//-------------------------------
$clsForm->strExtraFieldText = form_error('txtPrivateNotes');
echoT($clsForm->strNotesEntry('Private Notes', 'txtPrivateNotes', false, $formData->txtPrivateNotes, 2, 40));
//-------------------------------
// Minimum Bid
//-------------------------------
$clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; ';
$clsForm->strTxtControlExtra = ' style="text-align: right;" ';