****************************************************************************/
static void ViewModeBoxes(int mode)
{
- d_printf("<p>%s\n", _("Configuration View: "));
+ d_printf("<p>%s\n", _("Configuration View:  Current View is: "));
d_printf("<input type=radio name=\"ViewMode\" value=0 %s>Basic\n", (mode == 0) ? "checked" : "");
d_printf("<input type=radio name=\"ViewMode\" value=1 %s>Advanced\n", (mode == 1) ? "checked" : "");
d_printf("<input type=radio name=\"ViewMode\" value=2 %s>Developer\n", (mode == 2) ? "checked" : "");
d_printf("</p><br>\n");
+ d_printf("<p>%s\n", _("Change View To: "));
+ d_printf("<input type=submit name=\"BasicMode\" value=\"%s\">\n", _("Basic Mode"));
+ d_printf("<input type=submit name=\"AdvMode\" value=\"%s\">\n", _("Advanced Mode"));
+ d_printf("<input type=submit name=\"DevMode\" value=\"%s\">\n", _("Developer Mode"));
+ d_printf("</p><br>\n");
}
/****************************************************************************
if ( cgi_variable("ViewMode") )
mode = atoi(cgi_variable("ViewMode"));
+ if ( cgi_variable("BasicMode"))
+ mode = 0;
+ if ( cgi_variable("AdvMode"))
+ mode = 1;
+ if ( cgi_variable("DevMode"))
+ mode = 2;
d_printf("<form name=\"swatform\" method=post action=globals>\n");
d_printf("<table>\n");
if ( cgi_variable("ViewMode") )
mode = atoi(cgi_variable("ViewMode"));
+ if ( cgi_variable("BasicMode"))
+ mode = 0;
+ if ( cgi_variable("AdvMode"))
+ mode = 1;
+ if ( cgi_variable("DevMode"))
ViewModeBoxes( mode );
switch ( mode ) {
case 0: