diff --git a/elogd.c b/elogd.c
index 24fec5c9..ecc193da 100755
--- a/elogd.c
+++ b/elogd.c
@@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
+ Revision 1.8 2002/01/29 10:06:23 midas
+ Fixed various bugs with fixed attributes
+
Revision 1.7 2002/01/23 08:41:42 midas
Added "Search all logbooks" flag
@@ -3387,67 +3390,81 @@ time_t now;
}
}
- if (attr_options[index][0][0] == 0)
- {
- /* display text box */
- rsprintf("
\n", str, attr_options[index][i]);
+ }
}
else
- rsprintf(" | \n",
- gt("Categories bgcolor2"), NAME_LENGTH, attr_list[index], attrib[index]);
+ rsprintf("\n",
+ attr_list[index], attrib[index]);
}
else
{
- if (equal_ustring(attr_options[index][0], "boolean"))
+ if (attr_options[index][0][0] == 0)
{
- /* display checkbox */
- rsprintf("| %s%s: | \n",
- gt("Categories bgcolor1"), attr_list[index], star, gt("Categories bgcolor2"), attr_list[index]);
+ rsprintf(" | |
\n",
+ gt("Categories bgcolor2"), NAME_LENGTH, attr_list[index], attrib[index]);
}
else
{
- if (attr_flags[index] & AF_MULTI)
+ if (equal_ustring(attr_options[index][0], "boolean"))
{
- /* display multiple check boxes */
- rsprintf("| %s%s: | \n",
- gt("Categories bgcolor1"), attr_list[index], star, gt("Categories bgcolor2"));
-
- for (i=0 ; i%s \n", str, attr_options[index][i], attr_options[index][i]);
- else
- rsprintf("%s \n", str, attr_options[index][i], attr_options[index][i]);
- }
-
- rsprintf(" |
\n");
+ /* display checkbox */
+ rsprintf("\n",
+ gt("Categories bgcolor2"), attr_list[index]);
}
else
{
- /* display drop-down box */
- rsprintf(" | | %s%s: | |
\n");
+ for (i=0 ; i%s \n", str, attr_options[index][i], attr_options[index][i]);
+ else
+ rsprintf("%s \n", str, attr_options[index][i], attr_options[index][i]);
+ }
+
+ rsprintf("\n");
+ }
+ else
+ {
+ /* display drop-down box */
+ rsprintf(" | \n");
+ }
}
}
}