From aa62201ed9018fa6150ebc69213a6c9e4afadb9e Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Tue, 28 Aug 2007 22:00:04 +0000 Subject: [PATCH] Advanced menu items - clean HTML/CSS code - display in the current room screen --- webcit/auth.c | 49 ++++++++++++++--------------------- webcit/graphics.c | 40 ++++++++++++---------------- webcit/po/fr.po | 2 +- webcit/preferences.c | 11 ++++---- webcit/static/roombanner.html | 6 ++--- webcit/static/webcit.css | 10 +++---- webcit/sysmsgs.c | 16 +++++------- webcit/vcard_edit.c | 19 ++++++-------- 8 files changed, 65 insertions(+), 88 deletions(-) diff --git a/webcit/auth.c b/webcit/auth.c index 0a64641a2..f7a35c780 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -463,27 +463,17 @@ void display_changepw(void) { char buf[SIZ]; - output_headers(1, 1, 2, 0, 0, 0); - wprintf("
\n"); - wprintf("

"); - wprintf(_("Change your password")); - wprintf("

"); - wprintf("
"); + output_headers(1, 1, 1, 0, 0, 0); - wprintf("
\n"); + svprintf("BOXTITLE", WCS_STRING, _("Change your password")); + do_template("beginbox"); if (!IsEmptyStr(WC->ImportantMessage)) { - do_template("beginbox_nt"); - wprintf("" - "%s
\n", WC->ImportantMessage); - do_template("endbox"); + wprintf("" + "%s
\n", WC->ImportantMessage); safestrncpy(WC->ImportantMessage, "", sizeof WC->ImportantMessage); } - wprintf("
" - "
\n"); - - wprintf("

"); serv_puts("MESG changepw"); serv_getln(buf, sizeof buf); if (buf[0] == '1') { @@ -492,24 +482,25 @@ void display_changepw(void) wprintf("
\n"); wprintf("\n", WC->nonce); - wprintf("
" - "" - "
"); + wprintf("\n"); - wprintf("\n"); - wprintf("\n"); + wprintf("\n"); - wprintf("\n"); + wprintf("\n"); + wprintf("
"); wprintf(_("Enter new password:")); - wprintf("
"); + wprintf(""); + wprintf("
"); wprintf(_("Enter it again to confirm:")); - wprintf("
"); + wprintf("
\n"); - wprintf("

\n"); - wprintf("", _("Change password")); + wprintf("
\n"); + wprintf("", _("Change password")); wprintf(" "); - wprintf("\n", _("Cancel")); - wprintf("
\n"); - wprintf("
\n"); + wprintf("\n", _("Cancel")); + wprintf("
\n"); + wprintf("\n"); + + do_template("endbox"); wDumpContent(1); } diff --git a/webcit/graphics.c b/webcit/graphics.c index f040f22cd..6c210e156 100644 --- a/webcit/graphics.c +++ b/webcit/graphics.c @@ -20,25 +20,16 @@ void display_graphics_upload(char *description, char *check_cmd, char *uplurl) } output_headers(1, 1, 0, 0, 0, 0); - output_headers(1, 1, 2, 0, 0, 0); - wprintf("
\n"); - wprintf("

"); - wprintf(_("Image upload")); - wprintf("

"); - wprintf("
\n"); - - wprintf("
\n"); + output_headers(1, 1, 1, 0, 0, 0); - wprintf("
" - "
\n"); + svprintf("BOXTITLE", WCS_STRING, _("Image upload")); + do_template("beginbox"); - wprintf("
\n"); - - wprintf("
\n", uplurl); + wprintf("\n", uplurl); wprintf("\n", WC->nonce); - wprintf("\n"); @@ -48,17 +39,18 @@ void display_graphics_upload(char *description, char *check_cmd, char *uplurl) wprintf("

\n"); wprintf(_("Please select a file to upload:")); - wprintf("

\n"); - wprintf("\n"); - wprintf("

"); - wprintf("\n", _("Upload")); + wprintf("\n"); + wprintf("
"); + wprintf("\n", _("Upload")); wprintf(" "); - wprintf("\n", _("Reset form")); + wprintf("\n", _("Reset form")); wprintf(" "); - wprintf("\n", _("Cancel")); - wprintf("\n"); - wprintf("
\n"); - wprintf("
\n"); + wprintf("\n", _("Cancel")); + wprintf("
\n"); + wprintf("\n"); + + do_template("endbox"); + wDumpContent(1); } diff --git a/webcit/po/fr.po b/webcit/po/fr.po index 707f8b153..ab90266d8 100644 --- a/webcit/po/fr.po +++ b/webcit/po/fr.po @@ -3012,7 +3012,7 @@ msgstr "Modifier l'information du contact" #: ../vcard_edit.c:199 msgid "Prefix" -msgstr "Titre" +msgstr "Civilité" #: ../vcard_edit.c:199 msgid "First" diff --git a/webcit/preferences.c b/webcit/preferences.c index 2f1e8ac09..02d410749 100644 --- a/webcit/preferences.c +++ b/webcit/preferences.c @@ -377,19 +377,18 @@ void display_preferences(void) wprintf("\">"); wprintf(""); + /** end table */ + wprintf("\n"); + /** submit buttons */ - wprintf(""); + wprintf("
"); wprintf("" " " "\n", _("Change"), _("Cancel") ); - wprintf(""); - - - /** end table */ - wprintf("\n"); + wprintf("
\n"); /** end form */ wprintf("\n"); diff --git a/webcit/static/roombanner.html b/webcit/static/roombanner.html index 8f61c3198..2fd4e00a8 100644 --- a/webcit/static/roombanner.html +++ b/webcit/static/roombanner.html @@ -3,11 +3,11 @@

+

-