} else { $this->blnAdvanced = true; $this->lblAdvanced->Text = 'Hide Advanced'; } } protected function assignSearchValues() { $this->intCategoryId = $this->lstCategory->SelectedValue; $this->intManufacturerId = $this->lstManufacturer->SelectedValue; $this->strDescription = $this->txtDescription->Text; $this->strAssetModelCode = $this->txtAssetModelCode->Text; $this->strDateModified = $this->ctlAdvanced->DateModified; $this->strDateModifiedFirst = $this->ctlAdvanced->DateModifiedFirst; $this->strDateModifiedLast = $this->ctlAdvanced->DateModifiedLast; $this->blnAttachment = $this->ctlAdvanced->Attachment; $this->arrCustomFields = $this->ctlAdvanced->CustomFieldArray; if ($this->arrCustomFields) { foreach ($this->arrCustomFields as &$field) { if ($field['input'] instanceof QListBox) { $field['value'] = $field['input']->SelectedValue; } elseif ($field['input'] instanceof QTextBox) { $field['value'] = $field['input']->Text; } } } } } // Go ahead and run this form object to generate the page and event handlers, using // generated/asset_model_edit.php.inc as the included HTML template file AssetModelListForm::Run('AssetModelListForm', 'asset_model_list.tpl.php');
// Include prepend.inc to load Qcodo require '../includes/prepend.inc.php'; /* if you DO NOT have "includes/" in your include_path */ // require('prepend.inc.php'); /* if you DO have "includes/" in your include_path */ // Include the classfile for AssetModelListFormBase require __FORMBASE_CLASSES__ . '/AssetModelListFormBase.class.php'; // Security check for ALLOW_REMOTE_ADMIN // To allow access REGARDLESS of ALLOW_REMOTE_ADMIN, simply remove the line below QApplication::CheckRemoteAdmin(); /** * This is a quick-and-dirty draft form object to do the List All functionality * of the AssetModel class. It extends from the code-generated * abstract AssetModelListFormBase class. * * Any display customizations and presentation-tier logic can be implemented * here by overriding existing or implementing new methods, properties and variables. * * Additional qform control objects can also be defined and used here, as well. * * @package My Application * @subpackage FormDraftObjects * */ class AssetModelListForm extends AssetModelListFormBase { } // Go ahead and run this form object to generate the page and event handlers, using // generated/asset_model_list.tpl.php as the included HTML template file AssetModelListForm::Run('AssetModelListForm', 'generated/asset_model_list.tpl.php');