aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/sledjchisl
diff options
context:
space:
mode:
authoronefang2020-03-17 12:32:25 +1000
committeronefang2020-03-17 12:32:25 +1000
commit6745e4039d9343f92accddf383673897c673f6f0 (patch)
tree83610371b432955b4619fac6a3cbb75a299ecedf /src/sledjchisl
parentLoad the local config file first, then let it be overridden by system and hom... (diff)
downloadopensim-SC_OLD-6745e4039d9343f92accddf383673897c673f6f0.zip
opensim-SC_OLD-6745e4039d9343f92accddf383673897c673f6f0.tar.gz
opensim-SC_OLD-6745e4039d9343f92accddf383673897c673f6f0.tar.bz2
opensim-SC_OLD-6745e4039d9343f92accddf383673897c673f6f0.tar.xz
HTML labels before their input fields.
Diffstat (limited to 'src/sledjchisl')
-rw-r--r--src/sledjchisl/sledjchisl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index 6acd4a8..609fefa 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -2220,14 +2220,14 @@ static void HTMLformEnd(qgrow_t *reply)
2220static void HTMLcheckBox(qgrow_t *reply, char *name, char *title, boolean checked) 2220static void HTMLcheckBox(qgrow_t *reply, char *name, char *title, boolean checked)
2221{ 2221{
2222 if (checked) 2222 if (checked)
2223 reply->addstrf(reply, " <p><input type=\"checkbox\" name=\"%s\" checked><label for=\"%s\">%s</label></p>\n", name, name, title); 2223 reply->addstrf(reply, " <p><label for=\"%s\">%s</label> : <input type=\"checkbox\" name=\"%s\" checked></p>\n", name, title, name);
2224 else 2224 else
2225 reply->addstrf(reply, " <p><input type=\"checkbox\" name=\"%s\"><label for=\"%s\">%s</label></p>\n", name, name, title); 2225 reply->addstrf(reply, " <p><input type=\"checkbox\" name=\"%s\"><label for=\"%s\">%s</label></p>\n", name, name, title);
2226} 2226}
2227 2227
2228static void HTMLtext(qgrow_t *reply, char *type, char *title, char *name, char *val, int size, int max, boolean required) 2228static void HTMLtext(qgrow_t *reply, char *type, char *title, char *name, char *val, int size, int max, boolean required)
2229{ 2229{
2230 reply->addstrf(reply, " <p>%s : <input type=\"%s\" name=\"%s\"", title, type, name); 2230 reply->addstrf(reply, " <p><label for=\"%s\">%s</label> : <input type=\"%s\" name=\"%s\"", name, title, type, name);
2231 if ("" != val) 2231 if ("" != val)
2232 reply->addstrf(reply, "value=\"%s\"", val); 2232 reply->addstrf(reply, "value=\"%s\"", val);
2233 if (0 < size) 2233 if (0 < size)