From ce78fdc3c8348e4ad041c7be75e1114440dc9942 Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Tue, 15 May 2007 06:55:42 +0000 Subject: [PATCH] Start clean up HTML : Advanced menus --- webcit/mainmenu.c | 123 +++++++++++++++++++++++----------------------- 1 file changed, 62 insertions(+), 61 deletions(-) diff --git a/webcit/mainmenu.c b/webcit/mainmenu.c index c67efa414..07927a7f6 100644 --- a/webcit/mainmenu.c +++ b/webcit/mainmenu.c @@ -17,29 +17,29 @@ void display_main_menu(void) output_headers(1, 1, 1, 0, 0, 0); wprintf("
" - "" - "
\n"); + "" + "" - "" + "" + "
\n"); svprintf("BOXTITLE", WCS_STRING, _("Basic commands")); do_template("beginbox"); wprintf("\n" - "" - "" - "
"); /**< start of first column */ + "" + "" + "
"); /**< start of first column */ wprintf(""); wprintf(_("List known rooms")); - wprintf("
"); + wprintf("
"); wprintf(_("Where can I go from here?")); wprintf("
\n"); wprintf("" ""); wprintf(_("Goto next room")); - wprintf("
" + wprintf("
" ""); - wprintf(_("...with unread messages")); + wprintf(_("...with unread messages")); wprintf("
\n"); wprintf("" @@ -55,18 +55,18 @@ void display_main_menu(void) "" ""); wprintf(_("Ungoto")); - wprintf("
" + wprintf("
" ""); wprintf(_("(oops! Back to %s)"), WC->ugname); wprintf("\n"); } - wprintf("
\n"); /* start of second column */ + wprintf("\n"); /* start of second column */ wprintf("" ""); wprintf(_("Read new messages")); - wprintf("
" + wprintf("
" ""); wprintf(_("...in this room")); wprintf("
\n"); @@ -74,7 +74,7 @@ void display_main_menu(void) wprintf("" ""); wprintf(_("Read all messages")); - wprintf("
" + wprintf("
" ""); wprintf(_("...old and new")); wprintf("
\n"); @@ -82,7 +82,7 @@ void display_main_menu(void) wprintf("" ""); wprintf(_("Enter a message")); - wprintf("
" + wprintf("
" ""); wprintf(_("(post in this room)")); wprintf("\n"); @@ -91,18 +91,18 @@ void display_main_menu(void) wprintf("
" ""); wprintf(_("File library")); - wprintf("
" + wprintf("
" ""); wprintf(_("(List files available for download)")); wprintf("\n"); } - wprintf("
"); /* start of third column */ + wprintf(""); /* start of third column */ wprintf("" ""); wprintf(_("Summary page")); - wprintf("
" + wprintf("
" ""); wprintf(_("Summary of my account")); wprintf("
\n"); @@ -110,7 +110,7 @@ void display_main_menu(void) wprintf("\n" ""); wprintf(_("User list")); - wprintf("
" + wprintf("
" ""); wprintf(_("(all registered users)")); wprintf("
\n"); @@ -118,16 +118,17 @@ void display_main_menu(void) wprintf("" ""); wprintf(_("Log off")); - wprintf("
" + wprintf("
" ""); wprintf(_("Bye!")); wprintf("\n"); - wprintf("
\n"); + wprintf("
\n"); do_template("endbox"); - wprintf("
"); + wprintf("
"); svprintf("BOXTITLE", WCS_STRING, _("Your info")); do_template("beginbox"); @@ -145,7 +146,7 @@ void display_main_menu(void) wprintf("" ""); wprintf(_("Change your password")); - wprintf("
\n"); + wprintf("
\n"); wprintf("" ""); @@ -164,7 +165,7 @@ void display_main_menu(void) do_template("endbox"); - wprintf("
"); + wprintf(""); svprintf("BOXTITLE", WCS_STRING, _("Advanced room commands")); do_template("beginbox"); @@ -173,28 +174,28 @@ void display_main_menu(void) wprintf("" ""); wprintf(_("Edit or delete this room")); - wprintf("
\n"); + wprintf("
\n"); } wprintf("" ""); wprintf(_("Go to a 'hidden' room")); - wprintf("
\n"); + wprintf("
\n"); wprintf("" ""); wprintf(_("Create a new room")); - wprintf("
\n"); + wprintf("
\n"); wprintf("" ""); wprintf(_("Zap (forget) this room (%s)"), WC->wc_roomname); - wprintf("
\n"); + wprintf("
\n"); wprintf("" ""); wprintf(_("List all forgotten rooms")); - wprintf("\n"); + wprintf("\n"); do_template("endbox"); @@ -210,11 +211,11 @@ void display_aide_menu(void) { output_headers(1, 1, 2, 0, 0, 0); wprintf("
\n" - "
" - ""); + "
" + ""); wprintf(_("System Administration Menu")); - wprintf("" - "
\n" + wprintf("
" + "
\n" "
\n
\n" ); @@ -227,7 +228,7 @@ void display_aide_menu(void) wprintf("" ""); wprintf(_("Edit site-wide configuration")); - wprintf("
\n"); + wprintf("
\n"); wprintf("" ""); @@ -237,7 +238,7 @@ void display_aide_menu(void) wprintf("" ""); wprintf(_("Configure replication with other Citadel servers")); - wprintf("
\n"); + wprintf("
\n"); wprintf("" ""); @@ -254,12 +255,12 @@ void display_aide_menu(void) wprintf("" ""); wprintf(_("Add, change, delete user accounts")); - wprintf("
\n"); + wprintf("
\n"); wprintf("" ""); wprintf(_("Validate new users")); - wprintf("
\n"); + wprintf("
\n"); do_template("endbox"); @@ -269,7 +270,7 @@ void display_aide_menu(void) wprintf("" ""); wprintf(_("Add, change, or delete floors")); - wprintf("\n"); + wprintf("\n"); do_template("endbox"); @@ -288,38 +289,38 @@ void display_generic(void) { output_headers(1, 1, 2, 0, 0, 0); wprintf("
\n" - "
" - ""); + "
" + ""); wprintf(_("Enter a server command")); - wprintf("
\n" + wprintf("
\n" "
\n
\n" ); wprintf("
" "
\n"); - wprintf("
"); + wprintf("
"); wprintf(_("This screen allows you to enter Citadel server commands which are " "not supported by WebCit. If you do not know what that means, " "then this screen will not be of much use to you.")); wprintf("
\n"); - wprintf("
\n"); + wprintf("\n"); wprintf(_("Enter command:")); - wprintf("

\n"); + wprintf("

\n"); wprintf(_("Command input (if requesting SEND_LISTING transfer mode):")); - wprintf("

\n"); + wprintf("

\n"); - wprintf(""); + wprintf(""); wprintf(_("Detected host header is %s://%s"), (is_https ? "https" : "http"), WC->http_host); - wprintf("\n"); - wprintf("", _("Send command")); + wprintf("\n"); + wprintf("", _("Send command")); wprintf(" "); - wprintf("
\n", _("Cancel")); + wprintf("
\n", _("Cancel")); - wprintf("
\n"); + wprintf("
\n"); wprintf("
\n"); wDumpContent(1); } @@ -347,11 +348,11 @@ void do_generic(void) svprintf("BOXTITLE", WCS_STRING, _("Server command results")); do_template("beginbox"); - wprintf("
Command:"); + wprintf("
Command:"); escputs(bstr("g_cmd")); - wprintf("
Result:"); + wprintf("
Result:"); escputs(buf); - wprintf("

\n"); + wprintf("

\n"); if (buf[0] == '8') { serv_printf("\n\n000"); @@ -381,8 +382,8 @@ void do_generic(void) free(junk); } wprintf("
"); - wprintf("Enter another command
\n"); - wprintf("Return to menu\n"); + wprintf("Enter another command
\n"); + wprintf("Return to menu\n"); do_template("endbox"); wDumpContent(1); } @@ -397,13 +398,13 @@ void display_menubar(int as_single_page) { if (as_single_page) { output_headers(0, 0, 0, 0, 0, 0); - wprintf("\n" - "\n" - "MenuBar\n" - "\n" - "\n"); + wprintf("\n" + "\n" + "MenuBar\n" + "\n" + "\n"); do_template("background"); } -- 2.39.2