summaryrefslogtreecommitdiffstats
path: root/source/web
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2003-07-27 19:49:23 +0000
committerJohn Terpstra <jht@samba.org>2003-07-27 19:49:23 +0000
commit805c33b08902d0d02358b624ef9976dd0bde4909 (patch)
tree6f81fca4de161da12fe6a0acc8b2f4fca0357ebe /source/web
parenta0d2fa0f25abe22008080df2ad2e58e7ee424a2b (diff)
downloadsamba-805c33b08902d0d02358b624ef9976dd0bde4909.tar.gz
samba-805c33b08902d0d02358b624ef9976dd0bde4909.tar.xz
samba-805c33b08902d0d02358b624ef9976dd0bde4909.zip
Add buttons to Printers View
Diffstat (limited to 'source/web')
-rw-r--r--source/web/swat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/web/swat.c b/source/web/swat.c
index 85623ed1685..c10890a9bd2 100644
--- a/source/web/swat.c
+++ b/source/web/swat.c
@@ -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: