403Webshell
Server IP : 103.118.17.23  /  Your IP : 216.73.216.188
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/_core/php/examples/events_actions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/events_actions/other_actions.php
<?php
	require_once('../qcubed.inc.php');

	class ExampleForm extends QForm {
		protected $btnFocus;
		protected $btnSelect;
		protected $txtFocus;

		protected $btnToggleDisplay;
		protected $txtDisplay;

		protected $btnToggleEnable;
		protected $txtEnable;
		
		protected $pnlHover;
		
		protected $btnCssAction;

		protected function Form_Create() {
			// Define the Textboxes
			$this->txtFocus = new QTextBox($this);
			$this->txtFocus->Text = 'Example Text Here';
			$this->txtDisplay = new QTextBox($this);
			$this->txtDisplay->Text = 'Example Text Here';
			$this->txtEnable = new QTextBox($this);
			$this->txtEnable->Text = 'Example Text Here';

			// QFocusControlAction example
			$this->btnFocus = new QButton($this);
			$this->btnFocus->Text = 'Set Focus';
			$this->btnFocus->AddAction(new QClickEvent(), new QFocusControlAction($this->txtFocus));

			// QSelectControlAction example
			$this->btnSelect = new QButton($this);
			$this->btnSelect->Text = 'Select All in Textbox';
			$this->btnSelect->AddAction(new QClickEvent(), new QSelectControlAction($this->txtFocus));

			// QToggleDisplayAction example
			$this->btnToggleDisplay = new QButton($this);
			$this->btnToggleDisplay->Text = 'Toggle the Display (show/hide)';
			$this->btnToggleDisplay->AddAction(new QClickEvent(), new QToggleDisplayAction($this->txtDisplay));

			// QToggleEnableAction example
			$this->btnToggleEnable = new QButton($this);
			$this->btnToggleEnable->Text = 'Toggle the Enable (enabled/disabled)';
			$this->btnToggleEnable->AddAction(new QClickEvent(), new QToggleEnableAction($this->txtEnable));

			// QCssClassAction example
			$this->pnlHover = new QPanel($this);
			$this->pnlHover->HtmlEntities = false;
			$this->pnlHover->Text = 'Change the CSS class of a control using <b>QCssClassAction</b>:<br /><br />(Uses QMouseOver and QMouseOut to Temporarily Override the Panel\'s CSS Style)';

			// Set a Default Style
			$this->pnlHover->CssClass = 'panelHover';

			// Add QMouseOver and QMouseOut actions to set and then reset temporary style overrides
			// Setting the TemporaryCssClass to "null" will "reset" the style back to the default
			$this->pnlHover->AddAction(new QMouseOverEvent(), new QCssClassAction('panelHighlight', true));
			$this->pnlHover->AddAction(new QMouseOutEvent(), new QCssClassAction());
			
			$this->btnCssAction = new QButton($this);
			$this->btnCssAction->Text = "click me to change my background color!";
			$this->btnCssAction->AddAction(new QClickEvent(), new QCssAction("background", "green"));
		}
	}

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

Youez - 2016 - github.com/yon3zu
LinuXploit