+ public function createElementInputNumber($name, $maxlength, $size, $id = null, $value = null) {
+ $numfield = $this->createElement('input');
+ $numfield->setAttribute('type', 'number');
+ if (!is_null($id)) { $numfield->setAttribute('id', $id); }
+ $numfield->setAttribute('name', $name);
+ $numfield->setAttribute('maxlength', $maxlength);
+ $numfield->setAttribute('size', $size);
+ if (!is_null($value)) { $numfield->setAttribute('value', $value); }
+ return $numfield;
+ }
+
+ public function createElementInputRange($name, $id, $min, $max, $step = null, $value = null) {
+ $rgfield = $this->createElement('input');
+ $rgfield->setAttribute('type', 'range');
+ if (!is_null($id)) { $rgfield->setAttribute('id', $id); }
+ $rgfield->setAttribute('name', $name);
+ if (!is_null($min)) { $rgfield->setAttribute('min', $min); }
+ if (!is_null($max)) { $rgfield->setAttribute('max', $max); }
+ if (!is_null($step)) { $rgfield->setAttribute('step', $step); }
+ if (!is_null($value)) { $rgfield->setAttribute('value', $value); }
+ return $rgfield;
+ }
+
+ public function createElementInputUrl($name, $maxlength, $size, $id = null, $value = null) {
+ $urlfield = $this->createElement('input');
+ $urlfield->setAttribute('type', 'url');
+ if (!is_null($id)) { $urlfield->setAttribute('id', $id); }
+ $urlfield->setAttribute('name', $name);
+ $urlfield->setAttribute('maxlength', $maxlength);
+ $urlfield->setAttribute('size', $size);
+ if (!is_null($value)) { $urlfield->setAttribute('value', $value); }
+ return $urlfield;
+ }
+
+ public function createElementInputEmail($name, $maxlength, $size, $id = null, $value = null) {
+ $mailfield = $this->createElement('input');
+ $mailfield->setAttribute('type', 'email');
+ if (!is_null($id)) { $mailfield->setAttribute('id', $id); }
+ $mailfield->setAttribute('name', $name);
+ $mailfield->setAttribute('maxlength', $maxlength);
+ $mailfield->setAttribute('size', $size);
+ if (!is_null($value)) { $mailfield->setAttribute('value', $value); }
+ return $mailfield;
+ }
+
+ public function createElementInputTel($name, $maxlength, $size, $id = null, $value = null) {
+ $telfield = $this->createElement('input');
+ $telfield->setAttribute('type', 'tel');
+ if (!is_null($id)) { $telfield->setAttribute('id', $id); }
+ $telfield->setAttribute('name', $name);
+ $telfield->setAttribute('maxlength', $maxlength);
+ $telfield->setAttribute('size', $size);
+ if (!is_null($value)) { $telfield->setAttribute('value', $value); }
+ return $telfield;
+ }
+
+ public function createElementInputDate($name, $id = null, $min = null, $max = null, $value = null) {
+ $dtfield = $this->createElement('input');
+ $dtfield->setAttribute('type', 'date');
+ if (!is_null($id)) { $dtfield->setAttribute('id', $id); }
+ $dtfield->setAttribute('name', $name);
+ if (!is_null($min)) { $dtfield->setAttribute('min', $min); }
+ if (!is_null($max)) { $dtfield->setAttribute('max', $max); }
+ if (!is_null($value)) { $dtfield->setAttribute('value', $value); }
+ return $dtfield;
+ }
+
+ public function createElementInputTime($name, $id = null, $min = null, $max = null, $value = null) {
+ $timefield = $this->createElement('input');
+ $timefield->setAttribute('type', 'time');
+ if (!is_null($id)) { $timefield->setAttribute('id', $id); }
+ $timefield->setAttribute('name', $name);
+ if (!is_null($min)) { $timefield->setAttribute('min', $min); }
+ if (!is_null($max)) { $timefield->setAttribute('max', $max); }
+ if (!is_null($value)) { $timefield->setAttribute('value', $value); }
+ return $timefield;
+ }
+
+ public function createElementInputColor($name, $id = null, $value = null) {
+ $colfield = $this->createElement('input');
+ $colfield->setAttribute('type', 'color');
+ if (!is_null($id)) { $colfield->setAttribute('id', $id); }
+ $colfield->setAttribute('name', $name);
+ if (!is_null($value)) { $colfield->setAttribute('value', $value); }
+ return $colfield;
+ }
+