예제 #1
0
 public static void web_start_form(Websvc w, string id)
 {
     Web.wp(w, "<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">\n");
     Web.wp(w, "<form ENCTYPE=\"multipart/form-data\" method=\"post\" name=\"form\" id='{0}' action=\"/cgi/admin.cgi\"><p>\n", (object)id);
 }
예제 #2
0
 public static void any_header(Websvc w, string content, string reason)
 {
     Web.any_header(w, content, reason, -1, false);
 }
예제 #3
0
 public static void web_input_text_i(Websvc w, string name, string value, int i)
 {
     Web.wp(w, "<input type=\"text\" name=\"{0}_{2}\" \tvalue=\"{1}\">\n", (object)name, (object)value, (object)i);
 }
예제 #4
0
 public static void web_input_hidden(Websvc w, string name, string value)
 {
     Web.wp(w, "<input type=\"hidden\" name=\"{0}\" \tvalue=\"{1}\">\n", (object)name, (object)value);
 }
예제 #5
0
 public static void web_checkbox(Websvc w, string name, string value, string text, bool check)
 {
     Web.wp(w, "<input {2} type=\"checkbox\" name=\"{0}\" value=\"{3}\"/>{1} ", (object)name, (object)text, check ? (object)"checked" : (object)"", (object)value);
 }
예제 #6
0
 public static void web_input_text_size(Websvc w, string name, string value, int sz)
 {
     Web.wp(w, "<input type=\"text\" name=\"{0}\" size=\"{2}\"\tvalue=\"{1}\">\n", (object)name, (object)value, (object)sz);
 }
예제 #7
0
 public static void web_href_button(Websvc w, string text, string href)
 {
     Web.wp(w, "<input type=\"button\"  class=\"btnmenu\" value=\"{0}\" title=\"{1}\" onClick=\"window.open('{2}')\">\n", (object)text, (object)text, (object)href);
 }
예제 #8
0
 public static void page_body(Websvc w)
 {
     Web.wp(w, "<div id=\"centercontent\">\n");
 }
예제 #9
0
 public static void web_cmd_button_trtd(Websvc w, string name, string value, string help)
 {
     Web.wp(w, "<tr><td>");
     Web.web_cmd_buttonw(w, name, value, help);
 }
예제 #10
0
        public static void web_cmd_button_small(Websvc w, string name, string value, string help)
        {
            string str = "";

            Web.wp(w, "<input type=\"submit\" name=\"{0}\" class=\"btnsmall\" {3} value=\"{1}\" title=\"{2}\">\n", (object)name, (object)value, (object)help, (object)str);
        }
예제 #11
0
 public static void web_cmd_button(Websvc w, string name, string value, string help)
 {
     Web.web_cmd_button(w, name, value, help, "");
 }
예제 #12
0
 public static void web_end_form(Websvc w)
 {
     Web.wp(w, "</form>\n");
 }
예제 #13
0
 public static void end(Websvc w)
 {
     Web.wp(w, "</BODY></HTML>\n");
     w.body_send();
 }
예제 #14
0
 public static void cookie_set(Websvc w, string var, string val)
 {
     Web.wh(w, "Set-Cookie: {0}={1};\r\n", (object)var, (object)val);
 }
예제 #15
0
 public static void web_table_start(Websvc w)
 {
     Web.wp(w, "<table class=\"invisible\">");
 }
예제 #16
0
        public static void send_file(Websvc w, string fname)
        {
            string str = File.ReadAllText(clib.app("web/" + fname));

            Web.wp(w, "{0}", (object)str);
        }
예제 #17
0
 public static void body(Websvc w)
 {
     Web.wp(w, "</HEAD>\n");
     Web.wp(w, "<BODY onload=\"do_init();\" >\n");
     Web.wp(w, "<DIV ID=\"infodiv\" STYLE=\"position:absolute; visibility:hidden; z-index:20; top:0px; left:0px;\"></DIV>\n");
 }