mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Avoid long lines with many radio/check buttons
SVN revision: 309
This commit is contained in:
parent
4ea4cf95c9
commit
9f4e196d5b
21
elogd.c
21
elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 2.116 2002/12/19 14:37:14 midas
|
||||||
|
Avoid long lines with many radio/check buttons
|
||||||
|
|
||||||
Revision 2.115 2002/12/13 12:07:01 midas
|
Revision 2.115 2002/12/13 12:07:01 midas
|
||||||
Improved email sending
|
Improved email sending
|
||||||
|
|
||||||
@ -4711,10 +4714,10 @@ time_t now;
|
|||||||
sprintf(str, "%s%d", attr_list[index], i);
|
sprintf(str, "%s%d", attr_list[index], i);
|
||||||
|
|
||||||
if (strstr(attrib[index], attr_options[index][i]))
|
if (strstr(attrib[index], attr_options[index][i]))
|
||||||
rsprintf("<input type=checkbox checked name=\"%s\" value=\"%s\">%s \n",
|
rsprintf("<nobr><input type=checkbox checked name=\"%s\" value=\"%s\">%s</nobr>\n",
|
||||||
str, attr_options[index][i], attr_options[index][i]);
|
str, attr_options[index][i], attr_options[index][i]);
|
||||||
else
|
else
|
||||||
rsprintf("<input type=checkbox name=\"%s\" value=\"%s\">%s \n",
|
rsprintf("<nobr><input type=checkbox name=\"%s\" value=\"%s\">%s</nobr>\n",
|
||||||
str, attr_options[index][i], attr_options[index][i]);
|
str, attr_options[index][i], attr_options[index][i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4728,10 +4731,10 @@ time_t now;
|
|||||||
for (i=0 ; i<MAX_N_LIST && attr_options[index][i][0] ; i++)
|
for (i=0 ; i<MAX_N_LIST && attr_options[index][i][0] ; i++)
|
||||||
{
|
{
|
||||||
if (strstr(attrib[index], attr_options[index][i]))
|
if (strstr(attrib[index], attr_options[index][i]))
|
||||||
rsprintf("<input type=radio checked name=\"%s\" value=\"%s\">%s \n",
|
rsprintf("<nobr><input type=radio checked name=\"%s\" value=\"%s\">%s</nobr>\n",
|
||||||
attr_list[index], attr_options[index][i], attr_options[index][i]);
|
attr_list[index], attr_options[index][i], attr_options[index][i]);
|
||||||
else
|
else
|
||||||
rsprintf("<input type=radio name=\"%s\" value=\"%s\">%s \n",
|
rsprintf("<nobr><input type=radio name=\"%s\" value=\"%s\">%s</nobr>\n",
|
||||||
attr_list[index], attr_options[index][i], attr_options[index][i]);
|
attr_list[index], attr_options[index][i], attr_options[index][i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4745,11 +4748,11 @@ time_t now;
|
|||||||
for (i=0 ; i<MAX_N_LIST && attr_options[index][i][0] ; i++)
|
for (i=0 ; i<MAX_N_LIST && attr_options[index][i][0] ; i++)
|
||||||
{
|
{
|
||||||
if (strstr(attrib[index], attr_options[index][i]))
|
if (strstr(attrib[index], attr_options[index][i]))
|
||||||
rsprintf("<input type=radio checked name=\"%s\" value=\"%s\">", attr_list[index], attr_options[index][i]);
|
rsprintf("<nobr><input type=radio checked name=\"%s\" value=\"%s\">", attr_list[index], attr_options[index][i]);
|
||||||
else
|
else
|
||||||
rsprintf("<input type=radio name=\"%s\" value=\"%s\">", attr_list[index], attr_options[index][i]);
|
rsprintf("<nobr><input type=radio name=\"%s\" value=\"%s\">", attr_list[index], attr_options[index][i]);
|
||||||
|
|
||||||
rsprintf("<img src=\"icons/%s\"> \n", attr_options[index][i]);
|
rsprintf("<img src=\"icons/%s\"></nobr>\n", attr_options[index][i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
rsprintf("</td></tr>\n");
|
rsprintf("</td></tr>\n");
|
||||||
@ -5194,8 +5197,8 @@ char str[256], mode[256];
|
|||||||
{
|
{
|
||||||
for (j=0 ; j<MAX_N_LIST && attr_options[i][j][0] ; j++)
|
for (j=0 ; j<MAX_N_LIST && attr_options[i][j][0] ; j++)
|
||||||
{
|
{
|
||||||
rsprintf("<input type=radio name=\"%s\" value=\"%s\">", attr_list[i], attr_options[i][j]);
|
rsprintf("<nobr><input type=radio name=\"%s\" value=\"%s\">", attr_list[i], attr_options[i][j]);
|
||||||
rsprintf("<img src=\"icons/%s\"> \n", attr_options[i][j]);
|
rsprintf("<img src=\"icons/%s\"></nobr>\n", attr_options[i][j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user