當前位置: 首頁>>代碼示例>>PHP>>正文


PHP QPanel類代碼示例

本文整理匯總了PHP中QPanel的典型用法代碼示例。如果您正苦於以下問題:PHP QPanel類的具體用法?PHP QPanel怎麽用?PHP QPanel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了QPanel類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objRoleEntityQtypeBuiltInAuthorization = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupRoleEntityQtypeBuiltInAuthorization to either Load/Edit Existing or Create New
     $this->SetupRoleEntityQtypeBuiltInAuthorization($objRoleEntityQtypeBuiltInAuthorization);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for RoleEntityQtypeBuiltInAuthorization's Data Fields
     $this->lblRoleEntityBuiltInId_Create();
     $this->lstRole_Create();
     $this->lstEntityQtype_Create();
     $this->lstAuthorization_Create();
     $this->chkAuthorizedFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:28,代碼來源:RoleEntityQtypeBuiltInAuthorizationEditPanelBase.class.php

示例2: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objShippingAccount = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupShippingAccount to either Load/Edit Existing or Create New
     $this->SetupShippingAccount($objShippingAccount);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for ShippingAccount's Data Fields
     $this->lblShippingAccountId_Create();
     $this->lstCourier_Create();
     $this->txtShortDescription_Create();
     $this->txtAccessId_Create();
     $this->txtAccessCode_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:28,代碼來源:ShippingAccountEditPanelBase.class.php

示例3: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objAddress = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAddress to either Load/Edit Existing or Create New
     $this->SetupAddress($objAddress);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Address's Data Fields
     $this->lblAddressId_Create();
     $this->lstCompany_Create();
     $this->txtShortDescription_Create();
     $this->lstCountry_Create();
     $this->txtAddress1_Create();
     $this->txtAddress2_Create();
     $this->txtCity_Create();
     $this->lstStateProvince_Create();
     $this->txtPostalCode_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     $this->lstAddressCustomFieldHelper_Create();
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:brustj,項目名稱:tracmor,代碼行數:33,代碼來源:AddressEditPanelBase.class.php

示例4: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $intId = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Setup Callback and Template
     $this->strTemplate = 'PeopledetailsEditPanel.tpl.php';
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Construct the PeopledetailsMetaControl
     // MAKE SURE we specify "$this" as the MetaControl's (and thus all subsequent controls') parent
     $this->mctPeopledetails = PeopledetailsMetaControl::Create($this, $intId);
     // Call MetaControl's methods to create qcontrols based on Peopledetails's data fields
     $this->lblId = $this->mctPeopledetails->lblId_Create();
     $this->txtFullName = $this->mctPeopledetails->txtFullName_Create();
     $this->txtAddress = $this->mctPeopledetails->txtAddress_Create();
     $this->txtPhone = $this->mctPeopledetails->txtPhone_Create();
     $this->txtEmail = $this->mctPeopledetails->txtEmail_Create();
     // Create Buttons and Actions on this Form
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = QApplication::Translate('Save');
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnSave_Click'));
     $this->btnSave->CausesValidation = $this;
     $this->btnCancel = new QButton($this);
     $this->btnCancel->Text = QApplication::Translate('Cancel');
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnCancel_Click'));
     $this->btnDelete = new QButton($this);
     $this->btnDelete->Text = QApplication::Translate('Delete');
     $this->btnDelete->AddAction(new QClickEvent(), new QConfirmAction(QApplication::Translate('Are you SURE you want to DELETE this') . ' ' . QApplication::Translate('Peopledetails') . '?'));
     $this->btnDelete->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnDelete_Click'));
     $this->btnDelete->Visible = $this->mctPeopledetails->EditMode;
 }
開發者ID:sarapsg,項目名稱:prayuj,代碼行數:35,代碼來源:PeopledetailsEditPanel.class.php

示例5: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objAsset = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAsset to either Load/Edit Existing or Create New
     $this->SetupAsset($objAsset);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Asset's Data Fields
     $this->lblAssetId_Create();
     $this->lstAssetModel_Create();
     $this->lstLocation_Create();
     $this->txtAssetCode_Create();
     $this->txtImagePath_Create();
     $this->chkCheckedOutFlag_Create();
     $this->chkReservedFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:30,代碼來源:AssetEditPanelBase.class.php

示例6: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objPerson = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupPerson to either Load/Edit Existing or Create New
     $this->SetupPerson($objPerson);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Person's Data Fields
     $this->lblId_Create();
     $this->lstPersonType_Create();
     $this->txtUsername_Create();
     $this->txtPassword_Create();
     $this->txtFirstName_Create();
     $this->txtLastName_Create();
     $this->txtEmail_Create();
     $this->chkDisplayRealNameFlag_Create();
     $this->chkDisplayEmailFlag_Create();
     $this->chkOptInFlag_Create();
     $this->chkDonatedFlag_Create();
     $this->txtLocation_Create();
     $this->txtCountryId_Create();
     $this->txtUrl_Create();
     $this->calRegistrationDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:qcodo,項目名稱:qcodo-api,代碼行數:34,代碼來源:PersonEditPanelBase.class.php

示例7: __construct

 public function __construct($objParentObject, Project $objProject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
         // Watch out for template later gonna talk about it,
         // need a trick to look good
         // (insert the child content as row in table already present for Master
         //   close colums -insert row - insert child - close row - open column
         //  </td> <tr><td> render content of this child </td> </tr> <td> )
         $this->Template = 'records.summary.tpl.php';
         // Setting local the Msster QDataGrid to refresh on
         // Saves on the Child DataGrid..
         $this->objParentObject = $objParentObject;
         $this->objProject = $objProject;
         // Create the child DataGrid as a normal QDataGrid
         $this->dtgRecordsSummary = new QDataGrid($this);
         // pagination
         $this->dtgRecordsSummary->Paginator = new QPaginator($this->dtgRecordsSummary);
         $this->dtgRecordsSummary->ItemsPerPage = 5;
         $this->dtgRecordsSummary->SetDataBinder('dtgRecordsSummary_Bind', $this);
         // Add some data to show...
         $this->dtgRecordsSummary->CreateCallableColumn('Person', [$this, 'render_PersonColumn']);
         $col = $this->dtgRecordsSummary->CreateNodeColumn('Id', QQN::Person()->Id);
         $col->CellStyler->Width = 120;
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
 }
開發者ID:vaibhav-kaushal,項目名稱:qc-framework,代碼行數:29,代碼來源:records.summary.php

示例8: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objReceipt = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupReceipt to either Load/Edit Existing or Create New
     $this->SetupReceipt($objReceipt);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Receipt's Data Fields
     $this->lblReceiptId_Create();
     $this->lstTransaction_Create();
     $this->lstFromCompany_Create();
     $this->lstFromContact_Create();
     $this->lstToContact_Create();
     $this->lstToAddress_Create();
     $this->txtReceiptNumber_Create();
     $this->calDueDate_Create();
     $this->calReceiptDate_Create();
     $this->chkReceivedFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:33,代碼來源:ReceiptEditPanelBase.class.php

示例9: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objCustomField = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupCustomField to either Load/Edit Existing or Create New
     $this->SetupCustomField($objCustomField);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for CustomField's Data Fields
     $this->lblCustomFieldId_Create();
     $this->lstCustomFieldQtype_Create();
     $this->lstDefaultCustomFieldValue_Create();
     $this->txtShortDescription_Create();
     $this->chkActiveFlag_Create();
     $this->chkRequiredFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:29,代碼來源:CustomFieldEditPanelBase.class.php

示例10: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objAttachment = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAttachment to either Load/Edit Existing or Create New
     $this->SetupAttachment($objAttachment);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Attachment's Data Fields
     $this->lblAttachmentId_Create();
     $this->lstEntityQtype_Create();
     $this->txtEntityId_Create();
     $this->txtFilename_Create();
     $this->txtTmpFilename_Create();
     $this->txtFileType_Create();
     $this->txtPath_Create();
     $this->txtSize_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:29,代碼來源:AttachmentEditPanelBase.class.php

示例11: __construct

 public function __construct($objParentObject, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strTemplate = __NARRO_INCLUDES__ . '/narro/panel/NarroUserRegisterPanel.tpl.php';
     $this->lblMessage = new QLabel($this);
     $this->lblMessage->HtmlEntities = false;
     $this->txtUsername = new QTextBox($this, 'username');
     $this->txtUsername->Required = true;
     $this->txtRealname = new QTextBox($this, 'name');
     $this->txtRealname->Required = false;
     $this->txtEmail = new QTextBox($this, 'email');
     $this->txtEmail->Required = true;
     $this->txtPassword = new QTextBox($this, 'password');
     $this->txtPassword->TextMode = QTextMode::Password;
     $this->btnRegister = new QButton($this);
     $this->btnRegister->Text = t('Register');
     $this->btnRegister->PrimaryButton = true;
     $this->btnRegister->CausesValidation = true;
     $this->btnRegister->AddAction(new QClickEvent(), new QServerControlAction($this, 'btnRegister_Click'));
 }
開發者ID:Jobava,項目名稱:narro,代碼行數:26,代碼來源:NarroUserRegisterPanel.class.php

示例12: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objClassVariable = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupClassVariable to either Load/Edit Existing or Create New
     $this->SetupClassVariable($objClassVariable);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for ClassVariable's Data Fields
     $this->lblId_Create();
     $this->lstQcodoClass_Create();
     $this->lstVariableGroup_Create();
     $this->lstProtectionType_Create();
     $this->lstVariable_Create();
     $this->chkReadOnlyFlag_Create();
     $this->chkStaticFlag_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:qcodo,項目名稱:qcodo-api,代碼行數:26,代碼來源:ClassVariableEditPanelBase.class.php

示例13: __construct

 public function __construct(NarroProject $objNarroProject, string $strCurrentPath = null, $objParentObject, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->pnlBreadcrumb = new NarroBreadcrumbPanel($this);
     $this->pnlBreadcrumb->strSeparator = ' / ';
     $this->objProject = $objNarroProject;
     $this->chkShowHierarchy = new QCheckBox($this);
     $this->chkShowHierarchy->Checked = QApplication::QueryString('s') == '';
     $this->chkShowHierarchy->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'dtgFile_SetConditions'));
     $this->chkShowFolders = new QCheckBox($this);
     $this->chkShowFolders->Checked = true;
     $this->chkShowFolders->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'dtgFile_SetConditions'));
     $this->strTemplate = __NARRO_INCLUDES__ . '/narro/panel/NarroProjectFileListPanel.tpl.php';
     $this->ChangeDirectory($strCurrentPath);
     $this->btnSearch = new QButton($this);
     $this->btnSearch->Text = t('Search');
     $this->btnSearch->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnSearch_Click'));
     $this->btnSearch->PrimaryButton = true;
     $this->txtSearch = new QTextBox($this);
     $this->txtSearch->Text = QApplication::QueryString('s');
     $this->ChangeDirectory(QApplication::QueryString('pf'));
     $this->dtgFile_Create();
     $this->dtgFile_SetConditions();
 }
開發者ID:Jobava,項目名稱:narro,代碼行數:30,代碼來源:NarroProjectFileListPanel.class.php

示例14: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objShortcut = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupShortcut to either Load/Edit Existing or Create New
     $this->SetupShortcut($objShortcut);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Shortcut's Data Fields
     $this->lblShortcutId_Create();
     $this->lstModule_Create();
     $this->lstAuthorization_Create();
     $this->txtShortDescription_Create();
     $this->txtLink_Create();
     $this->txtImagePath_Create();
     $this->lstEntityQtype_Create();
     $this->chkCreateFlag_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:27,代碼來源:ShortcutEditPanelBase.class.php

示例15: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objFile = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupFile to either Load/Edit Existing or Create New
     $this->SetupFile($objFile);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for File's Data Fields
     $this->lblId_Create();
     $this->lstDirectory_Create();
     $this->txtPath_Create();
     $this->txtDeprecatedMajorVersion_Create();
     $this->txtDeprecatedMinorVersion_Create();
     $this->txtDeprecatedBuild_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
開發者ID:qcodo,項目名稱:qcodo-api,代碼行數:25,代碼來源:FileEditPanelBase.class.php


注:本文中的QPanel類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。