diff --git a/src/elogd.c b/src/elogd.c
index c372d6d7..3b6470fe 100755
--- a/src/elogd.c
+++ b/src/elogd.c
@@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
+ Revision 1.583 2005/03/08 08:42:17 ritt
+ Show logbook list for subscription for new user
+
Revision 1.582 2005/03/08 08:29:47 ritt
Fixed problem with self-register and password file
@@ -10507,6 +10510,8 @@ void show_forgot_pwd_page(LOGBOOK *lbs)
void show_new_user_page(LOGBOOK *lbs)
{
+ int i;
+
/*---- header ----*/
show_html_header(NULL, TRUE, loc("ELOG new user"), TRUE, FALSE);
@@ -10535,24 +10540,69 @@ void show_new_user_page(LOGBOOK *lbs)
/*---- entry form ----*/
- rsprintf("
| %s: | \n", loc("Login name"));
+ rsprintf("
| %s: | \n", loc("Login name"));
rsprintf(" | \n");
- rsprintf("(%s) |
\n",
+ rsprintf("(%s) | \n",
loc("name may not contain blanks"));
- rsprintf("| %s: | \n", loc("Full name"));
+ rsprintf("
| %s: | \n", loc("Full name"));
rsprintf(" |
\n");
- rsprintf("| Email: | \n");
+ rsprintf("
| Email: | \n");
rsprintf(" |
\n");
- rsprintf("| %s: \n", loc("Enable email notifications"));
- rsprintf(" |
\n");
+ //rsprintf("| %s: \n", loc("Enable email notifications"));
+ //rsprintf(" |
\n");
- rsprintf("| %s: | \n", loc("Password"));
+
+ rsprintf("
%s:\n", loc("Subscribe to logbooks"));
+
+ rsprintf(" \n",
+ loc("enable automatic email notifications"));
+
+ rsprintf(" | \n");
+
+ for (i = 0; lb_list[i].name[0]; i++) {
+
+ if (!getcfg_topgroup() || strieq(getcfg_topgroup(), lb_list[i].top_group)) {
+
+ rsprintf("\n", i, i);
+ rsprintf(" \n", i, lb_list[i].name);
+ }
+ }
+
+ if (i > 2) {
+ rsprintf("\n");
+
+ rsprintf("\n", loc("Set all"));
+ rsprintf("\n", loc("Set none"));
+ }
+
+ rsprintf(" |
\n");
+
+ rsprintf("| %s: | \n", loc("Password"));
rsprintf("\n");
- rsprintf(" |
| %s: | \n", loc("Retype password"));
+ rsprintf("
| %s: | \n", loc("Retype password"));
rsprintf("\n");
rsprintf(" |
\n");