diff options
-rw-r--r-- | config_sample.rb | 12 | ||||
-rwxr-xr-x | index.cgi | 3 |
2 files changed, 8 insertions, 7 deletions
diff --git a/config_sample.rb b/config_sample.rb index 371db2a..e53c2a8 100644 --- a/config_sample.rb +++ b/config_sample.rb @@ -26,8 +26,11 @@ SITEURL = "http://#{$cgi.server_name}#{$cgi.script_name.gsub(/[^\/]*$/,"")}" # add the htmlcode in the Variable NOTICE to the startpage # Example 1: displays all available Polls notice = <<NOTICE -<fieldset><legend>Available Polls</legend> -<table><tr><th>Poll</th><th>Last change</th></tr> +<h2>Available Polls</h2> +<table summary='Available Polls'> + <tr> + <th>Poll</th><th>Last change</th> + </tr> NOTICE Dir.glob("*/data.yaml").sort_by{|f| File.new(f).mtime @@ -39,14 +42,13 @@ Dir.glob("*/data.yaml").sort_by{|f| </tr> NOTICE } -notice += "</table></fieldset>" +notice += "</table>" # Example 2: displays a static text notice += <<NOTICE -<fieldset><legend>Examples</legend> +<h2>Examples</h2> If you want to play around with the Tool, you may want to take a look at these two Example Polls:<br /> <a href='EventScheduleExample'>Event Schedule Poll</a><br /> <a href='NormalExample'>Normal Poll</a> -</fieldset> NOTICE NOTICE = notice @@ -75,7 +75,7 @@ end unless $html.header["status"] == "REDIRECT" $html << <<CREATE -<fieldset><legend>Create New Poll</legend> +<h2>Create New Poll</h2> <form method='post' action='.'> <table summary='Create a new Poll'> <tr> @@ -98,7 +98,6 @@ unless $html.header["status"] == "REDIRECT" </tr> </table> </form> -</fieldset> CREATE $html << NOTICE |