diff -ur rubywebdialogs-0.0.5.tar.gz/rubywebdialogs/lib/net.lib.rb rubywebdialogs-0.0.6.tar.gz/rubywebdialogs/lib/net.lib.rb
--- rubywebdialogs-0.0.5.tar.gz/rubywebdialogs/lib/net.lib.rb 2004-04-23 11:11:24.000000000 +0200
+++ rubywebdialogs-0.0.6.tar.gz/rubywebdialogs/lib/net.lib.rb 2004-04-24 18:43:46.000000000 +0200
@@ -479,7 +479,7 @@
req = Request.new(io)
resp = Response.new(io)
- rescue
+ rescue NameError
puts "Getting request from browser failed."
io = nil
end
diff -ur rubywebdialogs-0.0.5.tar.gz/rubywebdialogs/lib/rwd.lib.rb rubywebdialogs-0.0.6.tar.gz/rubywebdialogs/lib/rwd.lib.rb
--- rubywebdialogs-0.0.5.tar.gz/rubywebdialogs/lib/rwd.lib.rb 2004-04-23 11:11:24.000000000 +0200
+++ rubywebdialogs-0.0.6.tar.gz/rubywebdialogs/lib/rwd.lib.rb 2004-04-24 18:43:46.000000000 +0200
@@ -294,7 +294,7 @@
args["nohelpbutton"] = (not help)
- res.concat(template(RWD_HTML1, args))
+ res.concat(template($rwd_html1, args))
when "p" then res.concat "<p #{align}>"
when "pre" then res.concat "<pre>"
when "big" then res.concat "<p #{align}><big>"
@@ -379,24 +379,27 @@
firstaction << "rwd_quit" if firstaction.empty?
oneormorefields << "true"
when "closewindow"
- #res.concat "<script type=´text/javascript´>\n"
+ #res.concat "<script type=´text/javascript´>\n" # ???
#res.concat "<!--\n"
#res.concat " window.close();\n"
#res.concat "//-->\n"
#res.concat "</script>"
when "tabs"
- res.concat "<table #{AC} border=´#{$rwd_border}´ cellspacing=´3´ cellpadding=´0´>"
- res.concat " <tr #{AC}>"
- res.concat " <td #{AC}>"
- res.concat " <table #{AC} border=´#{$rwd_border}´ cellspacing=´3´ cellpadding=´0´>"
- res.concat " <tr #{AC}>"
+ res.concat "<table #{AC} border=´#{$rwd_border}´ cellspacing=´0´ cellpadding=´0´>"
+ res.concat " <tr #{AL}>"
+ res.concat " <td #{AL} class=´tabs´>"
+ res.concat " <table #{AL} border=´#{$rwd_border}´ cellspacing=´0´ cellpadding=´0´>"
+ res.concat " <tr #{AL}>"
tabs.each do |obj|
name = obj.args["name"]
caption = obj.args["caption"]
+
+ res.concat "<td class=´notab´> </td>" unless obj == tabs[0]
+
if name == tab
- res.concat "<td #{AC}><div class=´box´><tt><b> #{caption} </b></tt></div></td>"
+ res.concat "<td #{AC} class=´thistab´><tt><b> #{caption} </b></tt></td>"
else
- res.concat "<td #{AC}><div class=´box´><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_tab_#{name}\";document.bodyform.submit();´><tt> #{caption} </tt></a></div></td>"
+ res.concat "<td #{AC} class=´tab´><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_tab_#{name}\";document.bodyform.submit();´><tt> #{caption} </tt></a></td>"
end
end
res.concat " </tr>"
@@ -404,7 +407,9 @@
res.concat " </td>"
res.concat " </tr>"
when "tab"
- res.concat "<tr #{align} #{valign}><td #{align}><div class=´box2´>"
+ res.concat "<table #{AC} border=´#{$rwd_border}´ cellspacing=´3´ cellpadding=´0´>"
+ res.concat " <tr #{AL}>"
+ res.concat " <td #{AL} class=´tabblad´>"
else
puts "<#{@subtype}>"
res.concat "<#{@subtype}>"
@@ -414,7 +419,7 @@
aft = nil
case @subtype
- when "vertical", "window", "helpwindow"
+ when "vertical", "window", "helpwindow", "tabs", "tab"
res.concat Format % ["AftPre", @subtype] if $rwd_debug
if @args.include?("spacing")
s = "<tr><td> </td></tr>" * (@args["spacing"].to_i)
@@ -435,7 +440,7 @@
def postchildren(res, before, after, vars, switches, help, oneormorefields, firstaction, tabs, tab)
case @subtype
- when "vertical", "window", "helpwindow"
+ when "vertical", "window", "helpwindow", "tabs", "tab"
res.concat Format % ["BefPost", @subtype] if $rwd_debug
if @args.include?("spacing")
res.concat "<tr><td> </td></tr>" * (@args["spacing"].to_i)
@@ -453,7 +458,7 @@
args["nohelpbutton"] = (not help)
- res.concat(template(RWD_HTML2, args))
+ res.concat(template($rwd_html2, args))
when "p" then res.concat "</p>"
when "pre" then res.concat "</pre>"
when "big" then res.concat "</big></p>"
@@ -489,7 +494,7 @@
when "reset" then res.concat ""
when "closewindow" then res.concat ""
when "tabs" then res.concat "</table>"
- when "tab" then res.concat "</div></td></tr>"
+ when "tab" then res.concat "</td></tr></table>"
else
puts "</#{@subtype}>"
res.concat "</#{@subtype}>"
@@ -519,6 +524,12 @@
a["BACKBUTTONS"] = (not (vars["nobackbuttons"]))
a["CLOSEBUTTON"] = (not (vars["noclosebutton"]))
+ if a.include?("WIDTH")
+ a["WIDTH"] = "width=´#{a["WIDTH"]}´"
+ else
+ a["WIDTH"] = " "
+ end
+
html.split(/\r*\n/).each do |line|
if line =~ /%[A-Z]+%/
a.each do |k, v|
@@ -913,7 +924,7 @@
res.gsub!(/\$RWD_SESSION\$/, "#{@sessionid}")
end
- done
+ return done
end
end
@@ -936,7 +947,7 @@
@browserthread = Thread.new do
puts "Starting the browser..."
- #if ENV["RWDBROWSER"].downcase =~ /iexplore/
+ #if ENV["RWDBROWSER"].downcase =~ /iexplore/ # ???
#@ie = IE.new("http://localhost:#{port}/")
#else
if windows?
@@ -955,7 +966,7 @@
# Start server.
- catch :exit do
+ catch :rwd_exit do
HTTPServer.serve(port, (not auth.nil?)) do |req, resp|
vars = req.vars.dup
@@ -966,15 +977,15 @@
else
auths = auth
end
-
+
oldsessionid = vars["rwd_session"]
-
+
# Retrieve session.
-
+
session = @sessions[oldsessionid]
-
+
# Eventually create new session.
-
+
if session.nil?
if auth.nil?
session = RWDSession.new(MD5.new(req.peeraddr[3].to_s + @object.inspect.to_s).to_s)
@@ -983,15 +994,15 @@
session = RWDSession.new(MD5.new(Time.new.to_s + req.peeraddr[3].to_s + @object.inspect.to_s).to_s)
session["object"] = @object.clone
end
-
+
if oldsessionid.nil? or oldsessionid.empty?
if not auth.nil? and not session.authenticated
-
+
# Check authentication
-
+
us = vars["rwd_a"]
pa = vars["rwd_b"]
-
+
if us.nil? or pa.nil? or auths[us] != pa
session = RWDSession.new
session["object"] = RWDLogin.new(realm)
@@ -1006,58 +1017,60 @@
session = RWDSession.new
session["object"] = RWDTimeOut.new
end
-
+
vars = {}
end
-
+
# Avoid timeout.
-
+
session.touch
-
+
if req.request.path == "/"
-
+
# Serve methods/callbacks.
-
+
# Build new page.
-
+
res = ""
-
+
done = session.render(res, req.request.path, vars)
-
+
begin
resp["Content-Type"] = "text/html"
-
+
resp << res
rescue
puts "Sending response to browser failed."
-
+
@sessions.delete(session.sessionid)
end
-
+
# Eventually delete this session.
-
+
if done
@sessions.delete(session.sessionid)
-
+
if @localbrowsing
resp.flush
-
+
if @browserstarted and @browserthread.alive?
puts "Waiting for the browser to terminate..."
-
+
@browserthread.join
end
-
- throw :exit
+
+ throw :rwd_exit
end
end
-
+
else
-
+
# Serve files.
-
+
if req.request.path == "/pixel.gif"
- resp << RWD_Pixel
+ resp["Cache-Control"] = "max-age=86400"
+ resp["Content-Type"] = "image/gif"
+ resp << $rwd_pixel
else
if (FileTest.file?(req.request.path.sub(/^\/*/, "")))
resp << File.new(req.request.path.sub(/^\/*/, ""), "rb").read rescue nil
@@ -1065,14 +1078,14 @@
resp.response = "HTTP/1.0 404 NOT FOUND"
end
end
-
+
end
end
end
end
end
-RWD_HTML = "
+$rwd_html = "
<!-- Generated by RubyWebDialog. -->
<!-- For more information, please contact Erik Veenstra <rwd@erikveen.dds.nl>. -->
<html>
@@ -1086,9 +1099,34 @@
<style type=´text/css´>
<!--
- a { text-decoration : none }
- div.box { border : thin solid #AAAAAA }
- div.box2 { border-top : thin solid #AAAAAA }
+
+ a {
+ text-decoration : none;
+ }
+
+ td.tabs {
+ border-color : #000000;
+ border-width : thin;
+ border-style : none none solid none;
+ }
+
+ td.tab {
+ border-color : #000000;
+ border-width : thin;
+ border-style : solid solid none solid;
+ }
+
+ td.thistab {
+ border-color : #000000;
+ border-width : medium;
+ border-style : solid solid none solid;
+ }
+
+ td.notab {
+ border-width : thin;
+ border-style : none;
+ }
+
//-->
</style>
@@ -1102,224 +1140,224 @@
</head>
<body bgcolor=´white´ onload=´BodyGo()´ link=´#000000´ vlink=´#000000´ alink=´#000000´>
- <table align=´center´ border=´0´ cellspacing=´0´ cellpadding=´0´ width=´100%´ height=´100%´>
- <tr align=´center´ valign=´middle´>
- <td align=´center´>
-
- <table align=´center´ border=´0´ cellspacing=´0´ cellpadding=´0´>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
-
- <td align=´center´>
-
- <table align=´center´ border=´0´ cellspacing=´0´ cellpadding=´0´>
- <tr align=´center´>
- <td align=´center´ bgcolor=´#444488´>
-
- <table align=´left´ border=´0´ cellspacing=´1´ cellpadding=´0´>
- <tr align=´center´>
- <td align=´border´><img src=´%LOGO%´ width=´14´ height=´14´></td>
- <td align=´center´><b><small><font color=´#FFFFFF´> %TITLE% </font></small></b></td>
- </tr>
- </table>
-
- <table align=´right´ border=´0´ cellspacing=´1´ cellpadding=´0´>
- <tr align=´center´>
- <!-- %HELPBUTTON% --><td align=´center´ bgcolor=´#EEEEEE´><b><small><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_help\";document.bodyform.submit();´> ? </a></small></b></td>
- <!-- %BACKBUTTONS% --><td align=´center´ bgcolor=´#EEEEEE´><b><small><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_main\";document.bodyform.submit();´> << </a></small></b></td>
- <!-- %BACKBUTTONS% --><td align=´center´ bgcolor=´#EEEEEE´><b><small><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_back\";document.bodyform.submit();´> < </a></small></b></td>
- <!-- %CLOSEBUTTON% --><td align=´center´ bgcolor=´#EEEEEE´><b><small><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_quit\";document.bodyform.submit();´> X </a></small></b></td>
- </tr>
- </table>
-
- </td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´#CCCCCC´>
- <form name=´bodyform´ action=´/´ method=´post´>
-
- <table align=´center´ border=´0´ cellspacing=´3´ cellpadding=´0´>
-
- %BODY%
+ <form name=´bodyform´ action=´/´ method=´post´>
+ <table align=´center´ border=´0´ cellspacing=´0´ cellpadding=´0´ width=´100%´ height=´100%´>
+ <tr align=´center´ valign=´middle´>
+ <td align=´center´>
+
+ <table align=´center´ border=´0´ cellspacing=´0´ cellpadding=´0´>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+
+ <td align=´center´>
+
+ <table align=´center´ border=´0´ cellspacing=´0´ cellpadding=´0´ %WIDTH%>
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´#444488´>
+
+ <table align=´left´ border=´0´ cellspacing=´1´ cellpadding=´0´>
+ <tr align=´center´>
+ <td align=´border´><img src=´%LOGO%´ width=´14´ height=´14´></td>
+ <td align=´center´><b><small><font color=´#FFFFFF´> %TITLE% </font></small></b></td>
+ </tr>
+ </table>
+ <table align=´right´ border=´0´ cellspacing=´1´ cellpadding=´0´>
+ <tr align=´center´>
+ <!-- %HELPBUTTON% --><td align=´center´ bgcolor=´#EEEEEE´><b><small><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_help\";document.bodyform.submit();´> ? </a></small></b></td>
+ <!-- %BACKBUTTONS% --><td align=´center´ bgcolor=´#EEEEEE´><b><small><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_main\";document.bodyform.submit();´> << </a></small></b></td>
+ <!-- %BACKBUTTONS% --><td align=´center´ bgcolor=´#EEEEEE´><b><small><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_back\";document.bodyform.submit();´> < </a></small></b></td>
+ <!-- %CLOSEBUTTON% --><td align=´center´ bgcolor=´#EEEEEE´><b><small><a href=´javascript:document.bodyform.rwd_action.value=\"rwd_quit\";document.bodyform.submit();´> X </a></small></b></td>
+ </tr>
</table>
- <input name=´rwd_action´ value=´$RWD_FIRSTACTION$´ type=´hidden´>
- <input name=´rwd_session´ value=´$RWD_SESSION$´ type=´hidden´>
- </form>
- </td>
- </tr>
- </table>
-
- </td>
-
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- <tr align=´center´>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
- </tr>
-
- </table>
-
- </td>
- </tr>
- </table>
+ </td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´#CCCCCC´>
+
+ <table align=´center´ border=´0´ cellspacing=´3´ cellpadding=´0´>
+
+ %BODY%
+
+ </table>
+
+ <input name=´rwd_action´ value=´$RWD_FIRSTACTION$´ type=´hidden´>
+ <input name=´rwd_session´ value=´$RWD_SESSION$´ type=´hidden´>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´#EEEEEE´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ <tr align=´center´>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´black´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ <td align=´center´ bgcolor=´white´><img src=´pixel.gif´ height=´1´ width=´1´></td>
+ </tr>
+
+ </table>
+
+ </td>
+ </tr>
+ </table>
+ </form>
</body>
</html>
"
-RWD_Pixel = "
+$rwd_pixel = "
R0lGODlhAQABAOcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoK
CgsLCwwMDA0NDQ4ODg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZ
GRoaGhsbGxwcHB0dHR4eHh8fHyAgICEhISIiIiMjIyQkJCUlJSYmJicnJygo
@@ -1341,4 +1379,4 @@
CgD/ACwAAAAAAQABAAAIBAD/BQQAOw==
".unpack("m").shift
-RWD_HTML1, RWD_HTML2 = RWD_HTML.split(/^\s*%BODY%\s*\r*$/)
+$rwd_html1, $rwd_html2 = $rwd_html.split(/^\s*%BODY%\s*\r*$/)