Subversion Repositories ORC

Rev

Rev 27 | Rev 29 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7 - 1
#!/usr/bin/perl
2
 
3
#if ($ENV{SHELL}) { die "This script shouldn't be executed from the command line!\n"; }
4
 
5
#use strict;
8 - 6
use cPanelUserConfig;
7 - 7
use CGI qw/param cookie header start_html url/;
8
use HTML::Tiny;
9
use tableViewer;
10
use RollerCon;
11
our $h = HTML::Tiny->new( mode => 'html' );
12
use DateTime;
13
use DateTime::Duration;
25 - 14
my $now = DateTime->now (time_zone => 'America/Los_Angeles');
7 - 15
 
16
my $cookie_string = authenticate (1) || die;
17
# Add checking to make sure they're in this department
18
our ($EML, $PWD, $LVL) = split /&/, $cookie_string;
19
my $user = getUser ($EML);
20
$user->{department} = convertDepartments $user->{department};
21
 
28 - 22
if ($user->{department}->{"ANN"} < 1 and $LVL < 4) {
7 - 23
	print header(-cookie=>$RCAUTH_cookie);
24
	printRCHeader("Unauthorized Page");
25
	print $h->div ({ class=>"error" }, "You're not an Announcer");
26
	print $h->div ("Your user account is not registered as an Announcer, so you can't see these shifts.  It's possible that your access is still being reviewed.  Please be patient.");
8 - 27
	print $h->a ({ href=>"/schedule/" }, "[Go Home]");
7 - 28
	print $h->close ("html");
29
	exit;
30
}
31
 
32
my $username = $h->a ({ href=>"/schedule/manage_user.pl?submit=View&RCid=$user->{RCid}" }, $user->{derby_name});
33
my $RCid = $user->{RCid};
34
my $RCAUTH_cookie = CGI::Cookie->new(-name=>'RCAUTH',-value=>"$cookie_string",-expires=>"+30m");
35
#my $YEAR = 1900 + (localtime)[5]; #which year of data to display, default to current
36
my $YEAR = "2019";
37
 
38
#$LVL = 1;
39
 
40
my $pageTitle = "Announcer Shifts";
41
my $prefscookie = "ashiftscookie";
42
our $DBTABLE = 'v_shift_announcer';
43
my %COLUMNS = (
44
# colname   =>  [qw(DisplayName       N    type     status)],   status ->  static | default | <blank>
45
	id						 => [qw(ID           5    number            )],
46
	date					 => [qw(Date        10    date      default )],
47
	dayofweek			 => [qw(Day         15    select            )],
48
	time					 => [qw(Time        20    text      default )],
49
	volhours       => [qw(VolHours    23    number            )],
50
	track					 => [qw(Track       25    select    default )],
51
	teams					 => [qw(Teams       30    text      default )],
52
	level					 => [qw(Level       35    select    default )],
53
	restrictions   => [qw(Rs          40    select            )],
54
	gtype					 => [qw(Type        45    select    default )],
21 - 55
	signup				 => [qw(SignUp      46    select            )],
7 - 56
	notes  				 => [qw(Notes       50    text              )],
57
	role					 => [qw(Role        55    select            )],
58
	tla						 => [qw(TLA         60    select    default )],
59
	name					 => [qw(Position    65    text              )],
60
	type					 => [qw(Class       70    select    default )],
61
	RCid					 => [qw(RCid        75    number            )],
62
	derby_name     => [qw(Assignee    80    select    default )]
63
);
64
 
65
if ($user->{department}->{"ANN"} > 1) {
66
# Add:
67
#		real_name			 RealName
68
#		email					 Email
69
  $COLUMNS{'real_name'} = [qw(RealName    85    text)];
70
  $COLUMNS{'email'}     = [qw(Email       90    text)];
71
}
72
 
73
my $stylesheet = "/style.css";
8 - 74
my $homeURL = '/schedule/';
7 - 75
my @pagelimitoptions = ("All", 5, 10, 25);
76
 
77
# If we need to modify line item values, create a subroutine named "modify_$columnname"
78
#    It will receive a hashref to the object lineitem (RETURN the modified field at the end of the function!)
79
 
80
sub modify_derby_name {
81
  my $t = shift;
82
 
83
  if ($user->{department}->{"ANN"} < 2 and $t->{derby_name} and $t->{RCid} != $RCid and $LVL < 5) {
84
    $t->{derby_name} = "FILLED";
85
  }
86
 
87
 	my ($yyyy, $mm, $dd) = split /\-/, $t->{date};
88
	my $cutoff = DateTime->new(
89
        year => $yyyy,
90
        month => $mm,
91
        day => $dd,
92
        hour => 5,
93
        minute => 0,
94
        second => 0,
95
        time_zone => 'America/Los_Angeles'
96
  );
97
 
21 - 98
 	if (($t->{RCid} == $RCid and $t->{signup} ne "selected" and $now < $cutoff) or ($t->{derby_name} and ($user->{department}->{"ANN"} >= 2 or $LVL >= 5))) {
7 - 99
 		# DROP
100
 		$t->{derby_name} = "$t->{derby_name} <A HREF='#' onClick=\"window.open('make_shift_change.pl?change=del&RCid=$t->{RCid}&id=$t->{id}&role=$t->{role}','Confirm Shift Change','resizable,height=260,width=370'); return false;\">[DROP]</a>";
101
 		if ($user->{department}->{"ANN"} >= 2 or $LVL > 4) {
102
 		  # NO SHOW
103
 		  $t->{derby_name} .= " | <A HREF='#' onClick=\"if (confirm('Really? They were a no show?')==true) { window.open('make_shift_change.pl?noshow=true&change=del&RCid=$t->{RCid}&id=$t->{id}&role=$t->{role}','Confirm Shift Change','resizable,height=260,width=370'); return false; }\">[NO SHOW]</a>";
104
 		}
105
 	} elsif (!$t->{derby_name}) {
106
 		if (signUpEligible ($ORCUSER, $t) and $now < $cutoff) {
107
 			# SIGN UP
108
 			$t->{derby_name} = "<A HREF='#' onClick=\"window.open('make_shift_change.pl?change=add&RCid=$RCid&id=$t->{id}&role=$t->{role}','Confirm Shift Change','resizable,height=260,width=370'); return false;\">[SIGN UP]</a>";
109
 		}
110
 		if ($user->{department}->{"ANN"} >= 2 or $LVL > 4) {
111
 			# ADD USER
112
 			$t->{derby_name} ? $t->{derby_name} .= " | " : {};
113
 			$t->{derby_name} .= "<A HREF='#' onClick=\"window.open('make_shift_change.pl?change=lookup&RCid=$RCid&id=$t->{id}&role=$t->{role}','Confirm Shift Change','resizable,height=260,width=370'); return false;\">[ADD USER]</a>";
114
 		}
115
 	}
116
 	return $t->{derby_name};
117
}
118
 
119
 
120
 
121
 
122
 
123
# Ideally, nothing below this comment needs to change
124
#-------------------------------------------------------------------------------
125
 
126
 
127
our %NAME              = map  { $_ => $COLUMNS{$_}->[0] } keys %COLUMNS;
128
our %colOrderHash      = map  { $_ => $COLUMNS{$_}->[1] } keys %COLUMNS;
129
our %colFilterTypeHash = map  { $_ => $COLUMNS{$_}->[2] } keys %COLUMNS;
130
our @staticFields      = sort byfield grep { $COLUMNS{$_}->[3] eq 'static' } keys %COLUMNS;
131
our @defaultFields     = sort byfield grep { defined $COLUMNS{$_}->[3] } keys %COLUMNS;
132
#our @defaultFields     = grep { $COLUMNS{$_}->[3] eq 'default' or inArray ($_, \@staticFields) } keys %COLUMNS;
133
 
134
our @allFields = sort byfield keys %NAME;
135
our @displayFields = ();
136
our @hideFields = ();
137
my $QUERY_STRING;
138
 
139
my $pagelimit = param ("limit") // $pagelimitoptions[$#pagelimitoptions];
140
my $curpage = param ("page") // 1;
141
 
142
our %FORM;
143
my $FILTER;
144
foreach (param()) {
145
	if (/^year$/) { #
146
		$YEAR = param($_);
147
		next;
148
	}
149
 
150
	$FORM{$_} = param($_);				# Retrieve all of the FORM data submitted
151
 
152
	if ((/^filter/) and ($FORM{$_} ne '')) {	# Build a set of filters to apply
153
		my ($filter,$field) = split /-/, $_;
154
		$FILTER->{$field} = $FORM{$_};
155
	}	elsif ($FORM{$_} eq "true")	{		# Compile list of fields to display
156
	  if ($_ ne "shiftinclude") {
157
		  push @displayFields, $_;
158
		}
159
  }
160
}
161
 
27 - 162
my @addToWhereClause = ("year(date) = '$YEAR'", "type = 'announcer'");
7 - 163
 
164
if (exists $FORM{autoload})	{			# If the FORM was submitted (i.e. the page is being redisplayed),
165
							                    #  	build the data for the cookie that remembers the page setup
166
	my $disFields = join ":", @displayFields;
167
	my $fils = join ":", map { "$_=$FILTER->{$_}" } keys %{$FILTER};
168
 
169
	$QUERY_STRING = $disFields.'&'.$fils.'&'.$FORM{sortby}.'&'.$FORM{autoload}.'&'.$FORM{shiftinclude};
170
}
171
 
172
 
173
if (!(exists $FORM{autoload}))	{			# No FORM was submitted...
174
	if (my $prefs = cookie ($prefscookie) and !defined param ("ignoreCookie"))	{ # Check for cookies from previous visits.
175
		my ($disF, $filts, $sb, $al, $si) = split /&/, $prefs;
176
		@displayFields = split /:/,$disF;
177
 
178
		foreach my $pair (split /:/, $filts)	{
179
			my ($key, $value) = split /=/, $pair;
180
			$FORM{"filter-$key"} = $value;
181
			$FILTER->{$key} = $value;
182
		}
183
 
184
		$FORM{sortby} = $sb;
185
		$FORM{autoload} = $al;
186
		$FORM{shiftinclude} = $si;
187
		$QUERY_STRING = $prefs;
188
	}	else {
189
	  @displayFields = @defaultFields; # Otherwise suppply a default list of columns.
190
	  $FORM{autoload} = 1;             # And turn aut0load on by default.
191
	}
192
}
193
 
194
# let's just make sure the columns are in the right order (and there aren't any missing)
195
@displayFields = sort byfield uniq @displayFields, @staticFields;
196
 
197
# If the field isn't in the displayFields list,	then add it to the hideFields list
198
@hideFields = grep { notInArray ($_, \@displayFields) } @allFields;
199
 
200
# Process any filters provided in the form to pass to the database
201
my @whereClause = map { filter ($_, $FILTER->{$_}) } grep { defined $FILTER->{$_} } @displayFields;
202
push @whereClause, @addToWhereClause;
203
 
204
							#  Given the fields to display and the where conditions,
205
							#	  "getData" will return a reference to an array of
206
							#	  hash references of the results.
207
my ($data, $datacount) = getData (\@displayFields, \@whereClause, $DBTABLE, $FORM{sortby}, $curpage, $pagelimit);
208
my @ProductList = @{ $data };
209
 
210
#my @ProductList = @{ getData (\@displayFields, \@whereClause, $DBTABLE, $FORM{sortby}, $curpage, $pagelimit) };
211
my $x = scalar @ProductList; # How many results were returned?
212
 
213
# If the user is trying to download the Excel file, send it to them and then exit out.
214
if ($FORM{excel}) {
215
  exportExcel (\@ProductList, "RC_Officiating_Shifts");
216
  exit;
217
}
218
 
219
my @shifts;
220
if ($FORM{shiftinclude} eq "true") {
221
  my @SIWhere = ("year(date) = '$YEAR'");
222
  push @SIWhere, "RCid = $ORCUSER->{RCid}";
223
  my ($d, $c) = getData (\@displayFields, \@SIWhere, $DBTABLE, $FORM{sortby});
224
  @shifts = @{ $d };
225
}
226
 
227
 
228
my $signedOnAs = $username ? "Welcome, $username. ".$h->a ({ href=>"index.pl", onClick=>"document.cookie = 'RCAUTH=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/';return true;" }, "[Log Out]") : "You are not signed in.";
229
 
230
# Set some cookie stuff...
231
my $path = `dirname $ENV{REQUEST_URI}`; chomp $path; $path .= '/' unless $path eq "/";
232
my $queryCookie = cookie(-NAME=>$prefscookie,
233
			-VALUE=>"$QUERY_STRING",
234
			-PATH=>"$path",
235
			-EXPIRES=>'+365d');
236
 
237
# Print the header
238
print header (-cookie=> [ $queryCookie, $RCAUTH_cookie ] );
239
 
240
# 	print "<!-- FORM \n\n";				# Debug code to dump the FORM to a html comment
241
#	print "I'm catching updates!!!\n\n";
242
#	foreach $key (sort (keys %FORM))		#	Must be done after the header is written!
243
# 		{ print "\t$key:  $FORM{$key}\n"; }
244
# 	print "--> \n\n";
245
#
246
#
247
# 	print "<!-- ENV \n\n";				# Debug code to dump the ENV to a html comment
248
# 	foreach $key (sort (keys %ENV))			#	Must be done after the header is written!
249
# 		{ print "\t$key:  $ENV{$key}\n"; }
250
# 	print "--> \n\n";
251
#
252
# 	print "\n\n\n\n<!-- $QUERY_STRING --> \n\n\n\n";
253
 
254
 
255
#------------------
256
 
257
# Toggle the autoload fields within the table elements
258
our ($onClick, $onChange);   # (also used in scanFunctions)
259
my ($radiobutton, $refreshbutton, $sortby);
260
if ($FORM{autoload}) {
261
	$onClick = "onClick='submit();'";
262
	$onChange = "onChange='page.value = 1; submit();'";
263
  $radiobutton = $h->div ({ class=>'autoload' },
264
    ["Autoload Changes: ",
265
    $h->input ({ type=>"radio", name=>'autoload', class=>'accent', value=>1, onClick=>'submit();', checked=>[] }), "On ",
266
    $h->input ({ type=>"radio", name=>'autoload', class=>'accent', value=>0, onClick=>'submit();' }), "Off ",
267
    ]);
268
  $sortby = $h->select ({name=>"sortby", onChange=>'submit();' }, [ map { $FORM{sortby} eq $_ ? $h->option ({ value=>$_, selected=>[] }, $NAME{$_}) : $h->option ({ value=>$_ }, $NAME{$_}) } @displayFields ]);
269
} else {
270
  $onClick = "";
271
	$onChange = "onChange='page.value = 1;'";
272
  $radiobutton = $h->div ({ class=>'autoload' },
273
    ["Autoload Changes: ",
274
    $h->input ({ type=>"radio", name=>'autoload', class=>'accent', value=>1, onClick=>'submit();' }), "On ",
275
    $h->input ({ type=>"radio", name=>'autoload', class=>'accent', value=>0, onClick=>'submit();', checked=>[] }), "Off ",
276
    ]);
11 - 277
  $refreshbutton = $h->input ({ type=>"button", value=>"Refresh", onClick=>"submit(); return false;" });
7 - 278
  $sortby = $h->select ({ name=>"sortby" }, [ map { $FORM{sortby} eq $_ ? $h->option ({ value=>$_, selected=>[] }, $NAME{$_}) : $h->option ({ value=>$_ }, $NAME{$_}) } @displayFields ]);
279
}
280
 
281
my $SIChecked;
282
if ($FORM{shiftinclude}) {
283
  $SIChecked = $h->input ({ type=>"checkbox", name=>"shiftinclude", value=>"true", checked=>[], onClick=>'submit();' });
284
} else {
285
  $SIChecked = $h->input ({ type=>"checkbox", name=>"shiftinclude", value=>"true", onClick=>'submit();' });
286
}
287
 
288
 
289
 
290
print start_html (-title => $pageTitle, -style => {'src' => $stylesheet} );
291
 
292
print $h->open ('form', { action=>url, method=>'POST', name=>'Req' });
293
print $h->input ({ type=>"hidden", name=>"excel", value=>0 });
294
print $h->div ({ class => "accent pageheader" }, [
295
  $h->h1 ($pageTitle),
296
  $h->div ({ class=>"sp0" }, [
297
    $h->div ({ class=>"spLeft" }, [
298
      $radiobutton
299
    ]),
300
    $h->div ({ class=>"spRight" }, [
301
      $h->input ({ type=>"button", value=>"Home", onClick=>"window.location.href='$homeURL'" }),
302
      $refreshbutton
303
    ]),
304
  ]),
305
]);
306
 
307
# Print the Hidden fields' check boxes (if there are any)
308
 
309
my $c = 1;
310
my @hiddencheckboxes;
311
my @hiddenrows;
312
foreach my $field (sort { $NAME{$a} cmp $NAME{$b}; } @hideFields) {
313
  if ($FORM{autoload}) {
314
    push @hiddencheckboxes, $h->div ({ class=>'rTableCell quarters nowrap', onClick=>"Req.$field.click();" }, [ $h->input ({ type=>'checkbox', class=>'accent', name=>$field, value=>'true', onClick=>"event.stopPropagation(); submit();" }), $NAME{$field} ]);
315
  } else {
316
    push @hiddencheckboxes, $h->div ({ class=>'rTableCell quarters nowrap', onClick=>"Req.$field.checked=!Req.$field.checked;" }, [ $h->input ({ type=>'checkbox', class=>'accent', name=>$field, value=>'true', onClick=>"event.stopPropagation();" }), $NAME{$field} ]);
317
  }
318
  if ($c++ % 4 == 0) {
319
    push @hiddenrows, $h->div ({ class=>'rTableRow' }, [ @hiddencheckboxes ]);
320
    @hiddencheckboxes = [];
321
  }
322
}
323
push @hiddenrows, $h->div ({ class=>'rTableRow' }, [ @hiddencheckboxes ]) unless --$c % 4 == 0;
324
 
325
my @yearoptions;
326
foreach (@{&getYears()}) {
327
	push @yearoptions, $YEAR eq $_ ? $h->option ({ selected=>[] }, $_) : $h->option ($_);
328
}
329
 
330
if (scalar @hideFields) {
331
  my @topleft;
332
  push @topleft, $h->div ({ class=>"nowrap" }, "Hidden Columns:");
333
  push @topleft, $h->div ({ class=>'rTable' }, [ @hiddenrows ]);
334
 
335
  print $h->div ({ class=>"sp0" }, [
336
    $h->div ({ class=>"spLeft"  }, [ @topleft ]),
337
    $h->div ({ class=>"spRight" }, [
338
      $signedOnAs, $h->br,
8 - 339
      "Show my shifts: ", $SIChecked, $h->br,
340
      $h->input ({ type=>"button", value=>"Block Personal Time", onClick=>"window.location.href='manage_personal_time.pl'" }),
7 - 341
    ])
342
  ]);
343
}
344
 
345
# Print the main table...............................................
346
 
347
print $h->open ('div', { class=>'rTable' });
348
 
349
my @tmptitlerow;
350
foreach my $f (@displayFields)	{  # Print the Column headings
351
  if (inArray ($f, \@staticFields)) {
352
    push @tmptitlerow, $h->div ({ class=>'rTableHead' }, [ $h->input ({ type=>"hidden", name=>$f, value=>"true" }), $NAME{$f} ]);
353
  } else {
354
    if ($FORM{autoload}) {
355
      push @tmptitlerow, $h->div ({ class=>'rTableHead', onClick=>"Req.$f.click();" }, [ $h->input ({ type=>"checkbox", class=>"accent", name=>$f, value=>"true", checked=>[], onClick=>'event.stopPropagation(); submit();' }), $NAME{$f} ]);
356
    } else {
357
      push @tmptitlerow, $h->div ({ class=>'rTableHead', onClick=>"Req.$f.checked=!Req.$f.checked;" }, [ $h->input ({ type=>"checkbox", class=>"accent", name=>$f, value=>"true", checked=>[], onClick=>"event.stopPropagation();" }), $NAME{$f} ]);
358
    }
359
  }
360
}
361
 
362
# Print the filter boxes...
363
print $h->div ({ class=>'rTableHeading' }, [ @tmptitlerow ], [ map { $h->div ({ class=>'rTableCell filters' }, filter ($_)) } @displayFields ], $h->div ({ class=>"rTableCell" }));
364
 
365
 
366
if ($FORM{shiftinclude}) {  # Include all of the user's shifts at the top
367
  foreach my $t (@shifts)	{
368
	  print $h->div ({ class=>'rTableRow highlighted' }, [ map { $h->div ({ class=>'rTableCell' }, exists &{"modify_".$_} ? &{"modify_".$_} ($t) : $t->{$_}) } @displayFields ]);
369
  }
370
  print $h->hr ({ width=>"500%" });
371
}
372
 
373
 
374
# Print the things
375
foreach my $t (@ProductList)	{
376
  if ($t->{RCid} eq $ORCUSER->{RCid}) {
377
	  print $h->div ({ class=>'rTableRow highlighted' }, [ map { $h->div ({ class=>'rTableCell' }, exists &{"modify_".$_} ? &{"modify_".$_} ($t) : $t->{$_}) } @displayFields ]);
378
  } else {
379
	  print $h->div ({ class=>'rTableRow shaded' }, [ map { $h->div ({ class=>'rTableCell' }, exists &{"modify_".$_} ? &{"modify_".$_} ($t) : $t->{$_}) } @displayFields ]);
380
  }
381
}
382
 
383
 
384
print $h->close ('div');
385
 
386
# close things out................................................
387
 
388
my $pages = $pagelimit eq "All" ? 1 : int( $datacount / $pagelimit + 0.99 );
389
if ($curpage > $pages) { $curpage = $pages; }
390
 
391
my @pagerange;
392
if ($pages <= 5 ) {
393
  @pagerange = 1 .. $pages;
394
} else {
395
  if ($curpage <= 3) {
396
    @pagerange = (1, 2, 3, 4, ">>");
397
  } elsif ($curpage >= $pages - 2) {
398
    @pagerange = ("<<", $pages-3, $pages-2, $pages-1, $pages);
399
  } else {
400
    @pagerange = ("<<", $curpage-1, $curpage, $curpage+1, ">>");
401
  }
402
}
403
 
404
print $h->br; # print $h->br;
405
print $h->div ({ class=>"sp0" }, [
406
    $h->div ({ class=>"spLeft" }, [
407
      $h->div ({ class=>"footer" }, [
408
        "To bookmark, save, or send this exact view, use the ",
409
        $h->a ({ href=>'', onClick=>"window.document.Req.method = 'GET'; Req.submit(); return false;" }, "[Full URL]"),
410
        $h->br,
411
        "If this page is displaying oddly, ", $h->a ({ href=>url ()."?ignoreCookie=1" }, "[Reset Your View]"),
412
        $h->br,
413
        $h->a ({ href=>"", target=>"_new", onClick=>"window.document.Req.excel.value=1; window.document.Req.submit(); window.document.Req.excel.value=0; return false;" }, "[Export Displayed Data as an Excel Document.]"),
414
        $h->br,
415
        "This page was displayed on ", currentTime (),
416
        $h->br,
24 - 417
        "Please direct questions, problems, and concerns to Officials.RollerCon.Schedule\@gmail.com",
7 - 418
        $h->br,
419
        "Displaying: ", $h->select ({ name=>"year", onchange=>"Req.submit();" }, [ @yearoptions ])
420
      ])
421
    ]),
422
    $h->div ({ class=>"spRight" }, [
423
      $h->h5 ([
424
               "$x of $datacount Record". ($x == 1 ? "" : "s") ." Displayed", $h->br,
425
               "Sorted by ", $sortby, $h->br,
426
               "Displaying ", $h->select ({ name=>"limit", onChange=>"page.value = 1; submit();" }, [ map { $pagelimit == $_ ? $h->option ({ selected=>[] }, $_) : $h->option ($_) } @pagelimitoptions ]), " Per Page", $h->br,
427
               ( $pages > 1 ? ( join " ", map { $_ == $curpage ? "<B>$_</b>" :
428
                                                $_ eq "<<"     ? $h->a ({ onClick=>qq{Req.page.value=1; Req.submit();} }, "$_") :
429
                                                $_ eq ">>"     ? $h->a ({ onClick=>qq{Req.page.value=$pages; Req.submit();} }, "$_") :
430
                                                                 $h->a ({ onClick=>qq{Req.page.value=$_; Req.submit();} }, "[$_]") } @pagerange ) : "" ), $h->br,
431
               $h->input ({ type=>"hidden", name=>"page", value=>$curpage })
432
      ])
433
    ]),
434
]);
435
 
436
#print $h->br; # print $h->br;
437
#print $h->h5 ("$x Record(s) Displayed");
438
#print $h->div ({ class=>"footer" }, [
439
#  "To bookmark, save, or send this exact view, use the ",
440
#  $h->a ({ href=>'', onClick=>"window.document.Req.method = 'GET'; Req.submit(); return false;" }, "[Full URL]"),
441
#  $h->br,
442
#  "This page was displayed on $now",
443
#  $h->br,
444
#  "Please direct questions, problems, and concerns to noone\@gmail.com"
445
#]);
446
 
447
 
448
print $h->close('form');
449
print $h->close('html');