Server IP : 103.118.17.23 / Your IP : 216.73.216.168 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/basic_qform/ |
Upload File : |
<?php // This is the HTML template include file for intro.php (View Layer) // Here is where you specify any HTML that you want rendered in the form, and here // is where you can specify which controls you want rendered and where. ?> <?php require('../includes/header.inc.php'); ?> <?php $this->RenderBegin(); ?> <div id="instructions"> <h1>Learning the Basics</h1> <p>Welcome to your first <strong>QForm</strong>! This example shows how you can create a few <strong>QControl</strong> objects (in this case, a <strong>QLabel</strong> and a <strong>QButton</strong>) and set their text inside. It also assigns a <strong>QClickEvent</strong> on the button to a <strong>QServerAction</strong>. This server action (which is a PHP method) will simply modify the label to say "Hello, World!".</p> <p>All <strong>QForm</strong> objects use an HTML include file -- in thise case, we define the HTML in the <strong>intro.tpl.php</strong> file. Note that there are <strong>RenderBegin()</strong> and <strong>RenderEnd()</strong> methods which are required to be called within the template in order to output the appropriate <form> tags, and also outputs any additional HTML and JavaScript that makes the <strong>QForm</strong> work. (QCubed will in fact throw an exception if either <strong>RenderBegin</strong> and <strong>RenderEnd</strong> are not called.)</p> <p>Click on the "View Source" link below to view the <strong>intro.php</strong> and <strong>intro.tpl.php</strong> code, which together define this <strong>QForm</strong> you are seeing.</p> </div> <div id="demoZone"> <h2>Hello World Example</h2> <p><?php $this->lblMessage->Render(); ?></p> <p><?php $this->btnButton->Render(); ?></p> </div> <?php $this->RenderEnd(); ?> <?php require('../includes/footer.inc.php'); ?>