Subversion Repositories ORC

Rev

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