//------------------------------- $clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 2pt; '; $clsForm->strExtraFieldText = form_error('txtDescription'); echoT($clsForm->strNotesEntry('Description', 'txtDescription', false, $formData->txtDescription, 2, 40)); //------------------------------- // Accounting country of Origin //------------------------------- $clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 8pt; '; echoT($clsForm->strLabelRow('Accounting Country', $formData->strACORadio, 1)); //------------------------------------------ // Accounts / Campaigns for winning bidders //------------------------------------------ $clsForm->strExtraFieldText = ' (for gift records from winning bids)' . form_error('ddlAccount'); $clsForm->strExtraSelect = ' onChange="showCampaigns(this.value, \'ddlCamps\')" '; $clsForm->strStyleExtraValue = 'vertical-align: middle; padding-top: 4pt;'; echoT($clsForm->strGenericDDLEntry('Account', 'ddlAccount', true, $formData->strDDLAccts)); $clsForm->strExtraFieldText = ' (for gift records from winning bids)' . form_error('ddlCamps'); $clsForm->strExtraSelect = ' ID="ddlCamps" '; $clsForm->strStyleExtraValue = 'vertical-align: middle;'; echoT($clsForm->strGenericDDLEntry('Campaign', 'ddlCamps', true, $formData->strDDLCamps)); $clsForm->strExtraSelect = ''; //------------------------------- // Default Bid Sheet //------------------------------- if ($lNumBidSheets <= 0) { $clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 2pt; '; if ($bNew) { echoT($clsForm->strLabelRow('Default Bid Sheet', '<i>You will be able to create bid sheets after creating your new auction.</i>', 1)); } else { echoT($clsForm->strLabelRow('Default Bid Sheet', '<i>Not set!</i> Click ' . strLinkView_BidSheets('here', false) . ' to work with bid sheet templates.</i>', 1)); }
$clsForm = new generic_form(); $clsForm->strLabelClass = 'enpRptLabel'; $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel'; $clsForm->strTitleClass = 'enpViewTitle'; $clsForm->strEntryClass = 'enpView'; $lEntryID = $clsEntry->lKeyID; $attributes = array('name' => 'frmClientStat'); echoT(form_open('clients/client_rec_stat/addEditStatusEntry/' . $lClientID . '/' . $lStatusID, $attributes)); echoT('<table class="enpView">'); $lMatchID = $bNew ? -1 : $clsEntry->lStatusID; echoT($clsForm->strTitleRow(($bNew ? 'Add new ' : 'Update ') . 'status for ' . $client->strSafeName, 2, '')); //--------------------------- // status category and entry //--------------------------- echoT($clsForm->strLabelRow('Status Category', $client->strStatusCatName, 1)); $clsForm->strExtraFieldText = form_error('ddlStatus'); echoT($clsForm->strGenericDDLEntry('Status', 'ddlStatus', true, $statDDL)); //--------------------------- // Packet status? //--------------------------- $clsForm->strExtraFieldText = ' (if checked, this status will be included in packet export)'; echoT($clsForm->strGenericCheckEntry('Packet Status?', 'chkPacket', 'TRUE', false, $bPacketStatus)); //-------------------- // status date //-------------------- echoT(strDatePicker('datepicker1', false)); $clsForm->strExtraFieldText = form_error('txtDate'); echoT($clsForm->strGenericDatePicker('Date', 'txtDate', true, $txtDate, 'frmClientStat', 'datepicker1')); echoT($clsForm->strNotesEntry('Notes', 'txtNotes', false, $txtNotes, 5, 46)); echoT($clsForm->strSubmitEntry('Submit', 1, 'cmdSubmit', 'text-align: left;')); echoT('</table></form>');
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>')); } closeblock();
$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 -------------------------------*/ $clsForm->strExtraFieldText = form_error('ddlActivity'); echoT($clsForm->strLabelRow('Activity', $formData->strVolActivity, 1)); // job code for shift echoT($clsForm->strLabelRow('Job Code', $strDDLJobCode, 1)); /*------------------------------- Notes -------------------------------*/
$lSCID = $clsLocSP->lKeyID; echoT(' <input type="checkbox" name="chkSP[]" value="' . $lSCID . '" id="chkSP_' . $lSCID . '" ' . (@$clsLocSP->bSupported ? 'checked' : '') . ' >' . htmlspecialchars($clsLocSP->strProg) . '<br>'); } } echoT(' </td> </tr>'); $clsForm->strExtraFieldText = form_error('txtMaxSpon'); echoT($clsForm->strGenericTextEntry('Max # of Sponsors', 'txtMaxSpon', true, $formData->txtMaxSpon, 4, 10)); //---------------------- // Status //---------------------- if ($bNew) { $clsForm->strExtraFieldText = form_error('ddlStatus'); echoT($clsForm->strGenericDDLEntry('Initial Status', 'ddlStatus', true, $clsClientStat->strClientStatEntriesDDL($client->lStatusCatID, true, $formData->lInitStatID))); } //---------------------- // Gender //---------------------- $clsForm->strStyleExtraLabel = 'width: 120pt; padding-top: 3px;'; $clsForm->strExtraFieldText = form_error('rdoGender'); echoT($clsForm->strGenderRadioEntry('Gender', 'rdoGender', true, $formData->rdoGender)); //---------------------- // Bio //---------------------- echoT($clsForm->strNotesEntry("{$strClientVName} Bio", 'txtBio', false, $formData->txtBio, 5, 50)); //------------------------ // Address //------------------------ $clsForm->strStyleExtraLabel = 'width: 120pt; padding-top: 8px;';
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>')); } closeblock();
echoT(form_open('creports/add_edit_crpt/add_edit/' . $lReportID, $attributes)); //------------------- // Name //------------------- $clsForm->strExtraFieldText = form_error('txtName'); $clsForm->strID = 'addEditEntry'; $clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 7pt; width: 90pt;'; echoT($clsForm->strGenericTextEntry('Report Name', 'txtName', true, $formData->strName, 40, 255)); //------------------- // Notes //------------------- $clsForm->strStyleExtraLabel = 'padding-top: 3pt;'; echoT($clsForm->strNotesEntry('Notes', 'txtNotes', false, $formData->strNotes, 3, 40)); //------------------- // Report Type //------------------- if ($bNew) { echoT($clsForm->strGenericDDLEntry('Report Type', 'ddlCRpt', true, $formData->strCRptTypeDDL)); } else { echoT($clsForm->strLabelRow('Report Type', $formData->strRptType, 1)); } //------------------- // Private? //------------------- $clsForm->strExtraFieldText = '<i>If checked, only you (and admins) have access to this report.<br>' . 'If public, all users can run the report, but only you and admins can modify it.</i>'; $clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 3pt;'; echoT($clsForm->strGenericCheckEntry('Private?', 'chkPrivate', 'TRUE', false, $formData->bPrivate)); echoT($clsForm->strSubmitEntry('Add Report', 1, 'cmdSubmit', 'text-align: center;')); echoT('</table>' . form_close('<br>')); echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>'); closeBlock();
<?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();
<?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 if ($lNumTables == 0) { echoT('<br><i>There are no personalized tables available for import!</i><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' => 'frmPSel', 'id' => 'parentSel'); echoT(form_open('admin/import/ptables', $attributes)); openBlock('Personalized Table Import', ''); echoT('<table class="enpView">'); $clsForm->strExtraFieldText = form_error('ddlTables'); $clsForm->strStyleExtraLabel = 'padding-top: 6px;'; // $clsForm->strExtraSelect = ' onChange="showPTables(this.value, \'ddlParent\')" '; echoT($clsForm->strGenericDDLEntry('Personalized Table', 'ddlTables', true, $formData->strDDLParent)); echoT($clsForm->strSubmitEntry(' Select ', 2, 'cmdSubmit', 'text-align: left;')); echoT('</table>' . form_close('<br>')); echoT('</table>'); closeBlock();
<?php $attributes = array('name' => 'frmCalEvents', 'id' => 'calEvents'); echoT(form_open('volunteers/events_cal/viewEventsCalendar', $attributes)); openBlock('Calendar Events', ''); $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">'); //------------------------ // starting month //------------------------ $clsForm->strExtraFieldText = form_error('txtMonth'); echoT($clsForm->strLabelRow('Starting month', '<input type="text" value="' . $txtMonth . '" name="txtMonth" size="8" id="month1">', 1, '')); //------------------------ // # of months //------------------------ $strDDL = ''; for ($idx = 1; $idx <= 12; ++$idx) { $strDDL .= '<option value="' . $idx . '" ' . ($idx == $lDuration ? 'SELECTED' : '') . '>' . $idx . '</option>' . "\n"; } echoT($clsForm->strGenericDDLEntry('# Months to Display', 'ddlDuration', false, $strDDL)); $clsForm->strStyleExtraLabel = 'text-align: left; width: 100pt;'; echoT($clsForm->strSubmitEntry('View Events', 1, 'cmdSubmit', '')); echoT('</table>' . form_close('<br>')); echoT('<script type="text/javascript">skillsRpt.addEditEntry.focus();</script>'); closeblock();
<?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>');
echoT(form_open('clients/client_record/xfer1/' . $lClientID, $attributes)); break; case 'addNew': $strLabel = 'Add a new client: Step 1'; echoT(form_open('clients/client_rec_add_edit/addNewS1', $attributes)); break; default: screamForHelp($enumSource . ': invalid form type<br>error on line <b> -- ' . __LINE__ . ' --</b>,<br>file ' . __FILE__ . ',<br>function ' . __FUNCTION__); break; } openBlock($strLabel, ''); $strNoOptSel = '<option value="-1"> </option>'; echoT('<table >'); $clsForm->strExtraFieldText = form_error('ddlLocation'); $clsForm->strID = 'addEditEntry'; echoT($clsForm->strGenericDDLEntry('Client Location', 'ddlLocation', true, $strNoOptSel . $strLocationDDL)); $clsForm->strExtraFieldText = form_error('ddlClientStatCat'); echoT($clsForm->strGenericDDLEntry('Client Status Category', 'ddlClientStatCat', true, $strClientStatCatDDL)); $clsForm->strExtraFieldText = form_error('ddlClientVoc'); echoT($clsForm->strGenericDDLEntry('Vocabulary that will<br>Apply to this Client', 'ddlClientVoc', true, $strClientVocDDL)); if ($enumSource == 'clientXfer') { //---------------------- // Effective date //---------------------- echoT(strDatePicker('datepicker1', false)); $clsForm->strExtraFieldText = form_error('txtEDate'); echoT($clsForm->strGenericDatePicker('Effective date', 'txtEDate', true, $strEDate, 'frmLoc', 'datepicker1')); } echoT($clsForm->strSubmitEntry('Submit', 1, 'cmdSubmit', 'width: 110pt;')); echoT('</table>' . form_close('<br><br>')); echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');