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/basic_qform/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/basic_qform/calculator_3.tpl.php
<?php require('../includes/header.inc.php'); ?>
<?php $this->RenderBegin(); ?>

<div id="instructions">
	<h1>Custom Renderers and Control Properties</h1>

	<p>In our final Calculator example, we show how you can use custom renderers to affect layout,
		as well as use control properties to change the appearance of your QControls.</p>

	<p>The QCubed distribution includes a sample custom renderer, <strong>RenderWithName</strong>, which is
		defined in your QControl custom class (which is at /includes/qform/QControl.inc).
		We'll use this <strong>RenderWithName</strong> for our calculator's textboxes and listbox.  We've also
		made sure to assign <strong>Name</strong> properties to these QControls.</p>

	<p>Note how "Value 1" and "Value 2" are in all caps and boldfaced, while "Operation" is not.  This is
		because the textboxes are set to <strong>Required</strong> while the listbox is not.  And the sample
		<strong>RenderWithName</strong> method has code which will boldface/allcaps the names of any required controls.</p>

	<p>We've also made some changes to the styling and such to the various controls.  Note that you can
		programmatically make these changes in our form definition (in <strong>Form_Create</strong>), and you can
		also make these changes as "Attribute Overrides" in the HTML template itself (see the "Other Tidbits"
		section for more information on <strong>Attribute Overriding</strong>).</p>

	<p>And finally, in our HTML template, we are now using the <strong>RenderWithName</strong> calls.  Because of that,
		we no longer need to hard code the "Value 1" and "Value 2" HTML in the template.</p>
</div>

<div id="demoZone">
	<p><?php $this->txtValue1->RenderWithName(); ?></p>

	<p><?php $this->txtValue2->RenderWithName(); ?></p>

	<p><?php $this->lstOperation->RenderWithName(); ?></p>

	<?php $this->btnCalculate->Render('Width=200px', 'Height=100px', 'FontNames=Courier'); ?>
	<hr/>
	<?php $this->lblResult->Render('FontSize=20px', 'FontItalic=true'); ?>
</div>

<?php $this->RenderEnd(); ?>
<?php require('../includes/footer.inc.php'); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit