summaryrefslogtreecommitdiff
path: root/source3
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
commitb4918ea2be3b0295d9c23c503e77b3e69e3f9e76 (patch)
tree79fd393ec5c2aec367bbebc450f1733666930ed0 /source3
parentd758d693fe476b49133e7dd8898fd64d74bdf3c4 (diff)
downloadsamba-b4918ea2be3b0295d9c23c503e77b3e69e3f9e76.tar.gz
samba-b4918ea2be3b0295d9c23c503e77b3e69e3f9e76.tar.bz2
samba-b4918ea2be3b0295d9c23c503e77b3e69e3f9e76.zip
Add buttons to Printers View
(This used to be commit 805c33b08902d0d02358b624ef9976dd0bde4909)
Diffstat (limited to 'source3')
-rw-r--r--source3/web/swat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 85623ed168..c10890a9bd 100644
--- a/source3/web/swat.c
+++ b/source3/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: