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/advanced_ajax/ |
Upload File : |
<?php require_once('../qcubed.inc.php'); // Define the Qform with all our Qcontrols class ExamplesForm extends QForm { // Local declarations of our Qcontrols protected $pnlPanel; protected $lblHandle; protected $txtTextbox; protected $pnlParent; // Initialize our Controls during the Form Creation process protected function Form_Create() { // Define the Panel $this->pnlPanel = new QPanel($this); $this->pnlPanel->Text = 'You can click on me to drag me around.'; $this->pnlPanel->Position = QPosition::Absolute; $this->pnlPanel->Top = 5; $this->pnlPanel->Left = 5; $this->pnlPanel->Moveable = true; $this->pnlParent = new QPanel ($this); $this->pnlParent->AutoRenderChildren = true; $this->pnlParent->Position = QPosition::Absolute; $this->pnlParent->Top = 100; $this->pnlParent->Left = 100; $this->lblHandle = new QPanel($this->pnlParent); $this->lblHandle->Text = 'Please Enter your Name'; $this->lblHandle->Cursor='move'; $this->lblHandle->BackColor='#333333'; $this->lblHandle->ForeColor='#FFFFFF'; $this->lblHandle->Width='250px'; $this->lblHandle->Padding='4'; $this->txtTextbox = new QTextBox($this->pnlParent); $this->txtTextbox->Width='250px'; // Let's assign the panel as a moveable control, handled // by the label. $this->pnlParent->Moveable = true; $this->pnlParent->DragObj->Handle = $this->lblHandle; } } // Run the Form we have defined ExamplesForm::Run('ExamplesForm'); ?>