当前位置: 首页>>代码示例>>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;未经允许,请勿转载。