当前位置: 首页>>代码示例>>PHP>>正文


PHP QApplication::DisplayAlert方法代码示例

本文整理汇总了PHP中QApplication::DisplayAlert方法的典型用法代码示例。如果您正苦于以下问题:PHP QApplication::DisplayAlert方法的具体用法?PHP QApplication::DisplayAlert怎么用?PHP QApplication::DisplayAlert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在QApplication的用法示例。


在下文中一共展示了QApplication::DisplayAlert方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderButton_Click

 public function renderButton_Click($strFormId, $strControlId, $strParameter)
 {
     $intPersonId = intval($strParameter);
     QApplication::DisplayAlert("In a real application, you'd be redirected to the page that edits person #" . $intPersonId);
     // You'd do something like this in a real application:
     // QApplication::Redirect("person_edit.php?intPersonId=" . $intPersonId);
 }
开发者ID:eliud254,项目名称:q-auction,代码行数:7,代码来源:links_images.php

示例2: btnGenerate_Click

 public function btnGenerate_Click($strFormId, $strControlId, $strParameter)
 {
     QApplication::DisplayAlert(sprintf('Receipts for %s are now being generated.  Please come back shortly to check on its status.', $this->lstYear->SelectedValue));
     if (strlen($strParameter)) {
         file_put_contents(RECEIPT_PDF_PATH . '/run.txt', $this->lstYear->SelectedValue . " " . $strParameter);
     } else {
         file_put_contents(RECEIPT_PDF_PATH . '/run.txt', $this->lstYear->SelectedValue . " " . $this->lstQuarter->SelectedValue);
     }
     chmod(RECEIPT_PDF_PATH . '/run.txt', 0777);
 }
开发者ID:alcf,项目名称:chms,代码行数:10,代码来源:index.php

示例3: btnDelete_Click

 protected function btnDelete_Click()
 {
     if ($this->mctObject->ClassCourse->CountClassMeetings()) {
         QApplication::DisplayAlert('Cannot delete a Course that has classes assigned to it.');
         return;
     } else {
         $this->mctObject->DeleteClassCourse();
         QApplication::Redirect('/classes/');
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:10,代码来源:course.php

示例4: btnDelete_Click

 protected function btnDelete_Click()
 {
     if ($this->mctObject->ClassGrade->CountClassRegistrations()) {
         QApplication::DisplayAlert('Cannot delete a grade that is being used for existing students.');
         return;
     } else {
         $this->mctObject->DeleteClassGrade();
         QApplication::Redirect('/classes/');
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:10,代码来源:grade.php

示例5: dlgUpload_done

 public function dlgUpload_done($strFormId, $strControlId, $strParameter)
 {
     $this->dlgUpload->HideDialogBox();
     $originalFileName = $this->dlgUpload->flcFileAsset->FileName;
     if (strtolower(substr($originalFileName, -3)) != "zip") {
         QApplication::DisplayAlert("Invalid uploaded plugin file - only ZIP allowed: " . $originalFileName);
         return;
     }
     $pluginFolder = QPluginInstaller::processUploadedPluginArchive($this->dlgUpload->flcFileAsset);
     if ($pluginFolder == null) {
         QApplication::DisplayAlert(QPluginInstaller::getLastError());
         return;
     }
     QApplication::Redirect('plugin_edit.php?strType=new&strName=' . $pluginFolder);
 }
开发者ID:eliud254,项目名称:q-auction,代码行数:15,代码来源:plugin_manager.php

示例6: btnSave_Click

 public function btnSave_Click($strFormId, $strControlId, $strParameter)
 {
     $objPerson = $this->pnlPerson->Person;
     // Validate the Dates
     $dttDateArray = GroupParticipation::GetParticipationDatesArrayForPersonIdGroupIdGroupRoleId($objPerson->Id, $this->objGroup->Id, $this->lstRole->SelectedValue);
     // Add This One
     $dttDateArray[] = array($this->dtxDateStart->DateTime, $this->dtxDateEnd->DateTime);
     // If we have trouble trying to add it, let's redirect the user to the full record
     if (!GroupParticipation::IsValidDates($dttDateArray)) {
         QApplication::DisplayAlert('You are adding a participation that already exists.  Taking you to this person\'s record for more information.');
         return $this->ReturnTo('#' . $this->objGroup->Id . '/edit_participation/' . $objPerson->Id);
     }
     // Go ahead and create the record
     $this->objGroup->AddPerson($objPerson, $this->lstRole->SelectedValue, $this->dtxDateStart->DateTime, $this->dtxDateEnd->DateTime);
     return $this->ReturnTo('#' . $this->objGroup->Id);
 }
开发者ID:alcf,项目名称:chms,代码行数:16,代码来源:CpGroup_AddParticipation.class.php

示例7: SetItemCheckedState

 protected function SetItemCheckedState($itemId, $blnChecked)
 {
     $objProject = Project::Load($itemId);
     if ($blnChecked) {
         // Simulate an associating with the project
         QApplication::DisplayAlert('Associating ' . $objProject->Name);
         // To actually do the association, we would execute the following:
         /*
         				$objParentProject = Project::Load(1);	// We were associating the ACME project
         				$objParentProject->AssociateProjectAsRelated ($objProject);
         */
     } else {
         // Simulate unassociating the Project
         QApplication::DisplayAlert('Unassociating ' . $objProject->Name);
     }
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:16,代码来源:qcheckboxcolumn.php

示例8: btnSave_Click

 protected function btnSave_Click()
 {
     $strText = file_get_contents($this->flcUpload->FilePath);
     try {
         $intEntriesModified = 0;
         $intEntriesAdded = 0;
         $intRows = PaypalBatch::ProcessReport($strText, $intEntriesModified, $intEntriesAdded);
         if (!$intEntriesAdded && !$intEntriesModified) {
             QApplication::DisplayAlert('No new or modified entries found.  No changes were made.');
         } else {
             if ($intEntriesAdded) {
                 QApplication::DisplayAlert(sprintf('PayPal import successful.  %s payment entries were updated.  WARNING: %s unlinked credit card payment entries had to be created.', $intEntriesModified, $intEntriesAdded));
             } else {
                 QApplication::DisplayAlert(sprintf('PayPal import successful.  %s payment entries were updated.', $intEntriesModified));
             }
         }
         QApplication::ExecuteJavaScript('document.location = "/stewardship/paypal/";');
     } catch (QCallerException $objExc) {
         QApplication::DisplayAlert('There were problems processing the report file: "' . $objExc->getMessage() . '"');
         return;
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:22,代码来源:upload.php

示例9: dtgPersonsButton_Click

 /**
  * Respond to the button click for the non-delegated events.
  */
 public function dtgPersonsButton_Click($strFormId, $strControlId, $strParameter)
 {
     $intPersonId = intval($strParameter);
     $objPerson = Person::Load($intPersonId);
     QApplication::DisplayAlert("You clicked on a person with ID #{$intPersonId}: {$objPerson->FirstName} {$objPerson->LastName}");
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:9,代码来源:event_delegation.php

示例10: btnSave_Click

 protected function btnSave_Click($strFormId, $strControlId, $strParameter)
 {
     // Create address record(s)
     $objHomeAddress = $this->objHomeAddressValidator->CreateAddressRecord();
     if ($this->objMailingAddressValidator) {
         $objMailingAddress = $this->objMailingAddressValidator->CreateAddressRecord();
     } else {
         $objMailingAddress = null;
     }
     if (trim($this->dtxDateOfBirth->Text)) {
         $dttDateOfBirth = $this->dtxDateOfBirth->DateTime;
     } else {
         $dttDateOfBirth = null;
     }
     $objPerson = QApplication::$PublicLogin->ProvisionalPublicLogin->Reconcile(trim(strtolower($this->txtPassword->Text)), $this->lstQuestion->SelectedValue ? $this->lstQuestion->SelectedValue : trim($this->txtQuestion->Text), trim(strtolower($this->txtAnswer->Text)), trim($this->txtHomePhone->Text), trim($this->txtMobilePhone->Text), $objHomeAddress, $objMailingAddress, $dttDateOfBirth, $this->rblGender->SelectedValue);
     if ($objPerson->PublicLogin->Id != QApplication::$PublicLogin->Id) {
         QLog::Log(sprintf('Provisioned PublicLogin::Reconcile() matched against a Person with an existing PublicLogin: PublicLogin(%s) and Person(%s)', QApplication::$PublicLogin->Id, $objPerson->Id));
         QApplication::DisplayAlert('It appears that another registration exists with the same name and home address.  Before we can proceed, please contact ALCF Online Member Support at 650-625-1500 or records@alcf.net for more information.  Please reference PLID ' . QApplication::$PublicLogin->Id . ' when calling.');
     } else {
         // OptOut Email Flag
         if (!$this->chkBulkEmail->Checked) {
             $objPerson->CanEmailFlag = false;
             $objPerson->Save();
         } else {
             //Upon confirmation, add them to the newletter list
             $objList = CommunicationList::LoadByToken('alcfweekly');
             if ($objList) {
                 if (!$objList->IsPersonAssociated($objPerson)) {
                     $objList->AssociatePerson($objPerson);
                 }
                 $objPerson->Save();
             }
         }
         QApplication::RedirectOnPublicLogin('/register/thankyou.php');
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:36,代码来源:details.php

示例11: accordion_change

 protected function accordion_change()
 {
     QApplication::DisplayAlert($this->Accordion->Active . ' selected.');
 }
开发者ID:tomVertuoz,项目名称:framework,代码行数:4,代码来源:jq_example.php

示例12: btnRegister_Click

 public function btnRegister_Click($strFormId, $strControlId, $strParameter)
 {
     if ($this->GetAmount() == 0) {
         $this->objSignupEntry->Complete();
         QApplication::Redirect($this->objSignupEntry->ConfirmationUrl);
     } else {
         QApplication::DisplayAlert('You must enter in payment information.');
         $this->RefreshForm();
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:10,代码来源:payment.php

示例13: btnGo_Click

 public function btnGo_Click($strFormId, $strControlId, $strParameter)
 {
     //get a list of project ids that have had their status changed
     $changedIds = $this->colProjectSelected->GetChangedIds();
     //load all the changed project objects at once so we can avoid multiple DB hits
     $temp = Project::QueryArray(QQ::In(QQN::Project()->Id, array_keys($changedIds)));
     //Put them in an associated list so we can find the needed ones easily later
     $changedItems = array();
     foreach ($temp as $item) {
         $changedItems[$item->Id] = $item;
     }
     foreach ($changedIds as $id => $blnSelected) {
         //look up the appropriate item using the handily indexed array we built earlier
         $item = $changedItems[$id];
         if ($blnSelected) {
             //Associate this Project
             QApplication::DisplayAlert('Associating ' . $item->Name);
         } else {
             //Unassociate this Project
             QApplication::DisplayAlert('Unassociating ' . $item->Name);
         }
     }
 }
开发者ID:tomVertuoz,项目名称:framework,代码行数:23,代码来源:qcheckboxcolumn.php

示例14: AddClicked

 function AddClicked($strFormId, $strControlId, $strParameter)
 {
     $arrParameter = explode('~', $strParameter);
     $arrPrepare['ASIN'] = $arrParameter[0];
     $arrPrepare['Title'] = $arrParameter[1];
     $arrPrepare['ProductGroup'] = $arrParameter[2];
     $arrPrepare['Image'] = $arrParameter[3];
     $arrPrepare['DetailPageURL'] = $arrParameter[4];
     //Fill the new MyAssets table which is MyISAM based and better
     $this->objMyAssets = new Myassets();
     $this->objMyAssets->Asin = $arrPrepare['ASIN'];
     $this->objMyAssets->Title = $arrPrepare['Title'];
     $this->objMyAssets->ImageURL = $arrPrepare['Image'];
     $this->objMyAssets->DetailPageURL = $arrPrepare['DetailPageURL'];
     $this->objMyAssets->ProductGroup = $arrPrepare['ProductGroup'];
     switch ($arrPrepare['ProductGroup']) {
         case 'Book':
             //Fill MyAssets
             $this->objMyAssets->Author = $arrParameter[5];
             $this->objMyAssets->NumberOfPages = $arrParameter[7];
             $this->objMyAssets->Publisher = $arrParameter[8];
             $this->objMyAssets->Isbn = $arrParameter[10];
             break;
         case 'DVD':
             //Fill MyAssets
             $this->objMyAssets->Actor = $arrParameter[5];
             $this->objMyAssets->Director = $arrParameter[6];
             $this->objMyAssets->RunningTime = $arrParameter[7];
             break;
         case 'Music':
             //Fill MyAssets
             $this->objMyAssets->Artist = $arrParameter[5];
             $this->objMyAssets->Label = $arrParameter[6];
             $this->objMyAssets->NumberOfDiscs = $arrParameter[7];
             break;
     }
     $this->objMyAssets->Owner = $_SESSION['User'];
     $this->objMyAssets->Save();
     QApplication::DisplayAlert('"' . $this->objMyAssets->Title . '"' . ' has been added to your library');
 }
开发者ID:sarapsg,项目名称:prayuj,代码行数:40,代码来源:AmazonSearch.php

示例15: getGoogleContacts

 protected function getGoogleContacts()
 {
     $objContacts = new GetContacts();
     $arrContacts = $objContacts->GetGContacts($this->txtUser, $this->txtPassword);
     $contactCount = sizeof($arrContacts);
     foreach ($arrContacts as $person) {
         $count = Peopledetails::QueryCount(QQ::Equal(QQN::Peopledetails()->Email, $person['contactMail']));
         if ($count != 0) {
             $objPerson = Peopledetails::QuerySingle(QQ::Equal(QQN::Peopledetails()->Email, $person['contactMail']));
         } else {
             $objPerson = new Peopledetails();
         }
         $objPerson->FullName = $person['contactName'];
         $objPerson->Phone = $person['contactPhone'];
         $objPerson->Address = $person['contactAddr'];
         $objPerson->Email = $person['contactMail'];
         $objPerson->Save();
     }
     QApplication::DisplayAlert('Successfully imported ' . $contactCount . 'contacts from Google Contacts');
 }
开发者ID:sarapsg,项目名称:prayuj,代码行数:20,代码来源:ImportContacts.php


注:本文中的QApplication::DisplayAlert方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。