<?php

global $gbDateFormatUS, $genumDateFormat, $gstrFormatDatePicker;
$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'));
<?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>');
<?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>');
<?php

$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
echoT(form_open('clients/client_rec_voc/addEdit/' . $lClientID));
echoT('<table class="enpView">');
echoT($clsForm->strTitleRow('Vocabulary Association', 2, ''));
echoT($clsForm->strGenericDDLEntry('Vocabulary', 'ddlVoc', true, $ddlVoc));
echoT($clsForm->strSubmitEntry('Update Client\'s Vocabulary', 2, 'cmdSubmit', ''));
echoT('</table></form><br><br><br>');
echoT('The following vocabularies are defined for your organization:<br>');
echoT(htmlVocList(false, $vocs, false));
<?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

$clsGF = new generic_form();
$clsGF->bValueEscapeHTML = false;
$attributes = array('name' => 'frmLoc', 'id' => 'frmAddEdit');
echoT(form_open('clients/client_voc/addEdit/' . $lVocID, $attributes));
$strSingular = '<font style="font-weight: normal; font-size: 8pt;">(singular)</font>';
$strPlural = '<font style="font-weight: normal; font-size: 8pt;">(plural)</font>';
echoT('<br><br><table class="enpRptC">');
echoT($clsGF->strTitleRow(($bNew ? 'Add New ' : 'Update ') . 'Client Vocabulary', 2, ''));
$clsGF->strExtraFieldText = form_error('txtVocName');
$clsGF->strID = 'addEditEntry';
echoT($clsGF->strGenericTextEntry('Vocabulary Name', 'txtVocName', true, $formD->txtVocName, 40, 255));
$clsGF->strExtraFieldText = form_error('txtVClS');
echoT($clsGF->strGenericTextEntry('Vocabulary: Client ' . $strSingular, 'txtVClS', true, $formD->txtVClS, 40, 40));
$clsGF->strExtraFieldText = form_error('txtVClP');
echoT($clsGF->strGenericTextEntry('Vocabulary: Client ' . $strPlural, 'txtVClP', true, $formD->txtVClP, 40, 40));
$clsGF->strExtraFieldText = form_error('txtVSpS');
echoT($clsGF->strGenericTextEntry('Vocabulary: Sponsor ' . $strSingular, 'txtVSpS', true, $formD->txtVSpS, 40, 40));
$clsGF->strExtraFieldText = form_error('txtVSpP');
echoT($clsGF->strGenericTextEntry('Vocabulary: Sponsor ' . $strPlural, 'txtVSpP', true, $formD->txtVSpP, 40, 40));
$clsGF->strExtraFieldText = form_error('txtLocS');
echoT($clsGF->strGenericTextEntry('Vocabulary: Location ' . $strSingular, 'txtLocS', true, $formD->txtLocS, 40, 40));
$clsGF->strExtraFieldText = form_error('txtLocP');
echoT($clsGF->strGenericTextEntry('Vocabulary: Location ' . $strPlural, 'txtLocP', true, $formD->txtLocP, 40, 40));
echoT($clsGF->strSubmitEntry('Save', 2, 'cmdSubmit', ''));
echoT('</table>' . form_close('<br><br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
<?php

global $gclsChapterVoc;
$attributes = array('name' => 'frmLoc', 'id' => 'frmAddEdit');
echoT(form_open('clients/locations/addEdit/' . $id, $attributes));
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$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>
<?php

echoT($entrySummary . '<br>');
$attributes = array('name' => 'frmLoc', 'id' => 'frmAddEdit');
echoT(form_open('admin/uf_tables_add_edit/addField2a/' . $lTableID . '/' . $lFieldID . '/' . $enumFieldType, $attributes));
$clsGF = new generic_form();
$clsGF->bValueEscapeHTML = false;
echoT('<table class="enpRptC">');
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>
<?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>');
<?php

echoT('<br>');
$attributes = array('name' => 'frmAddEditTags', 'id' => 'addEditTags');
echoT(form_open('admin/admin_imgdoc_tags/addEdit/' . $lDIT_ID . '/' . $enumContext, $attributes));
$clsGF = new generic_form();
$clsGF->bValueEscapeHTML = false;
echoT('<table class="enpRptC">');
echoT($clsGF->strTitleRow(($bNew ? 'Add ' : 'Update ') . 'an entry in tag list for <i>"' . $strContext . '"</i>', 2, ''));
$clsGF->strStyleExtraLabel = 'padding-top: 8px;';
$clsGF->strExtraFieldText = form_error('txtDDLEntry');
$clsGF->strID = 'addEditEntry';
echoT($clsGF->strGenericTextEntry('Tag', 'txtDDLEntry', true, $strDDLEntry, 40, 80));
echoT($clsGF->strSubmitEntry('Submit', 2, 'cmdSubmit', ''));
echoT('</table>' . form_close('<br><br>'));
echoT('<script type="text/javascript">addEditTags.addEditEntry.focus();</script>');
<?php

echoT($entrySummary);
echoT('<br>');
$attributes = array('name' => 'frmAddEditDDL', 'id' => 'addEditDDL');
echoT(form_open('admin/uf_ddl/addEditDDLEntry/' . $lTableID . '/' . $lFieldID . '/' . $lDDLEntryID, $attributes));
$clsGF = new generic_form();
echoT('<table class="enpRptC">');
echoT($clsGF->strTitleRow(($bNew ? 'Add ' : 'Update ') . 'an entry in drop-down list<br><i>"' . $strTableLabel . ': ' . htmlspecialchars($strUserFieldName) . '"</i>', 2, ''));
$clsGF->strStyleExtraLabel = 'padding-top: 8px;';
$clsGF->strExtraFieldText = form_error('txtDDLEntry');
$clsGF->strID = 'addEditEntry';
echoT($clsGF->strGenericTextEntry('List Entry', 'txtDDLEntry', true, $strDDLEntry, 40, 80));
echoT($clsGF->strSubmitEntry('Submit', 2, 'cmdSubmit', ''));
echoT('</table>' . form_close('<br><br>'));
echoT('<script type="text/javascript">addEditDDL.addEditEntry.focus();</script>');