protected function btnMassEdit_Click() { $this->lblMassActionError->Text = ""; $items = $this->dtgCompany->getSelected('CompanyId'); if (count($items) > 0) { if (!$this->dlgMassEdit->Display) { // Create the panel, assigning it to the Dialog Box $pnlCompanyEdit = new CompanyMassEditPanel($this->dlgMassEdit, 'dlgMassEdit_Close', $items); // Show the dialog box $this->dlgMassEdit->ShowDialogBox(); } } else { $this->lblMassActionError->Text = "You haven't chosen any Company to Edit"; } } public function dlgMassEdit_Close() { $this->dlgMassEdit->HideDialogBox(); } protected function btnMassDeleteConfirm_Click() { } protected function btnMassDeleteCancel_Click() { $this->dlgMassDelete->HideDialogBox(); } } // Go ahead and run this form object to generate the page and event handlers, using // generated/company_edit.php.inc as the included HTML template file CompanyListForm::Run('CompanyListForm', __DOCROOT__ . __SUBDIRECTORY__ . '/contacts/company_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 CompanyListFormBase require __FORMBASE_CLASSES__ . '/CompanyListFormBase.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 Company class. It extends from the code-generated * abstract CompanyListFormBase 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 CompanyListForm extends CompanyListFormBase { } // Go ahead and run this form object to generate the page and event handlers, using // generated/company_list.tpl.php as the included HTML template file CompanyListForm::Run('CompanyListForm', 'generated/company_list.tpl.php');