<?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));
function tf_strRowUserDefined(&$opts) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->strStyleExtraLabel = 'width: 90pt;'; $clsForm->bValueEscapeHTML = false; $strRadioFN = $opts->strRadioFN; $strOut = ''; $strOut .= ' <tr> <td valign="top"> <input type="radio" name="' . $strRadioFN . '" value="User" ' . ($opts->bDateRange ? 'checked' : '') . ' > </td> <td valign="middle"> <span onClick=setRadioOther(' . $opts->strFormName . '.' . $strRadioFN . ',\'User\')> define your report range:</span> <br>' . "\n"; //---------------------- // report start //---------------------- $strOut .= '<table >'; $strOut .= strDatePicker('datepicker1', false); $clsForm->strStyleExtraLabel = 'padding-top: 8px;'; $clsForm->strExtraFieldText = form_error($opts->strSDateFN); $clsForm->calOptsTextOnFocus = $clsForm->calOptsTextOnChange = ' setDateRadio(' . $opts->strFormName . '.' . $strRadioFN . ',\'User\') '; $strOut .= $clsForm->strGenericDatePicker('Start', $opts->strSDateFN, true, $opts->txtSDate, $opts->strFormName, 'datepicker1', ''); //---------------------- // report end //---------------------- $strOut .= strDatePicker('datepicker2', true); $clsForm->strExtraFieldText = form_error($opts->strEDateFN); $strOut .= $clsForm->strGenericDatePicker('End', $opts->strEDateFN, true, $opts->txtEDate, $opts->strFormName, 'datepicker2'); $clsForm->calOptsTextOnFocus = $clsForm->calOptsTextOnChange = ''; $strOut .= '</table>'; return $strOut; }
<?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 global $genumDateFormat; $params = array('enumStyle' => 'terse', 'clsRpt'); $clsRpt = new generic_rpt($params); $clsRpt->strWidthLabel = '160pt'; $attributes = array('name' => 'frmTSProjects', 'id' => 'frmAddEdit'); echoT(form_open('staff/timesheets/ts_projects/assignHrsToProject/' . $lTSLogID, $attributes)); $bSubmitted = !is_null($logRec->dteSubmitted); echoT(ts_util\strTSTLogOverviewBlock($clsRpt, $tst, $logRec, false, false)); $b24Hr = $logRec->b24HrTime; $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; $clsForm->strStyleExtraLabel = 'padding-top: 8px;'; $clsForm->strStyleExtraValue = 'vertical-align: middle;'; openBlock('Assign Times to Projects', ''); echoT('<table class="enpView" >'); $idx = 0; $clsForm->strID = 'addEditEntry'; foreach ($projects as $project) { writeProjectRow($idx, $project); ++$idx; } echoT('</table>'); closeBlock(); echoT($clsForm->strSubmitEntry('Save', 2, 'cmdSubmit', 'text-align: center; width: 90pt;')); echoT(form_close('<br>')); echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
<?php $attributes = array('name' => 'frmRptOptsSUDE', 'id' => 'rptOptsSUDE'); echoT(form_open('hospice/reports/su_data_entry/opts', $attributes)); openBlock('Monthly Data Entry Report', ''); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; $clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 6px;'; echoT('<table width="500" border="0">'); //------------------------ // starting month //------------------------ $clsForm->strExtraFieldText = form_error('txtMonth'); echoT($clsForm->strLabelRow('For the month', '<input type="text" value="' . $txtMonth . '" name="txtMonth" size="8" id="month1">', 1, '')); $clsForm->strStyleExtraLabel = 'text-align: left; width: 100pt;'; echoT($clsForm->strSubmitEntry('View Report', 1, 'cmdSubmit', '')); echoT('</table>' . form_close('<br>')); closeblock();
<?php echoT(form_open('reports/pre_clients/bDay_run')); if ($lNumLocations == 0) { echoT('<br><i>There are no client locations defined in your database.</i><br><br>'); return; } openBlock('Client Birthdays', ''); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->strStyleExtraLabel = 'width: 90pt;'; $clsForm->bValueEscapeHTML = false; echoT('<table width="800" border="0">'); // location selection $clsForm->strStyleExtraLabel = 'width: 80pt; padding-top: 8px;'; $strOut = '<select name="ddlLoc"> <option value="-1" selected>All locations</option>' . $ddlLocs . '</select>'; echoT($clsForm->strLabelRow('Location', $strOut, 1)); // month selection $strOut = '<select name="ddlMonth">' . "\n"; for ($idx = 1; $idx <= 12; ++$idx) { $strOut .= '<option value="' . $idx . '">' . strXlateMonth($idx) . '</option>' . "\n"; } $strOut .= '</select>' . "\n"; echoT($clsForm->strLabelRow('Birthdays in', $strOut, 1)); echoT($clsForm->strSubmitEntry('Run Report', 2, 'cmdSubmit', 'text-align: center;')); echoT('</table>' . form_close('<br>')); closeblock();
<?php global $genumDateFormat; $attributes = array('name' => 'frmEditPledge', 'id' => 'frmAddEdit'); echoT(form_open('donations/pledge_add_edit/addEditPayment/' . $lPledgeID . '/' . $lGiftID . '/' . $dtePledge, $attributes)); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; $clsForm->strStyleExtraLabel = 'width: 100pt;'; openBlock('Pledge Payment', ''); echoT('<table>'); //------------------------------- // Pledge ID //------------------------------- echoT($clsForm->strLabelRow('Pledge ID', str_pad($lPledgeID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_Pledge($lPledgeID, 'View pledge record', true), 1)); //------------------------------- // Gift ID //------------------------------- if (is_null($lGiftID)) { $strGiftID = 'n/a'; } else { $strGiftID = str_pad($lGiftID, 5, '0', STR_PAD_LEFT); } echoT($clsForm->strLabelRow('Gift ID', str_pad($lGiftID, 5, '0', STR_PAD_LEFT), 1)); //------------------------------- // Commitment //------------------------------- echoT($clsForm->strLabelRow('Commitment', $pledge->strACOCurSymbol . ' ' . number_format($pledge->curCommitment, 2) . ' (' . $pledge->enumFreq . ') ' . $pledge->strFlagImg, 1)); //------------------------------- // Campaign/Account
<?php global $gbDateFormatUS, $gstrFormatDatePicker; $attributes = array('name' => $viewOpts->strFormName, 'id' => $viewOpts->strID); echoT(form_open('reports/pre_gift_ack/showOpts/' . $enumAckType, $attributes)); openBlock('Gift Acknowledgment / ' . $strLabel, ''); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->strStyleExtraLabel = 'width: 100pt;'; $clsForm->bValueEscapeHTML = false; echoT('<table width="900" border="0">'); //------------------------------- // Accounting country of Origin //------------------------------- $clsForm->strStyleExtraLabel = 'vertical-align: middle; width: 120pt; '; echoT($clsForm->strLabelRow('Accounting Country', $formData->strACORadio, 1)); $clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6px;'; $clsForm->strStyleExtraValue = 'vertical-align: top;'; echoT($clsForm->strLabelRow('Time Frame', $dateRanges, 1)); /* //---------------------- // report start //---------------------- $clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 6pt; '; echoT(strDatePicker('datepicker1', false)); $clsForm->strExtraFieldText = form_error('txtSDate'); echoT($clsForm->strGenericDatePicker( 'Start', 'txtSDate', true,
<?php global $gbDateFormatUS, $gstrFormatDatePicker, $gdteNow; $attributes = array('name' => 'frmSponProgRpt', 'id' => 'sponProgRpt'); echoT(form_open('reports/pre_spon_via_prog/run', $attributes)); openBlock('Sponsorships Via Program', ''); if ($lNumProgs <= 0) { echoT('<br><br><i>There are no sponsorship programs defined in your database</i>'); } else { $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">'); //---------------------------- // sponsorship program //---------------------------- $strDDLOptions = ''; $bFirst = true; foreach ($sponProgs as $sponProg) { $strDDLOptions .= '<option value="' . $sponProg->lKeyID . '" ' . ($sponProg->bDefault ? 'SELECTED' : '') . '>' . htmlspecialchars($sponProg->strProg) . '</option>' . "\n"; } echoT($clsForm->strGenericDDLEntry('Sponsorship Program', 'ddlSponProg', false, $strDDLOptions)); $clsForm->strExtraFieldText = '(check to include inactive sponsorships)'; echoT($clsForm->strGenericCheckEntry('Include inactive', 'chkInactive', 'true', false, false)); $clsForm->strStyleExtraLabel = 'text-align: left;'; echoT($clsForm->strSubmitEntry('Run Report', 2, 'cmdSubmit', 'text-align: left;')); echoT('</table>' . form_close('<br>')); }
<?php global $gbDateFormatUS, $gstrFormatDatePicker; global $gclsChapterVoc; $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; if ($bNoStatEntries) { echoT($strNoStatErrMsg); } else { if ($bNew) { $strClientID = '<i>new</i>'; } else { $strClientID = str_pad($lClientID, 5, '0', STR_PAD_LEFT); } $strClientVName = $clsClientV->vocs[0]->strClientS; $attributes = array('name' => 'frmEditClient', 'id' => 'frmAddEdit'); echoT(form_open('clients/client_rec_add_edit/addEdit/' . $lClientID, $attributes)); // signals for duplicate client test if (isset($bHiddenNewTestDup)) { echoT(form_hidden('hiddenTestDup', $bHiddenNewTestDup ? 'true' : 'false')); } echoT($strDuplicateWarning); if ($bNew) { echoT(form_hidden('lLocationID', $client->lLocationID)); echoT(form_hidden('lStatusCatID', $client->lStatusCatID)); echoT(form_hidden('lVocID', $client->lVocID)); } if ($bNew) {
<?php $attributes = array('name' => 'frmCal', 'id' => 'calOpts'); echoT(form_open('hospice/reports/calendar_report/runCalReport', $attributes)); openBlock('Calendar Report', ''); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; echoT('<table width="500" border="0">'); //------------------------ // Year //------------------------ $strYearDDL = '<select name="ddlYear">' . "\n"; $lYear = (int) date('Y'); for ($idx = 1; $idx <= 20; ++$idx) { $strYearDDL .= '<option value="' . $lYear . '">' . $lYear . '</option>' . "\n"; --$lYear; } $strYearDDL .= '</select>' . "\n"; echoT($clsForm->strLabelRow('For the year', $strYearDDL, 1, '')); //----------------------------- // Type of volunteer activity //----------------------------- $strActivityDDL = '<select name="ddlActivity"> <option value="patient" selected>Patient Visit</option> <option value="other">Non-Patient Volunteer Activity</option> </select>'; echoT($clsForm->strLabelRow('Activity', $strActivityDDL, 1, '')); $clsForm->strStyleExtraLabel = 'text-align: left; width: 100pt;';
<?php global $gbDateFormatUS, $gstrFormatDatePicker; if ($lNumQuests == 0) { echoT('<br><i>There are no questions in this test!</i><br><br>'); return; } $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; $attributes = array('name' => 'frmEditPPTest', 'id' => 'frmAddEdit'); echoT(form_open('cpre_post_tests/client_test_results/addEditTestResults/' . $lTestLogID . '/' . $lClientID . '/' . $lPPTestID, $attributes)); openBlock('Pre/Post Test Results: ' . htmlspecialchars($pptest->strTestName), ''); echoT('<table class="enpView">'); //-------------------------- // Test name //-------------------------- echoT($clsForm->strLabelRow('Test Name', htmlspecialchars($pptest->strTestName), 1)); //-------------------------- // Pre/Post-test score //-------------------------- $lNumCorrectPre = $lNumCorrectPost = 0; foreach ($QandA as $QA) { if ($QA->bPreTestRight) { ++$lNumCorrectPre; } if ($QA->bPostTestRight) { ++$lNumCorrectPost; }
<?php if ($bMultiEntry) { return; } // shouldn't be here! if ($lNumTables == 0) { echoT('<br><i>Sorry, there are no tables available for transfer. Please create a new table first.<br><br></i>'); return; } $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; $attributes = array('name' => 'frmXferField', 'id' => 'frmXferField'); echoT(form_open('admin/uf_fields/xfer1/' . $lTableID . '/' . $lFieldID, $attributes)); openBlock('Transfer a field to another personalized table', ''); echoT('<br><table class="enpView">'); echoT($clsForm->strLabelRow('Field Name', htmlspecialchars($ufield->pff_strFieldNameUser), 1)); // source table echoT($clsForm->strLabelRow('Source Table', htmlspecialchars($strUserTableName), 1)); // destination table $clsForm->strExtraFieldText = form_error('ddlTables'); echoT($clsForm->strLabelRow('Destination Table', $strDDL, 1)); $clsForm->strStyleExtraLabel = 'text-align: left;'; echoT($clsForm->strSubmitEntry('Transfer', 2, 'cmdSubmit', 'width: 100pt; text-align: center;')); echoT('</table>' . form_close('<br>')); echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>'); closeBlock();
<?php global $genumDateFormat, $gbDateFormatUS, $gstrFormatDatePicker; $attributes = array('name' => 'frmNewDeposit', 'id' => 'newDeposit'); echoT(form_open('financials/deposits_add_edit/addDeposit', $attributes)); openBlock('Add a New Deposit', ''); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->strStyleExtraLabel = 'width: 100pt;'; $clsForm->bValueEscapeHTML = false; echoT('<table width="900" border="0">'); //------------------------------- // Notes //------------------------------- echoT($clsForm->strLabelRow('Notes', 'You will be able to select donations to be included in this deposit.<br> To qualify, a donation must: <ul style="list-style-type: square; display:inline; margin-left: 0; padding: 0pt;"> <li style="margin-left: 20px;">be within your timeframe</li> <li style="margin-left: 20px;">not an in-kind donation</li> <li style="margin-left: 20px;">not included in another deposit</li> </ul>', 1)); //------------------------------- // Recent Deposits //------------------------------- if ($lNumDeposits == 0) { echoT($clsForm->strLabelRow('Recent Deposits', '<i>No previous deposits</i>', 1)); } else { $strOut = ''; foreach ($deposits as $deposit) {
<?php global $gbDateFormatUS; /* $attributes = array('name' => $strForm, 'id' => 'frmAddEdit', 'onSubmit' => 'return verifyVolEventForm(frmEditVolEvent, ' .($gbDateFormatUS ? 'true' : 'false') .', ' .($bNew ? 'true' : 'false').');'); echoT(form_open('volunteers/events_add_edit/eventUpdate/'.$lEventID, $attributes)); */ $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));
<?php $attributes = array('name' => 'frmCPAttend', 'id' => 'cpAttend'); echoT(form_open('cprograms/cprog_client_dir/optsA/' . $lCProgID, $attributes)); openBlock($cprog->strSafeAttendLabel . ': ' . htmlspecialchars($cprog->strProgramName), ''); $clsForm = new generic_form(); $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)); //------------------------
<?php global $genumDateFormat; $attributes = array('name' => 'frmEditPledge', 'id' => 'frmAddEdit'); echoT(form_open('donations/pledge_add_edit/addEdit/' . $lPledgeID . '/' . $lFID, $attributes)); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strEntryClass = 'enpView'; $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
<?php global $gbDateFormatUS, $gstrFormatDatePicker, $gdteNow; $attributes = array('name' => 'frmSponLocRpt', 'id' => 'sponProgRpt'); echoT(form_open('reports/pre_spon_via_prog/runViaLoc', $attributes)); openBlock('Sponsorships Via Client Location', ''); if ($lNumLocs <= 0) { echoT('<br><br><i>There are no client locations defined in your database.</i>'); } else { $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">'); //---------------------------- // client locations //---------------------------- $strDDLOptions = ''; $bFirst = true; foreach ($clientLocations as $clientLoc) { $strDDLOptions .= '<option value="' . $clientLoc->lKeyID . '" >' . htmlspecialchars($clientLoc->strLocation) . '</option>' . "\n"; } echoT($clsForm->strGenericDDLEntry('Client Location', 'ddlClientLoc', false, $strDDLOptions)); $clsForm->strExtraFieldText = '(check to include inactive sponsorships)'; echoT($clsForm->strGenericCheckEntry('Include inactive', 'chkInactive', 'true', false, false)); $clsForm->strStyleExtraLabel = 'text-align: left;'; echoT($clsForm->strSubmitEntry('Run Report', 2, 'cmdSubmit', 'text-align: left;')); echoT('</table>' . form_close('<br>')); }
<?php $hidden = array('internalFieldID' => $strField, 'tableName' => $tableName, 'lFieldID' => $lFieldID, 'lFieldIDX' => $lFieldIDX, 'lTableID' => $lTableID, 'lTableIDX' => $lTableIDX); $clsForm = new generic_form(); $attributes = array('name' => 'fmrSearchTerm', 'id' => 'searchTerm'); echoT(form_open('creports/search_terms/term_selected/' . $lReportID . '/' . $strField . '/' . $lTermID, $attributes, $hidden)); openBlock(($bNew ? 'Add new ' : 'Edit ') . 'Search Term', ''); // comparison drop-down (or label for checkboxes) if ($field->enumType == CS_FT_CHECKBOX) { $strCompatorDDL = ' <b><i>IS SET TO</i></b> '; } else { $strCompatorDDL = '<select name="ddlCompare">'; foreach ($term->ddlCompare as $dcomp) { $strCompatorDDL .= '<option value="' . $dcomp->optVal . '" ' . ($dcomp->bSel ? 'SELECTED' : '') . '>' . $dcomp->name . '</option>' . "\n"; } $strCompatorDDL .= '</select>'; } $strComparisionVal = ''; if (isset($term->ddlSelectValue_1)) { $strComparisionVal .= ' <select name="ddlCompValue1" style="">'; foreach ($term->ddlSelectValue_1 as $selVal) { $strComparisionVal .= '<option value="' . $selVal->optVal . '" ' . ($selVal->bSel ? 'SELECTED' : '') . '>' . $selVal->name . '</option>' . "\n"; } $strComparisionVal .= '</select>'; } else { $strComparisionVal = 'TBD'; switch ($term->enumFieldType) { case CS_FT_CHECKBOX: $strComparisionVal = ''; break;
<?php echoT('<br>' . form_open('admin/import/pTableImportPrep/' . CENUM_CONTEXT_PTABLE . '/' . $lTableID)); $cform = new generic_form(); echoT($cform->strSubmitButton('Continue to Import', 'subNext', '')); echoT(form_close('<br>')); echoT(' <table class="dlView"> <tr> <td colspan="3" class="dlViewTitle"> Personalized Table Import<br> [' . strXlateContext($userTable->enumTType, true, false) . '] ' . htmlspecialchars($userTable->strUserTableName) . ' </td> </tr>'); echoT(' <tr> <td class="dlViewLabel"> Field / Column Title </td> <td class="dlViewLabel"> Type </td> <td class="dlViewLabel"> Required? </td> </tr>'); echoT(' <tr> <td class="dlView">' . $userTable->enumTType . ' ID </td> <td class="dlView">
<?php global $genumDateFormat; $attributes = array('name' => 'frmEditAuction', 'id' => 'frmAddEdit'); echoT(form_open('auctions/auction_add_edit/addEditAuction/' . $lAuctionID, $attributes)); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $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 //-------------------------------
<?php global $gdteNow; $attributes = array('name' => 'frmActivity', 'id' => 'rptActivity'); echoT(form_open('hospice/reports/activity/runActivity', $attributes)); openBlock('Volunteer Activity Report (Non-Patient Visit)', ''); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; echoT('<table width="500" border="0">'); //------------------------ // year ddl //------------------------ $lYear = (int) date('Y', $gdteNow); $strDDL = '<select name="ddlYear" id="rptYear">' . "\n"; for ($idx = 0; $idx < 15; ++$idx) { $strDDL .= '<option value="' . $lYear . '">' . $lYear . '</option>' . "\n"; --$lYear; } $strDDL .= '</select>'; echoT($clsForm->strLabelRow('Year', $strDDL, 1, '')); $clsForm->strStyleExtraLabel = 'text-align: left; width: 50pt;'; echoT($clsForm->strSubmitEntry('View Report', 1, 'cmdSubmit', '')); echoT('</table>' . form_close('<br>')); closeblock();
<?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 global $glVolID; openBlock(($bNew ? 'Add New ' : 'Edit ') . ' Volunteer Activity by ' . $volRec->strSafeNameFL, ''); $attributes = array('name' => 'frmHrsLog'); echoT(form_open('hospice/vols/hospice_vol/otherActivity/' . $lActivityID . '/' . $lVolID, $attributes)); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strEntryClass = 'enpView'; $clsForm->strStyleExtraLabel = 'width: 100pt; padding-top: 4px;'; $clsForm->bValueEscapeHTML = false; echoT('<table>'); //---------------------- // activity date //---------------------- echoT(strDatePicker('datepicker1', false, 2000)); $clsForm->strExtraFieldText = form_error('txtDate'); echoT($clsForm->strGenericDatePicker('Date of vol. activity', 'txtDate', true, $formData->txtDate, 'frmHrsLog', 'datepicker1')); /*------------------------------- Start Time -------------------------------*/ $clsForm->strExtraFieldText = form_error('ddlStart'); echoT($clsForm->strGenericDDLEntry('Start Time', 'ddlStart', true, $formData->lStartTime)); /*------------------------------- Duration -------------------------------*/ $clsForm->strExtraFieldText = form_error('ddlDuration'); echoT($clsForm->strGenericDDLEntry('Duration', 'ddlDuration', true, $formData->enumDuration)); /*------------------------------- Activity -------------------------------*/
<?php if (!bAllowAccess('adminOnly')) { return ''; } $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;';
<?php $attributes = array('name' => 'frmAcctLoc', 'id' => 'acctOpts'); echoT(form_open('hospice/super/accounts/locSelect', $attributes)); openBlock('Accounts by Location', ''); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; $clsForm->strStyleExtraLabel = 'width: 80pt;'; echoT('<table width="500" border="0">'); /* //------------------------ // Year //------------------------ $strYearDDL = '<select name="ddlYear">'."\n"; $lYear = (int)date('Y'); for ($idx=1; $idx<=20; ++$idx){ $strYearDDL .= '<option value="'.$lYear.'">'.$lYear.'</option>'."\n"; --$lYear; } $strYearDDL .= '</select>'."\n"; echoT($clsForm->strLabelRow('For the year', $strYearDDL, 1, '')); */ //----------------------------- // Location //----------------------------- echoT($clsForm->strLabelRow('Location', $ddlLocation, 1, '')); // $clsForm->strStyleExtraLabel = 'text-align: left; width: 100pt;'; echoT($clsForm->strSubmitEntry('View Accounts', 1, 'cmdSubmit', ''));
<?php $attributes = array('name' => 'frmPastDueRpt', 'id' => 'pastDueRpt'); echoT(form_open('reports/pre_spon_past_due/run', $attributes)); openBlock('Sponsor Past Due', ''); echoT('<table border="0">'); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; $clsForm->strStyleExtraLabel = 'width: 100pt;'; //------------------------------- // 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)); //-------------------------------
<?php $attributes = array('name' => 'frmNewItem', 'id' => 'newItem'); echoT(form_open('auctions/items/addAuctionItem/' . $lPackageID, $attributes)); $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; $clsForm->strStyleExtraLabel = 'width: 100pt;'; openBlock('Auction Item Donor', ''); echoT('<table>'); //------------------------------- // Auction Item Donor 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 .= '<br><i>(last name [must be in <b>people</b> table] or business name [must be in <b>business/org</b> table])</i><br> <span id="notFound" style="visibility: hidden;"><font color="red">(no matches)</font></span> <br><select name="ddlNames" id="selNames" size="4" style="visibility: hidden;" onchange="populateSearch(); this.form.submit();"></select> '; echoT($clsForm->strGenericTextEntry('Donor Name', 'txtDonor', true, '', 40, 120)); echoT(form_close()); echoT('<script type="text/javascript">frmNewItem.donorName.focus();</script>'); echoT('</table>'); closeBlock();
<?php $attributes = array('name' => 'frmAjaxDemo', 'id' => 'ajaxDemo'); echoT(form_open('auctions/demo/ajax_test', $attributes)); $clsForm = new generic_form(); $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('<!-- ------------------------------------------------------------- -->');
<?php $clsForm = new generic_form(); $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $clsForm->bValueEscapeHTML = false; echoT(form_open('accts_camp/campaigns/xferCampaignSubmit/' . $lCampID)); $attributes = new stdClass(); $attributes->lTableWidth = 800; $attributes->lUnderscoreWidth = 300; openBlock('Transfer Campaign', '', $attributes); echoT('<table class="enpView">'); echoT($clsForm->strLabelRow('campaignID', str_pad($lCampID, 5, '0', STR_PAD_LEFT), 1)); echoT($clsForm->strLabelRow('Campaign Name', $strCamp, 1)); echoT($clsForm->strLabelRow('Current Account', $strAcct, 1)); $strDDL = ''; foreach ($accts as $acct) { $lKeyID = $acct->lKeyID; if ($lKeyID != $lAcctID) { $strDDL .= '<option value="' . $lKeyID . '" >' . $acct->strSafeName . '</option>' . "\n"; } } $clsForm->strStyleExtraLabel = 'width: 80pt; padding-top: 8px;'; echoT($clsForm->strGenericDDLEntry('New Account', 'ddlAcct', true, $strDDL)); echoT($clsForm->strSubmitEntry('Transfer Campaign', 2, 'cmdSubmit', 'text-align: left;')); echoT('</table>' . form_close('<br>')); closeBlock();