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


PHP QApplication::PathInfo方法代码示例

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


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

示例1: Form_Create

 protected function Form_Create()
 {
     // Attempt to load by Token and then by ID
     $this->objSignupForm = SignupForm::LoadByToken(QApplication::PathInfo(0));
     if (!$this->objSignupForm) {
         $this->objSignupForm = SignupForm::Load(QApplication::PathInfo(0));
     }
     // Ensure it is the correct type and it exists
     if (!$this->objSignupForm) {
         $this->strHtmlIncludeFilePath = '_notfound.tpl.php';
         return;
     }
     $this->strPageTitle = $this->objSignupForm->Name . ' - Confirmation';
     // Ensure it is Active
     if (!$this->objSignupForm->ActiveFlag) {
         $this->strHtmlIncludeFilePath = '_notactive.tpl.php';
         return;
     }
     // Get the SignupEntry
     $this->objSignupEntry = SignupEntry::Load(QApplication::PathInfo(1));
     // Ensure it is correct for the form and the signup person
     if ($this->objSignupEntry->SignupByPersonId) {
         if (!$this->objSignupEntry || $this->objSignupEntry->SignupFormId != $this->objSignupForm->Id || $this->objSignupEntry->SignupByPersonId != QApplication::$PublicLogin->PersonId || $this->objSignupEntry->SignupEntryStatusTypeId != SignupEntryStatusType::Complete) {
             $this->strHtmlIncludeFilePath = '_notfound.tpl.php';
             return;
         }
     } else {
         if (!$this->objSignupEntry || $this->objSignupEntry->SignupFormId != $this->objSignupForm->Id || !$this->objSignupEntry->CommunicationsEntryId || $this->objSignupEntry->SignupEntryStatusTypeId != SignupEntryStatusType::Complete) {
             $this->strHtmlIncludeFilePath = '_notfound.tpl.php';
             return;
         }
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:33,代码来源:confirmation.php

示例2: Form_Create

 protected function Form_Create()
 {
     if (!QApplication::$Login) {
         QApplication::Redirect('/');
     }
     $this->objQcodoClass = QcodoClass::Load(QApplication::PathInfo(0));
     if (!$this->objQcodoClass) {
         throw new Exception('Invalid QcodoClass Id: ' . QApplication::PathInfo(0));
     }
     $this->lblName = new QLabel($this);
     $this->lblName->Text = $this->objQcodoClass->Name;
     $this->lstClassGroup = new QListBox($this);
     $this->lstClassGroup->Name = 'Class Group/Classification';
     foreach (ClassGroup::LoadAll(QQ::Clause(QQ::OrderBy(QQN::ClassGroup()->OrderNumber))) as $objClassGroup) {
         $this->lstClassGroup->AddItem($objClassGroup->Name, $objClassGroup->Id, $objClassGroup->Id == $this->objQcodoClass->ClassGroupId);
     }
     $this->chkEnumerationFlag = new QCheckBox($this);
     $this->chkEnumerationFlag->Checked = $this->objQcodoClass->EnumerationFlag;
     $this->chkEnumerationFlag->Name = 'Enumeration Class Flag';
     $this->txtShortDescription = new QTextBox($this);
     $this->txtShortDescription->Name = QApplication::Translate('Short Description');
     $this->txtShortDescription->Text = $this->objQcodoClass->ShortDescription;
     $this->txtShortDescription->TextMode = QTextMode::MultiLine;
     $this->txtExtendedDescription = new QWriteBox($this);
     $this->txtExtendedDescription->Name = QApplication::Translate('Extended Description');
     $this->txtExtendedDescription->Text = $this->objQcodoClass->ExtendedDescription;
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = 'Save';
     $this->btnSave->AddAction(new QClickEvent(), new QServerAction('btnSave_Click'));
     $this->btnSave->CausesValidation = true;
     $this->btnCancel = new QButton($this);
     $this->btnCancel->Text = 'Cancel';
     $this->btnCancel->AddAction(new QClickEvent(), new QServerAction('btnCancel_Click'));
     $this->btnCancel->CausesValidation = false;
 }
开发者ID:qcodo,项目名称:qcodo-api,代码行数:35,代码来源:edit_class.php

示例3: Form_Create

 protected function Form_Create()
 {
     // Setup Household Object
     $this->objHousehold = Household::Load(QApplication::PathInfo(0));
     if (!$this->objHousehold) {
         QApplication::Redirect('/households/');
     }
     $this->strPageTitle .= $this->objHousehold->Name;
     // Setup DataGrids
     $this->dtgMembers = new HouseholdParticipationDataGrid($this);
     $this->dtgMembers->AddColumn(new QDataGridColumn('Remove', '<?= $_FORM->RenderRadio($_ITEM); ?>', 'Width=80px', 'HtmlEntities=false'));
     $this->dtgMembers->MetaAddColumn('Role', 'Width=80px');
     $this->dtgMembers->MetaAddColumn(QQN::HouseholdParticipation()->Person->FirstName, 'Name=Name', 'Html=<?= $_ITEM->Person->LinkHtml; ?>', 'HtmlEntities=false', 'Width=300px');
     $this->dtgMembers->MetaAddColumn(QQN::HouseholdParticipation()->Person->PrimaryEmail->Address, 'Name=Email', 'Width=250px');
     $this->dtgMembers->MetaAddColumn(QQN::HouseholdParticipation()->Person->PrimaryPhone->Number, 'Name=Phone', 'Width=200px');
     $this->dtgMembers->GetColumn(0)->OrderByClause = null;
     $this->dtgMembers->GetColumn(1)->OrderByClause = null;
     $this->dtgMembers->GetColumn(2)->OrderByClause = null;
     $this->dtgMembers->GetColumn(3)->OrderByClause = null;
     $this->dtgMembers->GetColumn(4)->OrderByClause = null;
     $this->dtgMembers->DataSource = $this->objHousehold->GetOrderedParticipantArray();
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = 'Remove';
     $this->btnSave->CssClass = 'primary';
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxAction('btnSave_Click'));
     $this->btnSave->CausesValidation = true;
     $this->btnCancel = new QLinkButton($this);
     $this->btnCancel->Text = 'Cancel';
     $this->btnCancel->CssClass = 'cancel';
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxAction('btnCancel_Click'));
     $this->btnCancel->AddAction(new QClickEvent(), new QTerminateAction());
     $this->dlgMessage = new MessageDialog($this);
 }
开发者ID:alcf,项目名称:chms,代码行数:33,代码来源:remove.php

示例4: Form_Create

 protected function Form_Create()
 {
     $this->lblLabel = new QLabel($this);
     $this->lblLabel->Text = "Members who left after ";
     $this->dtxBeforeValue = new QDateTimeTextBox($this);
     $this->dtxBeforeValue->Name = "Members who Exited Before:";
     $this->dtxBeforeValue->Required = true;
     $this->beforeCalValue = new QCalendar($this, $this->dtxBeforeValue);
     $this->dtxBeforeValue->RemoveAllActions(QClickEvent::EventName);
     $this->dtxBeforeValue->AddAction(new QChangeEvent(), new QAjaxAction('dtxDate_Change'));
     $this->dtxBeforeValue->Text = QApplication::PathInfo(1);
     $this->dtxAfterValue = new QDateTimeTextBox($this);
     $this->dtxAfterValue->Name = "Members who exited After:";
     $this->dtxAfterValue->Required = true;
     $this->afterCalValue = new QCalendar($this, $this->dtxAfterValue);
     $this->dtxAfterValue->RemoveAllActions(QClickEvent::EventName);
     $this->dtxAfterValue->AddAction(new QChangeEvent(), new QAjaxAction('dtxDate_Change'));
     $this->dtxAfterValue->Text = QApplication::PathInfo(0);
     $this->dtgExitingMembers = new QDataGrid($this);
     $this->dtgExitingMembers->AddColumn(new QDataGridColumn('Name', '<?= $_ITEM->Person->FullName; ?>', 'Width=270px'));
     $this->dtgExitingMembers->AddColumn(new QDataGridColumn('Membership End Date', '<?= $_ITEM->DateEnd; ?>', 'Width=270px'));
     $this->dtgExitingMembers->AddColumn(new QDataGridColumn('Termination Reason', '<?= $_ITEM->TerminationReason; ?>', 'Width=270px'));
     $dtAfterValue = new QDateTime($this->dtxAfterValue->Text);
     $dtBeforeValue = new QDateTime($this->dtxBeforeValue->Text);
     $objMembershipArray = Membership::LoadArrayByEndDateRange($dtAfterValue, $dtBeforeValue);
     $this->iTotalCount = count($objMembershipArray);
     $this->dtgExitingMembers->DataSource = $objMembershipArray;
 }
开发者ID:alcf,项目名称:chms,代码行数:28,代码来源:report_exit_members.php

示例5: Form_Create

 protected function Form_Create()
 {
     $this->dtxBeforeValue = new QDateTimeTextBox($this);
     $this->dtxBeforeValue->Required = true;
     $this->beforeCalValue = new QCalendar($this, $this->dtxBeforeValue);
     $this->dtxBeforeValue->RemoveAllActions(QClickEvent::EventName);
     $this->dtxBeforeValue->AddAction(new QChangeEvent(), new QAjaxAction('dtxDate_Change'));
     $this->dtxBeforeValue->Text = QApplication::PathInfo(1);
     $this->dtxAfterValue = new QDateTimeTextBox($this);
     $this->dtxAfterValue->Required = true;
     $this->afterCalValue = new QCalendar($this, $this->dtxAfterValue);
     $this->dtxAfterValue->RemoveAllActions(QClickEvent::EventName);
     $this->dtxAfterValue->AddAction(new QChangeEvent(), new QAjaxAction('dtxDate_Change'));
     $this->dtxAfterValue->Text = QApplication::PathInfo(0);
     $this->dtgPerson = new PersonDataGrid($this);
     $objPaginator = new QPaginator($this->dtgPerson);
     $this->dtgPerson->Paginator = $objPaginator;
     $this->dtgPerson->ItemsPerPage = 20;
     $this->dtgPerson->AddColumn(new QDataGridColumn('Name', '<?= $_ITEM->FullName; ?>', 'Width=270px'));
     $this->dtgPerson->MetaAddTypeColumn('MembershipStatusTypeId', 'MembershipStatusType', 'Name=Membership', 'Width=110px', 'FontSize=11px');
     $this->dtgPerson->AddColumn(new QDataGridColumn('Comments', '<?= $_FORM->RenderComments($_ITEM) ?>', 'HtmlEntities=false', 'Width=270px'));
     $this->dtgPerson->AddColumn(new QDataGridColumn('Date Posted', '<?= $_FORM->RenderDate($_ITEM) ?>', 'HtmlEntities=false', 'Width=270px'));
     $this->dtgPerson->AddColumn(new QDataGridColumn('Privacy Level', '<?= $_FORM->RenderPrivacy($_ITEM) ?>', 'HtmlEntities=false', 'Width=100px'));
     $dtAfterValue = new QDateTime($this->dtxAfterValue->Text);
     $dtBeforeValue = new QDateTime($this->dtxBeforeValue->Text);
     $this->dtgPerson->SetDataBinder('dtgPerson_Bind');
 }
开发者ID:alcf,项目名称:chms,代码行数:27,代码来源:confidential_report.php

示例6: Form_Create

 protected function Form_Create()
 {
     $this->objLocation = GrowthGroupLocation::Load(QApplication::PathInfo(0));
     if (!$this->objLocation) {
         $this->objLocation = GrowthGroupLocation::Load(2);
     }
     $this->dtrGrowthGroups = new QDataRepeater($this, 'dtrgg');
     $this->dtrGrowthGroups->Template = dirname(__FILE__) . '/dtrGrowthGroups.tpl.php';
     $this->dtrGrowthGroups->SetDataBinder('dtrGrowthGroups_Bind');
     $this->pnlNone = new QPanel($this, 'pnlnone');
     $this->pnlNone->Text = 'No results found.  Please use a less restrictive filter.';
     $this->intMarkerArray = array();
     $intMarkerNumber = 0;
     // Filter Out "inactive" groups
     //foreach ($this->objLocation->GetGrowthGroupArray(QQ::Equal(QQN::GrowthGroup()->Group->ActiveFlag, true),
     //QQ::Clause(QQ::OrderBy(QQN::GrowthGroup()->Group->Name))) as $objGroup) {
     foreach ($this->objLocation->GetGrowthGroupArray(QQ::OrderBy(QQN::GrowthGroup()->Group->Name)) as $objGroup) {
         if ($objGroup->Group->ActiveFlag == true) {
             $intMarkerNumber++;
             $this->intMarkerArray[$objGroup->GroupId] = $intMarkerNumber;
         }
     }
     $this->lstDays = new QListBox($this);
     $this->lstDays->AddItem('- View All Days -', null);
     $this->lstDays->AddAction(new QChangeEvent(), new QAjaxAction('dtrGrowthGroups_Bind'));
     foreach (GrowthGroupDayType::$NameArray as $intId => $strName) {
         $this->lstDays->AddItem($strName, $intId);
     }
     $this->lstTypes = new QListBox($this);
     $this->lstTypes->AddItem('- View All Types -', null);
     $this->lstTypes->AddAction(new QChangeEvent(), new QAjaxAction('dtrGrowthGroups_Bind'));
     foreach (GrowthGroupStructure::LoadAll(QQ::OrderBy(QQN::GrowthGroupStructure()->Name)) as $objStructure) {
         $this->lstTypes->AddItem($objStructure->Name, $objStructure->Id);
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:35,代码来源:index.php

示例7: Form_Create

 protected function Form_Create()
 {
     switch (QApplication::PathInfo(0)) {
         case 'funds':
             $this->dtgReport = new QDataGrid($this);
             $this->dtgReport->AddColumn(new QDataGridColumn('Fund', '<?= $_ITEM->StewardshipFund->Name; ?>', 'Width=300px'));
             $this->dtgReport->AddColumn(new QDataGridColumn('Account Number', '<?= $_ITEM->StewardshipFund->AccountNumber; ?>', 'Width=200px'));
             $this->dtgReport->AddColumn(new QDataGridColumn('Amount', '<?= QApplication::DisplayCurrencyHtml($_ITEM->Amount); ?>', 'HtmlEntities=false', 'Width=245px'));
             $this->dtgReport->NoDataHtml = 'Changes only to members credited.  (No changes to funding accounts or amounts)';
             $this->dtgReport->SetDataBinder('dtgReport_Funds_Bind');
             break;
         case 'line_items':
             $this->dtgReport = new QDataGrid($this);
             $this->dtgReport->AddColumn(new QDataGridColumn('Person', '<?= $_ITEM->Person->Name; ?>', 'Width=200px'));
             $this->dtgReport->AddColumn(new QDataGridColumn('Fund', '<?= $_ITEM->StewardshipFund->Name; ?>', 'Width=200px'));
             $this->dtgReport->AddColumn(new QDataGridColumn('Description', '<?= $_ITEM->Description; ?>', 'Width=200px'));
             $this->dtgReport->AddColumn(new QDataGridColumn('Amount', '<?= QApplication::DisplayCurrencyHtml($_ITEM->Amount); ?>', 'HtmlEntities=false', 'Width=130px'));
             $this->dtgReport->SetDataBinder('dtgReport_LineItems_Bind');
             break;
         default:
             QApplication::Redirect('/stewardship/');
             break;
     }
     $this->objBatch = StewardshipBatch::Load(QApplication::PathInfo(1));
     if (!$this->objBatch) {
         QApplication::Redirect('/stewardship/');
     }
     $this->objPost = StewardshipPost::LoadByStewardshipBatchIdPostNumber($this->objBatch->Id, QApplication::PathInfo(2));
     if (!$this->objPost) {
         QApplication::Redirect('/stewardship/');
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:32,代码来源:print_report.php

示例8: Form_Create

 protected function Form_Create()
 {
     $this->strInitialToken = QApplication::PathInfo(0);
     if ($this->strInitialToken) {
         $this->objList = CommunicationList::LoadByToken($this->strInitialToken);
     }
     $this->chkBtnListArray = array();
     foreach (CommunicationList::LoadArrayBySubscribable(true, QQ::OrderBy(QQN::CommunicationList()->Token)) as $objEmailList) {
         $objItemList = new QCheckBox($this);
         $objItemList->Name = $objEmailList->Token;
         $objItemList->Text = $objEmailList->Name . ' - ' . $objEmailList->Description . "\n";
         if ($objEmailList->Token == $this->strInitialToken) {
             $objItemList->Checked = true;
         }
         $this->chkBtnListArray[] = $objItemList;
     }
     $this->txtEmail = new QTextBox($this);
     $this->txtEmail->Name = 'Email: ';
     $this->txtEmail->Visible = true;
     $this->txtFirstName = new QTextBox($this);
     $this->txtFirstName->Name = 'First Name: ';
     $this->txtFirstName->Visible = true;
     $this->txtLastName = new QTextBox($this);
     $this->txtLastName->Name = 'Last Name';
     $this->txtLastName->Visible = true;
     $this->btnSubscribe = new QButton($this);
     $this->btnSubscribe->Name = 'Subscribe';
     $this->btnSubscribe->Text = 'Subscribe';
     $this->btnSubscribe->CssClass = 'primary';
     $this->btnSubscribe->Visible = true;
     $this->btnSubscribe->AddAction(new QClickEvent(), new QAjaxAction('btnSubscribe_Click'));
     $this->lblMessage = new QLabel($this);
     $this->lblMessage->FontBold = true;
     $this->lblMessage->Visible = false;
 }
开发者ID:alcf,项目名称:chms,代码行数:35,代码来源:index.php

示例9: dtgItems_Bind

 public function dtgItems_Bind()
 {
     $intYear = QApplication::PathInfo(0);
     $dttStart = new QDateTime($intYear . '-01-01');
     $dttEnd = new QDateTime($dttStart);
     $dttEnd->Year += 1;
     $dttStart->SetTime(null, null, null);
     $dttEnd->SetTime(null, null, null);
     $objPersonCursor = Person::QueryCursor(QQ::AndCondition(QQ::GreaterOrEqual(QQN::Person()->StewardshipContribution->DateCredited, $dttStart), QQ::LessThan(QQN::Person()->StewardshipContribution->DateCredited, $dttEnd)), QQ::Clause(QQ::Distinct(), QQ::OrderBy(QQN::Person()->LastName, QQN::Person()->FirstName)));
     $strNameArray = array();
     $strNameValueArray = array();
     while ($objPerson = Person::InstantiateCursor($objPersonCursor)) {
         $strToken = strtolower($objPerson->FirstName . '|' . $objPerson->LastName);
         $strToken = str_replace(' ', '', $strToken);
         $strToken = str_replace('.', '', $strToken);
         $strToken = str_replace(',', '', $strToken);
         $strToken = str_replace('-', '', $strToken);
         $strToken = str_replace('_', '', $strToken);
         $strToken = str_replace('/', '', $strToken);
         if (array_key_exists($strToken, $strNameArray)) {
             $strNameValueArray[$strToken] = $objPerson->FirstName . ' ' . $objPerson->LastName;
         }
         $strNameArray[$strToken] = true;
     }
     $this->dtgItems->DataSource = $strNameValueArray;
 }
开发者ID:alcf,项目名称:chms,代码行数:26,代码来源:duplicate_names.php

示例10: Form_Create

 protected function Form_Create()
 {
     $this->objList = CommunicationList::LoadById(QApplication::PathInfo(0));
     if (!$this->objList) {
         QApplication::Redirect('/communications/');
     }
     $this->strPageTitle .= $this->objList->Name;
     $this->dtgMembers = new QDataGrid($this);
     $this->dtgMembers->UseAjax = true;
     $this->dtgMembers->Paginator = new QPaginator($this->dtgMembers);
     if ($this->objList->Ministry->IsLoginCanAdminMinistry(QApplication::$Login)) {
         $this->dtgMembers->AddColumn(new QDataGridColumn('Edit', '<?= $_FORM->RenderEdit($_ITEM); ?>', 'HtmlEntities=false', 'Width=140px', 'FontSize=10px'));
     }
     $this->dtgMembers->AddColumn(new QDataGridColumn('First Name', '<?= $_ITEM[0]; ?>', 'Width=150px', 'SortByCommand=0,0', 'ReverseSortByCommand=0,1'));
     $this->dtgMembers->AddColumn(new QDataGridColumn('Middle', '<?= $_ITEM[1]; ?>', 'Width=80px', 'SortByCommand=1,0', 'ReverseSortByCommand=1,1'));
     $this->dtgMembers->AddColumn(new QDataGridColumn('Last Name', '<?= $_ITEM[2]; ?>', 'Width=150px', 'SortByCommand=2,0', 'ReverseSortByCommand=2,1'));
     $this->dtgMembers->AddColumn(new QDataGridColumn('Email', '<a href="mailto:<?= QApplication::HtmlEntities($_ITEM[3]); ?>"><?= QApplication::HtmlEntities($_ITEM[3]); ?></a>', 'HtmlEntities=false', 'Width=290px', 'SortByCommand=3,0', 'ReverseSortByCommand=3,1'));
     $this->dtgMembers->AddColumn(new QDataGridColumn('Member?', '<?= $_ITEM[6]; ?>', 'Width=75px', 'SortByCommand=6,0', 'ReverseSortByCommand=6,1'));
     if ($this->objList->Ministry->IsLoginCanAdminMinistry(QApplication::$Login)) {
         $this->dtgMembers->SortColumnIndex = 3;
     } else {
         $this->dtgMembers->SortColumnIndex = 2;
     }
     $this->pxyUnsubscribeEntry = new QControlProxy($this);
     $this->pxyUnsubscribeEntry->AddAction(new QClickEvent(), new QConfirmAction('Are you SURE you want to unsubscribe this person from the list?'));
     $this->pxyUnsubscribeEntry->AddAction(new QClickEvent(), new QAjaxAction('pxyUnsubscribeEntry_Click'));
     $this->pxyUnsubscribeEntry->AddAction(new QClickEvent(), new QTerminateAction());
     $this->pxyUnsubscribePerson = new QControlProxy($this);
     $this->pxyUnsubscribePerson->AddAction(new QClickEvent(), new QConfirmAction('Are you SURE you want to unsubscribe this person from the list?'));
     $this->pxyUnsubscribePerson->AddAction(new QClickEvent(), new QAjaxAction('pxyUnsubscribePerson_Click'));
     $this->pxyUnsubscribePerson->AddAction(new QClickEvent(), new QTerminateAction());
     $this->dtgMembers->SetDataBinder('dtgMembers_Bind');
     $this->SetupEmailMessageControls();
 }
开发者ID:alcf,项目名称:chms,代码行数:34,代码来源:list.php

示例11: Form_Create

 protected function Form_Create()
 {
     $this->objProvisionalPublicLogin = ProvisionalPublicLogin::Load(QApplication::PathInfo(0));
     if (!$this->objProvisionalPublicLogin || $this->objProvisionalPublicLogin->UrlHash != QApplication::PathInfo(1)) {
         QApplication::Redirect('/register/');
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:7,代码来源:awaiting.php

示例12: Form_Create

 protected function Form_Create()
 {
     $this->txtUsername = new QTextBox($this);
     $this->txtUsername->Name = 'Username';
     $this->txtUsername->Required = true;
     $this->txtUsername->Text = QApplication::PathInfo(0);
     $this->txtCode = new QTextBox($this);
     $this->txtCode->Name = 'Confirmation Code';
     $this->txtCode->Required = true;
     $this->txtCode->CausesValidation = true;
     $this->txtCode->Text = QApplication::PathInfo(1);
     $this->btnConfirm = new QButton($this);
     $this->btnConfirm->Text = 'Confirm My Email';
     $this->btnConfirm->CausesValidation = true;
     $this->txtUsername->AddAction(new QEnterKeyEvent(), new QFocusControlAction($this->txtCode));
     $this->txtUsername->AddAction(new QEnterKeyEvent(), new QTerminateAction());
     $this->txtCode->AddAction(new QEnterKeyEvent(), new QAjaxAction('btnConfirm_Click'));
     $this->txtCode->AddAction(new QEnterKeyEvent(), new QTerminateAction());
     $this->btnConfirm->AddAction(new QClickEvent(), new QAjaxAction('btnConfirm_Click'));
     if (!$this->txtUsername->Text) {
         $this->txtUsername->Focus();
     } else {
         $this->txtCode->Focus();
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:25,代码来源:c.php

示例13: Form_Create

 protected function Form_Create()
 {
     // Setup Household Object
     $this->objHousehold = Household::Load(QApplication::PathInfo(0));
     if (!$this->objHousehold) {
         QApplication::Redirect('/households/');
     }
     $this->strPageTitle .= $this->objHousehold->Name;
     // Setup DataGrids
     $this->dtgMembers = new QDataGrid($this);
     $this->dtgMembers->AlternateRowStyle->CssClass = 'alternate';
     $this->dtgMembers->AddColumn(new QDataGridColumn('Head', '<?= $_FORM->RenderHead($_ITEM); ?>', 'HtmlEntities=false', 'Width=50px'));
     $this->dtgMembers->AddColumn(new QDataGridColumn('Name', '<?= $_ITEM->Person->Name; ?>', 'Width=250px'));
     $this->dtgMembers->AddColumn(new QDataGridColumn('Role in Household', '<?= $_FORM->RenderRole($_ITEM); ?>', 'HtmlEntities=false', 'Width=630px'));
     $this->dtgMembers->SetDataBinder('dtgMembers_Bind');
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = 'Update';
     $this->btnSave->CssClass = 'primary';
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxAction('btnSave_Click'));
     $this->btnCancel = new QLinkButton($this);
     $this->btnCancel->Text = 'Cancel';
     $this->btnCancel->CssClass = 'cancel';
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxAction('btnCancel_Click'));
     $this->btnCancel->AddAction(new QClickEvent(), new QTerminateAction());
 }
开发者ID:alcf,项目名称:chms,代码行数:25,代码来源:edit_roles.php

示例14: Redirect

 protected function Redirect()
 {
     $objVariable = ClassVariable::Load(QApplication::PathInfo(0));
     if ($objVariable) {
         QApplication::Redirect('/index.php/' . $this->objVariable->QcodoClass->Name . '/Variables');
     } else {
         QApplication::Redirect('/index.php');
     }
 }
开发者ID:qcodo,项目名称:qcodo-api,代码行数:9,代码来源:edit_variable.php

示例15: Redirect

 protected function Redirect()
 {
     $objConstant = QcodoConstant::Load(QApplication::PathInfo(0));
     if ($objConstant) {
         QApplication::Redirect('/index.php/' . $this->objConstant->QcodoClass->Name . '/Constants');
     } else {
         QApplication::Redirect('/index.php');
     }
 }
开发者ID:qcodo,项目名称:qcodo-api,代码行数:9,代码来源:edit_constant.php


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