00001 <?php
00014 class CampoListaDesplegableAmpliable extends CampoListaDesplegable{
00015 protected $atributos = array('id','clase','lista','editable','tabindex');
00016
00020 public function verNodo(){
00021 $xml = new DOMDocument();
00022
00023
00024 $input = $xml->createElement("input");
00025 $input->setAttribute("type", "text");
00026
00027 $input->setAttribute("maxlength", "10");
00028 $input->setAttribute("id", "texto".ucfirst($this->id));
00029 $input->setAttribute("name", "texto".ucfirst($this->id));
00030 if ($this->editable == 'no')
00031 $input->setAttribute("disabled", "disabled");
00032 if (isset($this->clase))
00033 $input->setAttribute("class", $this->clase);
00034 if (isset($this->tabindex))
00035 $input->setAttribute("tabindex", $this->tabindex);
00036
00037
00038 $selectPadre = parent::verNodo();
00039 $select = $xml->importNode($selectPadre, true);
00040 $select->setAttribute('id', 'lista'.ucfirst($this->id));
00041
00042
00043 $boton = $xml->createElement('img');
00044 $boton->setAttribute('id', 'boton'.ucfirst($this->id));
00045 $boton->setAttribute('src', 'iu/img/edit.png');
00046 if ($this->editable == 'no')
00047 $boton->setAttribute("disabled", "disabled");
00048
00049
00050 $span = $xml->createElement("span");
00051 $span->setAttribute("id", $this->id);
00052 $span->appendChild($input);
00053 $span->appendChild($select);
00054 $span->appendChild($boton);
00055
00056 return $span;
00057 }
00058 }
00059
00061
00062 return true;
00063 ?>