예제 #1
0
파일: FormType.php 프로젝트: rverbrugge/dif
 public function getHtml()
 {
     return parent::getHtml() . " <em>(dd-mm-yyyy)</em>";
 }
예제 #2
0
파일: test_01.php 프로젝트: rancoud/RForm
<?php

require '../src/autoload.php';
$args = array('name' => 'myInput_01', 'label' => 'myLabel_01', 'data-mongars' => 'vnoez<ho"jkljlk"ihoi>hvioezh', 'value' => 'ok"ez"z"rz"rzlm', 'maxlength' => 10);
$input = new InputTextField();
$input->prepare($args)->render()->display();
$options = array(array('myvalue' => 'mylabel'), array('223' => 'ccxxiii', 'attrs' => array('data-livecoding-viewer' => 'true')), array('michel' => 'michel', 'attrs' => array('data-citation' => '"I love potatoes"', 'disabled' => 'disabled')), array('OPTGRP', 'Swedish Cars', 'disabled', array(array('volvo' => 'Volvo'), array('saab' => 'Saab'))), array('OPTGRP', 'French Cars', '', array(array('peugeot' => 'Peugeot', 'attrs' => array('selected' => 'selected')))));
$args = array('name' => 'myInput_02', 'label' => 'myLabel_02', 'options' => $options);
$input = new InputSelectField();
$input->prepare($args)->render()->display();