/*
* $Id$
+ *
+ * Displays and customizes the iconbar.
*/
-/**
- * \defgroup IconBar Displays and customizes the iconbar.
- * \ingroup MenuInfrastructure
- */
-/*@{*/
+
#include "webcit.h"
if (ib_citadel) if (ib_displayas != IB_TEXTONLY) wprintf(
"<div class=\"logo_citadel\"> "
"<a href=\"http://www.citadel.org\" "
- "title=\"%s\" target=\"aboutcit\"> "
+ "title=\"%s\"> "
"<img "
"src=\"static/citadel-logo.gif\" alt=\"%s\"></a> "
"</div>\n",
">", _("Your summary page")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/summscreen_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
_("Go to your email inbox")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/privatemess_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
_("Go to your personal calendar")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/calarea_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
_("Go to your personal address book")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/viewcontacts_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
_("Go to your personal notes")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/storenotes_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
_("Go to your personal task list")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/taskmanag_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
_("List all of your accessible rooms")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/chatrooms_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
_("See who is online right now")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/usermanag_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
">"
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/citadelchat_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
_("Advanced Options Menu: Advanced Room commands, Account Info, and Chat")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/advanpage2_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
_("Room and system administration functions")
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/advanpage2_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/logoff_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
if (ib_citadel) if (ib_displayas != IB_TEXTONLY) wprintf(
"<div class=\"logo_citadel\"> "
"<a href=\"http://www.citadel.org\" "
- "title=\"%s\" target=\"aboutcit\"> "
+ "title=\"%s\"> "
"<img "
"src=\"static/citadel-logo.gif\" alt=\"%s\"></a> "
"</div>\n",
);
if (ib_displayas != IB_TEXTONLY) {
- wprintf("<img border=\"0\" width=\"32\" height=\"32\" "
+ wprintf("<img alt=\"\" "
"src=\"static/logoff_32x.gif\">");
}
if (ib_displayas != IB_PICONLY) {
}
output_headers(1, 1, 2, 0, 0, 0);
- wprintf("<div id=\"banner\" class=\"service_banner\">\n");
+ wprintf("<div id=\"banner\">");
wprintf("<h1>");
wprintf(_("Customize the icon bar"));
wprintf("</h1></div>\n");
- wprintf("<div id=\"content\" class=\"customize_menu\">\n");
+
+ wprintf("<div id=\"content\" class=\"service\">\n");
wprintf("<div class=\"fix_scrollbar_bug\">");
_("Your personal notes")
);
-#ifdef WEBCIT_WITH_CALENDAR_SERVICE
bar = 1 - bar;
wprintf("<tr class=\"%s\"><td>"
"<input type=\"radio\" name=\"ib_calendar\" value=\"yes\" %s> %s "
_("Tasks"),
_("A shortcut to your personal task list")
);
-#endif /* WEBCIT_WITH_CALENDAR_SERVICE */
bar = 1 - bar;
wprintf("<tr class=\"%s\"><td>"
"ib_citadel"
};
- if (IsEmptyStr(bstr("ok_button"))) {
+ if (!havebstr("ok_button")) {
display_main_menu();
return;
}
- sprintf(iconbar, "ib_displayas=%d", atoi(bstr("ib_displayas")));
+ sprintf(iconbar, "ib_displayas=%d", ibstr("ib_displayas"));
for (i=0; i<(sizeof(boxen)/sizeof(char *)); ++i) {
char *Val;
- if (!strcasecmp(bstr(boxen[i]), "yes")) {
+ if (!strcasecmp(BSTR(boxen[i]), "yes")) {
Val = "1";
}
- else if (!strcasecmp(bstr(boxen[i]), "yeslist")) {
+ else if (!strcasecmp(BSTR(boxen[i]), "yeslist")) {
Val = "2";
}
else {
set_preference("iconbar", iconbar, 1);
output_headers(1, 1, 2, 0, 0, 0);
- wprintf("<div id=\"banner\" class=\"service_banner\">\n");
+ wprintf("<div id=\"banner\">\n");
wprintf("<h1>");
wprintf(_("Customize the icon bar"));
wprintf("</h1></div>\n");
- wprintf("<div id=\"content\" class=\"customize_menu\">\n");
+
+ wprintf("<div id=\"content\" class=\"service\">\n");
wprintf(
"<center><table border=1 bgcolor=\"#ffffff\"><tr><td>"
"<img src=\"static/advanpage2_48x.gif\">"