| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/CGI/HtmlExtension/ |
Upload File : |
U:RDoc::AnyMethod[iI"popup_menu:EFI""CGI::HtmlExtension#popup_menu;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"+Generate a Select element as a string.;To:RDoc::Markup::BlankLine o;
; [
I"K+name+ is the name of the element. The +values+ are the options that ;TI"Jcan be selected from the Select menu. Each value can be a String or ;TI"Ga one, two, or three-element Array. If a String or a one-element ;TI"MArray, this is both the value of that option and the text displayed for ;TI"Qit. If a three-element Array, the elements are the option value, displayed ;TI"Rtext, and a boolean value specifying whether this option starts as selected. ;TI"QThe two-element version omits either the option value (defaults to the same ;TI"Pas the display text) or the boolean selected specifier (defaults to false).;T@o;
; [I"JThe attributes and options can also be specified as a hash. In this ;TI"Kcase, options are specified as an array of values as described above, ;TI"#with the hash key of "VALUES".;T@o:RDoc::Markup::Verbatim; [!I"-popup_menu("name", "foo", "bar", "baz")
;TI" # <SELECT NAME="name">
;TI", # <OPTION VALUE="foo">foo</OPTION>
;TI", # <OPTION VALUE="bar">bar</OPTION>
;TI", # <OPTION VALUE="baz">baz</OPTION>
;TI" # </SELECT>
;TI"
;TI"7popup_menu("name", ["foo"], ["bar", true], "baz")
;TI" # <SELECT NAME="name">
;TI", # <OPTION VALUE="foo">foo</OPTION>
;TI"5 # <OPTION VALUE="bar" SELECTED>bar</OPTION>
;TI", # <OPTION VALUE="baz">baz</OPTION>
;TI" # </SELECT>
;TI"
;TI"Apopup_menu("name", ["1", "Foo"], ["2", "Bar", true], "Baz")
;TI" # <SELECT NAME="name">
;TI"* # <OPTION VALUE="1">Foo</OPTION>
;TI"3 # <OPTION SELECTED VALUE="2">Bar</OPTION>
;TI", # <OPTION VALUE="Baz">Baz</OPTION>
;TI" # </SELECT>
;TI"
;TI"Cpopup_menu("NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
;TI"H "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"])
;TI"0 # <SELECT NAME="name" MULTIPLE SIZE="2">
;TI"* # <OPTION VALUE="1">Foo</OPTION>
;TI"3 # <OPTION SELECTED VALUE="2">Bar</OPTION>
;TI", # <OPTION VALUE="Baz">Baz</OPTION>
;TI" # </SELECT>;T:@format0:
@fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[[I"scrolling_list;Fo;; [ ;@<;0I"(name = "", *values);T@<FI"HtmlExtension;FcRDoc::NormalModule00