Add buttons to Printers View
authorJohn Terpstra <jht@samba.org>
Sun, 27 Jul 2003 19:49:23 +0000 (19:49 +0000)
committerJohn Terpstra <jht@samba.org>
Sun, 27 Jul 2003 19:49:23 +0000 (19:49 +0000)
source/web/swat.c

index 85623ed168552d7df197aba86f8f9d4a8efb4bae..c10890a9bd2c3d68853d35d346299302e8c0c28a 100644 (file)
@@ -860,6 +860,7 @@ static void shares_page(void)
        d_printf("<FORM name=\"swatform\" method=post>\n");
 
        d_printf("<table>\n");
+
        if ( cgi_variable("ViewMode") )
                mode = atoi(cgi_variable("ViewMode"));
        if ( cgi_variable("BasicMode"))
@@ -867,6 +868,8 @@ static void shares_page(void)
        if ( cgi_variable("AdvMode"))
                mode = 1;
        if ( cgi_variable("DevMode"))
+               mode = 2;
+
        ViewModeBoxes( mode );
        switch ( mode ) {
                case 0:
@@ -1207,6 +1210,13 @@ static void printers_page(void)
 
        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;
+
        ViewModeBoxes( mode );
        switch ( mode ) {
                case 0: