diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/html.c | 8 | ||||
-rw-r--r-- | src/utils/html.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/utils/html.c b/src/utils/html.c index e5d2993..95f7d11 100644 --- a/src/utils/html.c +++ b/src/utils/html.c @@ -849,6 +849,14 @@ mq_html_label(const gchar *for_id, const gchar *label, gboolean add_colon) } gchar * +mq_html_submit(const gchar *name, const gchar *label, gboolean disabled) +{ + return g_strdup_printf( + "<input type=\"submit\" name=\"%s\" value=\"%s\"%s>\n", + name, label, disabled ? " disabled=\"disabled\"" : ""); +} + +gchar * mq_html_input_iframe(const gchar *src) { return g_strdup_printf("<iframe src=\"%s\"></iframe>", src); diff --git a/src/utils/html.h b/src/utils/html.h index 63d20f9..27e0cfe 100644 --- a/src/utils/html.h +++ b/src/utils/html.h @@ -94,6 +94,9 @@ gchar * mq_html_label(const gchar *for_id, const gchar *label, gboolean add_colon); gchar * +mq_html_submit(const gchar *name, const gchar *label, gboolean disabled); + +gchar * mq_html_input_iframe(const gchar *src); G_END_DECLS |