Example #1
0
    				$this->dtgAsset->DataSource = Asset::LoadArrayBySearch($strAssetCode, $intLocationId, $intAssetModelId, $intCategoryId, $intManufacturerId, $blnOffsite, $strAssetModelCode, $intReservedBy, $intCheckedOutBy, $strShortDescription, $arrCustomFields, $strDateModified, $strDateModifiedFirst, $strDateModifiedLast, $blnAttachment, $this->dtgAsset->SortInfo, $this->dtgAsset->LimitInfo, $objExpansionMap);
    				$this->dtgAsset->ShowHeader = true;
    			}
    			$this->blnSearch = false;
        }*/
    // protected function Form_Exit() {
    // Output database profiling - it shows you the queries made to create this page
    // This will not work on pages with the AJAX Pagination
    // QApplication::$Database[1]->OutputProfiling();
    // }
    // Create and Setup the Header Composite Control
    protected function ctlHeaderMenu_Create()
    {
        $this->ctlHeaderMenu = new QHeaderMenu($this);
    }
    // Create and Setp the Shortcut Menu Composite Control
    protected function ctlShortcutMenu_Create()
    {
        $this->ctlShortcutMenu = new QShortcutMenu($this);
    }
    // Create and Setup the Asset Search Composite Control
    protected function ctlSearchMenu_Create()
    {
        $this->ctlSearchMenu = new QAssetSearchComposite($this, null, false);
    }
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/asset_edit.php.inc as the included HTML template file
// AssetListForm::Run('AssetListForm', './Qcodo/assets/asset_list.php.inc');
AssetListForm::Run('AssetListForm', __DOCROOT__ . __SUBDIRECTORY__ . '/assets/asset_list.tpl.php');
Example #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 AssetListFormBase
require __FORMBASE_CLASSES__ . '/AssetListFormBase.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 Asset class.  It extends from the code-generated
 * abstract AssetListFormBase 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 AssetListForm extends AssetListFormBase
{
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/asset_list.tpl.php as the included HTML template file
AssetListForm::Run('AssetListForm', 'generated/asset_list.tpl.php');