} } //Set display logic of the GreenPlusButton of Company protected function UpdateCompanyAccess() { //checks if the entity 4 (AssetModel) has edit authorization $objRoleEntityQtypeBuiltInAuthorization = RoleEntityQtypeBuiltInAuthorization::LoadByRoleIdEntityQtypeIdAuthorizationId(QApplication::$objRoleModule->RoleId, EntityQtype::Company, 2); if ($objRoleEntityQtypeBuiltInAuthorization && $objRoleEntityQtypeBuiltInAuthorization->AuthorizedFlag) { $this->lblNewCompany->Visible = true; } else { $this->lblNewCompany->Visible = false; } } //Set display logic of the GreenPlusButton of Address protected function UpdateAddressAccess() { //checks if the entity 4 (AssetModel) has edit authorization $objRoleEntityQtypeBuiltInAuthorization = RoleEntityQtypeBuiltInAuthorization::LoadByRoleIdEntityQtypeIdAuthorizationId(QApplication::$objRoleModule->RoleId, EntityQtype::Address, 2); if ($objRoleEntityQtypeBuiltInAuthorization && $objRoleEntityQtypeBuiltInAuthorization->AuthorizedFlag) { $this->lblNewAddress->Visible = true; } else { $this->lblNewAddress->Visible = false; } } protected function getNextTabIndex() { return $this->intTabIndex++; } } ContactEditForm::Run('ContactEditForm', __DOCROOT__ . __SUBDIRECTORY__ . '/contacts/contact_edit.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 ContactEditFormBase require __FORMBASE_CLASSES__ . '/ContactEditFormBase.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 Create, Edit, and Delete functionality * of the Contact class. It extends from the code-generated * abstract ContactEditFormBase 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 ContactEditForm extends ContactEditFormBase { } // Go ahead and run this form object to render the page and its event handlers, using // generated/contact_edit.tpl.php as the included HTML template file ContactEditForm::Run('ContactEditForm', 'generated/contact_edit.tpl.php');