Example #1
0
 public static void show_all_menu(Websvc w, bool isadmin)
 {
     Web.wp(w, "<p>");
     Web.wp(w, "<table class=\"menutable\">");
     Web.web_cmd_button_trtd(w, "cmd_browse", "Files", "Browse Files");
     Web.web_cmd_button_trtd(w, "cmd_options", "Preferences", "Preferences");
     Web.web_cmd_button_trtd(w, "cmd_logout", "Logout", "Logout");
     Web.wp(w, "</table>");
     if (isadmin)
     {
         Web.wp(w, "<hr>");
         Web.wp(w, "<p>Admin Config");
         Web.wp(w, "<table class=\"menutable\">");
         Web.web_cmd_button_trtd(w, "cmd_users", "Users", "Manage local users");
         Web.web_cmd_button_trtd(w, "cmd_profile", "Profiles", "Manager profiles (path mappings)");
         Web.web_cmd_button_trtd(w, "cmd_config", "Config", "Change configuration settings");
         if (clib.canBuy())
         {
             Web.web_cmd_button_trtd(w, "cmd_register", "Buy/Activate", "Load license key");
         }
         Web.wp(w, "</table>");
         Web.wp(w, "<hr>");
         Web.wp(w, "<p>Admin Manage");
         Web.wp(w, "<table class=\"menutable\">");
         Web.web_cmd_button_trtd(w, "cmd_log", "Log", "Show main log file");
         Web.web_cmd_button_trtd(w, "cmd_status", "Status", "Server Status");
         Web.wp(w, "<tr><td>");
         Web.web_href_button(w, "Help", "http://netwinsite.com/ftpdav/guide.htm");
         Web.wp(w, "</table>");
     }
     Web.wp(w, "<hr>");
     Web.wp(w, "</div>\n");
     Web.web_end_form(w);
 }