Пример #1
0
            $this->lblAdvanced->Text = QApplication::Translate('Hide Advanced');
        }
    }
    protected function assignSearchValues()
    {
        $this->intCategoryId = $this->lstCategory->SelectedValue;
        $this->intManufacturerId = $this->lstManufacturer->SelectedValue;
        $this->strShortDescription = $this->txtShortDescription->Text;
        $this->strInventoryModelCode = $this->txtInventoryModelCode->Text;
        $this->intLocationId = $this->lstLocation->SelectedValue;
        $this->intInventoryModelId = QApplication::QueryString('intInventoryModelId');
        $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/inventory_model_edit.php.inc as the included HTML template file
InventoryModelListForm::Run('InventoryModelListForm', __DOCROOT__ . __SUBDIRECTORY__ . '/inventory/inventory_model_list.tpl.php');
Пример #2
0
// 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 InventoryModelListFormBase
require __FORMBASE_CLASSES__ . '/InventoryModelListFormBase.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 InventoryModel class.  It extends from the code-generated
 * abstract InventoryModelListFormBase 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 InventoryModelListForm extends InventoryModelListFormBase
{
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/inventory_model_list.tpl.php as the included HTML template file
InventoryModelListForm::Run('InventoryModelListForm', 'generated/inventory_model_list.tpl.php');