mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed {n} display with ROptions
SVN revision: 1442
This commit is contained in:
parent
1bdb311092
commit
be3a29a644
17
src/elogd.c
17
src/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 1.715 2005/07/23 16:30:42 ritt
|
||||||
|
Fixed {n} display with ROptions
|
||||||
|
|
||||||
Revision 1.714 2005/07/23 16:22:14 ritt
|
Revision 1.714 2005/07/23 16:22:14 ritt
|
||||||
Added condition evaluation in list display
|
Added condition evaluation in list display
|
||||||
|
|
||||||
@ -9791,17 +9794,21 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf("<table cellpadding=0 cellspacing=0><tr>\n");
|
rsprintf("<table cellpadding=0 cellspacing=0><tr>\n");
|
||||||
|
|
||||||
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]))
|
strlcpy(str, attr_options[index][i], sizeof(str));
|
||||||
|
if (strchr(str, '{'))
|
||||||
|
*strchr(str, '{') = 0;
|
||||||
|
|
||||||
|
if (strstr(attrib[index], attr_options[index][i])
|
||||||
|
|| strieq(str, attrib[index]))
|
||||||
rsprintf
|
rsprintf
|
||||||
("<td nowrap><input type=radio id=\"%s\" name=\"%s\" value=\"%s\" checked onChange=\"mod();\">\n",
|
("<td nowrap><input type=radio id=\"%s\" name=\"%s\" value=\"%s\" checked onChange=\"mod();\">\n",
|
||||||
attr_options[index][i], ua, attr_options[index][i]);
|
str, ua, str);
|
||||||
else
|
else
|
||||||
rsprintf
|
rsprintf
|
||||||
("<td nowrap><input type=radio id=\"%s\" name=\"%s\" value=\"%s\" onChange=\"mod();\">\n",
|
("<td nowrap><input type=radio id=\"%s\" name=\"%s\" value=\"%s\" onChange=\"mod();\">\n",
|
||||||
attr_options[index][i], ua, attr_options[index][i]);
|
str, ua, str);
|
||||||
|
|
||||||
rsprintf("<label for=\"%s\">%s</label>\n",
|
rsprintf("<label for=\"%s\">%s</label>\n", str, str);
|
||||||
attr_options[index][i], attr_options[index][i]);
|
|
||||||
|
|
||||||
rsprintf("</td>\n");
|
rsprintf("</td>\n");
|
||||||
if (format_flags[index] & AFF_MULTI_LINE)
|
if (format_flags[index] & AFF_MULTI_LINE)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user