TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
addlogo
home
vendor
nette
forms
examples
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/addlogo/home/vendor/nette/forms/examples/html5.php
<?php /** * Nette Forms and HTML5. */ if (@!include __DIR__ . '/../vendor/autoload.php') { die('Install packages using `composer install`'); } use Nette\Forms\Form; use Tracy\Debugger; use Tracy\Dumper; Debugger::enable(); $form = new Form; $form->addGroup(); $form->addText('query', 'Search:') ->setType('search') ->setAttribute('autofocus'); $form->addText('count', 'Number of results:') ->setType('number') ->setDefaultValue(10) ->addRule($form::INTEGER, 'Must be numeric value') ->addRule($form::RANGE, 'Must be in range from %d to %d', array(1, 100)); $form->addText('precision', 'Precision:') ->setType('range') ->setDefaultValue(50) ->addRule($form::INTEGER, 'Precision must be numeric value') ->addRule($form::RANGE, 'Precision must be in range from %d to %d', array(0, 100)); $form->addText('email', 'Send to email:') ->setType('email') ->setAttribute('autocomplete', 'off') ->setAttribute('placeholder', 'Optional, but Recommended') ->addCondition($form::FILLED) // conditional rule: if is email filled, ... ->addRule($form::EMAIL, 'Incorrect email address'); // ... then check email $form->addSubmit('submit', 'Send'); if ($form->isSuccess()) { echo '<h2>Form was submitted and successfully validated</h2>'; Dumper::dump($form->getValues()); exit; } ?> <!DOCTYPE html> <meta charset="utf-8"> <title>Nette Forms and HTML5</title> <link rel="stylesheet" media="screen" href="assets/style.css" /> <script src="http://nette.github.io/resources/js/netteForms.js"></script> <h1>Nette Forms and HTML5</h1> <?php echo $form ?> <footer><a href="http://doc.nette.org/en/forms">see documentation</a></footer>
Crotin
Name
Size
Permissions
Modified
User/Group
custom-rendering.php
2738
0644
2015-09-30 18:28:42
Unknown/Unknown
manual-rendering.php
2185
0644
2015-09-30 18:28:42
Unknown/Unknown
bootstrap3-rendering.php
2831
0644
2015-09-30 18:28:41
Unknown/Unknown
basic-example.php
3268
0644
2015-09-30 18:28:41
Unknown/Unknown
localization.ini
361
0644
2015-09-30 18:28:42
Unknown/Unknown
custom-control.php
2555
0644
2015-09-30 18:28:42
Unknown/Unknown
containers.php
1264
0644
2015-09-30 18:28:42
Unknown/Unknown
localization.php
1796
0644
2015-09-30 18:28:41
Unknown/Unknown
custom-validator.php
1432
0644
2015-09-30 18:28:42
Unknown/Unknown
html5.php
1651
0644
2015-09-30 18:28:42
Unknown/Unknown
bootstrap2-rendering.php
2599
0644
2015-09-30 18:28:41
Unknown/Unknown
assets
-
0755
2015-09-30 18:28:50
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin