Mercurial > hgrepos > hgweb.cgi > s4
changeset 29:f4048bfdc7f5
cgi_reset and cgi_checkbox added
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 22 Jul 2015 09:19:35 +0900 |
parents | 7ae119a14613 |
children | a9f061d74153 |
files | s4-cgi.sh |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-cgi.sh Wed Jul 22 09:19:04 2015 +0900 +++ b/s4-cgi.sh Wed Jul 22 09:19:35 2015 +0900 @@ -19,9 +19,17 @@ <input type="submit" value="$1"> EOF } +cgi_reset() { + cat<<EOF +<input type="reset" value="$1"> +EOF +} cgi_radio() { echo "<input type=\"radio\" name=\"$1\" ${2:+value=\"$2\"} $3>" } +cgi_checkbox() { + echo "<input type=\"checkbox\" name=\"$1\" ${2:+value=\"$2\"} $3>" +} cgi_hidden() { echo "<input type=\"hidden\" name=\"$1\" value=\"$2\" $3>" }