Diferente color a Subtitle en los Dynaforms

Botones Disabled (todavía en prueba)
Toolbar con el sprite.
This commit is contained in:
rene
2011-02-18 14:03:33 +00:00
parent 7f8ecc4da7
commit acdc517b37
8 changed files with 131 additions and 78 deletions

View File

@@ -140,6 +140,13 @@ class XmlForm_Field_toolButton extends XmlForm_Field
case 'text':
$html=$this->htmlentities($this->label, ENT_QUOTES,'utf-8');
break;
case 'html':
$html='<span '.
' onmouseover=\'backImage(this,"url('.htmlentities( $urlAlt, ENT_QUOTES, 'utf-8').') no-repeat")\' onmouseout=\'backImage(this,"")\' style="width:25px;font-size:25px;line-height:25px;">'.
$this->label.'</span>';
//$html=$this->label;
break;
case 'image/text':
$html='<img src="'.htmlentities( $url, ENT_QUOTES, 'utf-8').'"'.
(($this->style)?' style="'.$this->style.'"':'').'/><br/>'.
@@ -151,10 +158,10 @@ class XmlForm_Field_toolButton extends XmlForm_Field
(($this->style)?' style="'.$this->style.'"':'').'/>';
break;
}
return '<A class="toolButton" '.
return '<a class="toolButton" '.
(($this->buttonStyle)?' style="'.$this->buttonStyle.'"':'').
(($this->onclick)?' onclick="'. htmlentities($this->onclick, ENT_QUOTES,'utf-8').'"':'').
'>'.$html.'</A>';
'>'.$html.'</a>';
}
}
?>