Mercurial > hg > fapweb
diff msitegen.inc.php @ 680:c9b96a7b9dc4
Add new helper function and use it.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 09 Nov 2014 14:17:34 +0200 |
parents | 8104e54bce71 |
children | 330e6d79c5dc |
line wrap: on
line diff
--- a/msitegen.inc.php Sun Nov 09 13:53:56 2014 +0200 +++ b/msitegen.inc.php Sun Nov 09 14:17:34 2014 +0200 @@ -212,6 +212,13 @@ } +function stGetFormButtonElement($name, $id, $prefix, $label, $onclick = "") +{ + return + "<button class=\"button\" ".stGetIDName($name, $id, $prefix)." type=\"button\"". + ($onclick != "" ? " onClick=\"".$onclick."\"" : "")."> ".chentities($label)." </button>"; +} + function stGetFormTextArea($rows, $cols, $name, $id, $prefix, $value, $extra = "") { return