mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Made 'preset xxx' work with boolean attributes
SVN revision: 635
This commit is contained in:
parent
6f2b9e78fc
commit
b173a43505
11
src/elogd.c
11
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.164 2003/12/04 11:34:36 midas
|
||||||
|
Made 'preset xxx' work with boolean attributes
|
||||||
|
|
||||||
Revision 1.163 2003/12/03 14:36:01 midas
|
Revision 1.163 2003/12/03 14:36:01 midas
|
||||||
Added 'comment <attribute>'
|
Added 'comment <attribute>'
|
||||||
|
|
||||||
@ -5591,8 +5594,12 @@ char fl[8][NAME_LENGTH];
|
|||||||
if (equal_ustring(attr_options[index][0], "boolean"))
|
if (equal_ustring(attr_options[index][0], "boolean"))
|
||||||
{
|
{
|
||||||
/* display checkbox */
|
/* display checkbox */
|
||||||
rsprintf("<td class=\"attribvalue\"><input type=checkbox name=\"%s\" value=1>\n",
|
if (atoi(attrib[index]) == 1)
|
||||||
attr_list[index]);
|
rsprintf("<td class=\"attribvalue\"><input type=checkbox checked name=\"%s\" value=1>\n",
|
||||||
|
attr_list[index]);
|
||||||
|
else
|
||||||
|
rsprintf("<td class=\"attribvalue\"><input type=checkbox name=\"%s\" value=1>\n",
|
||||||
|
attr_list[index]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user