Module: AgriController::Web
- Defined in:
- lib/agri-controller/web.rb
Class Method Summary collapse
- .html_end ⇒ Object
- .html_head(title = "kansi_htm", tuika = '') ⇒ Object
- .html_head_refresh(title, time) ⇒ Object
Class Method Details
.html_end ⇒ Object
20 21 22 23 24 25 |
# File 'lib/agri-controller/web.rb', line 20 def html_end _end=' </body> </html>' return _end end |
.html_head(title = "kansi_htm", tuika = '') ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/agri-controller/web.rb', line 6 def html_head(title="kansi_htm",tuika='') head=<<EOS <html> <head> <meta http-equiv="Content-Language" content="ja" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> #{tuika} <link rel="stylesheet" type="text/css" href="../css/str.css" title="str"/> <title>#{title}</title> </head> <body> EOS end |
.html_head_refresh(title, time) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/agri-controller/web.rb', line 27 def html_head_refresh(title,time) #time:should be able to convert Integer str= <<eos <META HTTP-EQUIV="Refresh" CONTENT="#{time.to_s};URL=./main.cgi"> eos html_head(title,str) end |