Subversion Repositories VORC

Rev

Rev 29 | Rev 53 | 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
 
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
50 bgadell 37
my $YEAR = "2023";
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
 
50 bgadell 121
sub modify_time {
122
  my $t = shift;
123
  return convertTime $t->{time};
124
}
7 - 125
 
126
 
127
 
128
# Ideally, nothing below this comment needs to change
129
#-------------------------------------------------------------------------------
130
 
131
 
132
our %NAME              = map  { $_ => $COLUMNS{$_}->[0] } keys %COLUMNS;
133
our %colOrderHash      = map  { $_ => $COLUMNS{$_}->[1] } keys %COLUMNS;
134
our %colFilterTypeHash = map  { $_ => $COLUMNS{$_}->[2] } keys %COLUMNS;
135
our @staticFields      = sort byfield grep { $COLUMNS{$_}->[3] eq 'static' } keys %COLUMNS;
136
our @defaultFields     = sort byfield grep { defined $COLUMNS{$_}->[3] } keys %COLUMNS;
137
#our @defaultFields     = grep { $COLUMNS{$_}->[3] eq 'default' or inArray ($_, \@staticFields) } keys %COLUMNS;
138
 
139
our @allFields = sort byfield keys %NAME;
140
our @displayFields = ();
141
our @hideFields = ();
142
my $QUERY_STRING;
143
 
144
my $pagelimit = param ("limit") // $pagelimitoptions[$#pagelimitoptions];
145
my $curpage = param ("page") // 1;
146
 
147
our %FORM;
148
my $FILTER;
149
foreach (param()) {
150
	if (/^year$/) { #
151
		$YEAR = param($_);
152
		next;
153
	}
154
 
155
	$FORM{$_} = param($_);				# Retrieve all of the FORM data submitted
156
 
157
	if ((/^filter/) and ($FORM{$_} ne '')) {	# Build a set of filters to apply
158
		my ($filter,$field) = split /-/, $_;
159
		$FILTER->{$field} = $FORM{$_};
160
	}	elsif ($FORM{$_} eq "true")	{		# Compile list of fields to display
161
	  if ($_ ne "shiftinclude") {
162
		  push @displayFields, $_;
163
		}
164
  }
165
}
166
 
27 - 167
my @addToWhereClause = ("year(date) = '$YEAR'", "type != 'announcer'");
7 - 168
 
169
if (exists $FORM{autoload})	{			# If the FORM was submitted (i.e. the page is being redisplayed),
170
							                    #  	build the data for the cookie that remembers the page setup
171
	my $disFields = join ":", @displayFields;
172
	my $fils = join ":", map { "$_=$FILTER->{$_}" } keys %{$FILTER};
173
 
174
	$QUERY_STRING = $disFields.'&'.$fils.'&'.$FORM{sortby}.'&'.$FORM{autoload}.'&'.$FORM{shiftinclude};
175
}
176
 
177
 
178
if (!(exists $FORM{autoload}))	{			# No FORM was submitted...
179
	if (my $prefs = cookie ($prefscookie) and !defined param ("ignoreCookie"))	{ # Check for cookies from previous visits.
180
		my ($disF, $filts, $sb, $al, $si) = split /&/, $prefs;
181
		@displayFields = split /:/,$disF;
182
 
183
		foreach my $pair (split /:/, $filts)	{
184
			my ($key, $value) = split /=/, $pair;
185
			$FORM{"filter-$key"} = $value;
186
			$FILTER->{$key} = $value;
187
		}
188
 
189
		$FORM{sortby} = $sb;
190
		$FORM{autoload} = $al;
191
		$FORM{shiftinclude} = $si;
192
		$QUERY_STRING = $prefs;
193
	}	else {
194
	  @displayFields = @defaultFields; # Otherwise suppply a default list of columns.
195
	  $FORM{autoload} = 1;             # And turn aut0load on by default.
196
	}
197
}
198
 
199
# let's just make sure the columns are in the right order (and there aren't any missing)
200
@displayFields = sort byfield uniq @displayFields, @staticFields;
201
 
202
# If the field isn't in the displayFields list,	then add it to the hideFields list
203
@hideFields = grep { notInArray ($_, \@displayFields) } @allFields;
204
 
205
# Process any filters provided in the form to pass to the database
206
my @whereClause = map { filter ($_, $FILTER->{$_}) } grep { defined $FILTER->{$_} } @displayFields;
207
push @whereClause, @addToWhereClause;
208
 
209
							#  Given the fields to display and the where conditions,
210
							#	  "getData" will return a reference to an array of
211
							#	  hash references of the results.
212
my ($data, $datacount) = getData (\@displayFields, \@whereClause, $DBTABLE, $FORM{sortby}, $curpage, $pagelimit);
213
my @ProductList = @{ $data };
214
 
215
#my @ProductList = @{ getData (\@displayFields, \@whereClause, $DBTABLE, $FORM{sortby}, $curpage, $pagelimit) };
216
my $x = scalar @ProductList; # How many results were returned?
217
 
218
# If the user is trying to download the Excel file, send it to them and then exit out.
219
if ($FORM{excel}) {
220
  exportExcel (\@ProductList, "RC_Officiating_Shifts");
221
  exit;
222
}
223
 
224
my @shifts;
225
if ($FORM{shiftinclude} eq "true") {
226
  my @SIWhere = ("year(date) = '$YEAR'");
227
  push @SIWhere, "RCid = $ORCUSER->{RCid}";
228
  my ($d, $c) = getData (\@displayFields, \@SIWhere, $DBTABLE, $FORM{sortby});
229
  @shifts = @{ $d };
230
}
231
 
232
 
233
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.";
234
 
235
# Set some cookie stuff...
236
my $path = `dirname $ENV{REQUEST_URI}`; chomp $path; $path .= '/' unless $path eq "/";
237
my $queryCookie = cookie(-NAME=>$prefscookie,
238
			-VALUE=>"$QUERY_STRING",
239
			-PATH=>"$path",
240
			-EXPIRES=>'+365d');
241
 
242
# Print the header
243
print header (-cookie=> [ $queryCookie, $RCAUTH_cookie ] );
244
 
245
# 	print "<!-- FORM \n\n";				# Debug code to dump the FORM to a html comment
246
#	print "I'm catching updates!!!\n\n";
247
#	foreach $key (sort (keys %FORM))		#	Must be done after the header is written!
248
# 		{ print "\t$key:  $FORM{$key}\n"; }
249
# 	print "--> \n\n";
250
#
251
#
252
# 	print "<!-- ENV \n\n";				# Debug code to dump the ENV to a html comment
253
# 	foreach $key (sort (keys %ENV))			#	Must be done after the header is written!
254
# 		{ print "\t$key:  $ENV{$key}\n"; }
255
# 	print "--> \n\n";
256
#
257
# 	print "\n\n\n\n<!-- $QUERY_STRING --> \n\n\n\n";
258
 
259
 
260
#------------------
261
 
262
# Toggle the autoload fields within the table elements
263
our ($onClick, $onChange);   # (also used in scanFunctions)
264
my ($radiobutton, $refreshbutton, $sortby);
265
if ($FORM{autoload}) {
266
	$onClick = "onClick='submit();'";
267
	$onChange = "onChange='page.value = 1; submit();'";
268
  $radiobutton = $h->div ({ class=>'autoload' },
269
    ["Autoload Changes: ",
270
    $h->input ({ type=>"radio", name=>'autoload', class=>'accent', value=>1, onClick=>'submit();', checked=>[] }), "On ",
271
    $h->input ({ type=>"radio", name=>'autoload', class=>'accent', value=>0, onClick=>'submit();' }), "Off ",
272
    ]);
273
  $sortby = $h->select ({name=>"sortby", onChange=>'submit();' }, [ map { $FORM{sortby} eq $_ ? $h->option ({ value=>$_, selected=>[] }, $NAME{$_}) : $h->option ({ value=>$_ }, $NAME{$_}) } @displayFields ]);
274
} else {
275
  $onClick = "";
276
	$onChange = "onChange='page.value = 1;'";
277
  $radiobutton = $h->div ({ class=>'autoload' },
278
    ["Autoload Changes: ",
279
    $h->input ({ type=>"radio", name=>'autoload', class=>'accent', value=>1, onClick=>'submit();' }), "On ",
280
    $h->input ({ type=>"radio", name=>'autoload', class=>'accent', value=>0, onClick=>'submit();', checked=>[] }), "Off ",
281
    ]);
11 - 282
  $refreshbutton = $h->input ({ type=>"button", value=>"Refresh", onClick=>"submit(); return false;" });
7 - 283
  $sortby = $h->select ({ name=>"sortby" }, [ map { $FORM{sortby} eq $_ ? $h->option ({ value=>$_, selected=>[] }, $NAME{$_}) : $h->option ({ value=>$_ }, $NAME{$_}) } @displayFields ]);
284
}
285
 
286
my $SIChecked;
287
if ($FORM{shiftinclude}) {
288
  $SIChecked = $h->input ({ type=>"checkbox", name=>"shiftinclude", value=>"true", checked=>[], onClick=>'submit();' });
289
} else {
290
  $SIChecked = $h->input ({ type=>"checkbox", name=>"shiftinclude", value=>"true", onClick=>'submit();' });
291
}
292
 
293
 
294
 
295
print start_html (-title => $pageTitle, -style => {'src' => $stylesheet} );
296
 
297
print $h->open ('form', { action=>url, method=>'POST', name=>'Req' });
298
print $h->input ({ type=>"hidden", name=>"excel", value=>0 });
299
print $h->div ({ class => "accent pageheader" }, [
300
  $h->h1 ($pageTitle),
301
  $h->div ({ class=>"sp0" }, [
302
    $h->div ({ class=>"spLeft" }, [
303
      $radiobutton
304
    ]),
305
    $h->div ({ class=>"spRight" }, [
306
      $h->input ({ type=>"button", value=>"Home", onClick=>"window.location.href='$homeURL'" }),
307
      $refreshbutton
308
    ]),
309
  ]),
310
]);
311
 
312
# Print the Hidden fields' check boxes (if there are any)
313
 
314
my $c = 1;
315
my @hiddencheckboxes;
316
my @hiddenrows;
317
foreach my $field (sort { $NAME{$a} cmp $NAME{$b}; } @hideFields) {
318
  if ($FORM{autoload}) {
319
    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} ]);
320
  } else {
321
    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} ]);
322
  }
323
  if ($c++ % 4 == 0) {
324
    push @hiddenrows, $h->div ({ class=>'rTableRow' }, [ @hiddencheckboxes ]);
325
    @hiddencheckboxes = [];
326
  }
327
}
328
push @hiddenrows, $h->div ({ class=>'rTableRow' }, [ @hiddencheckboxes ]) unless --$c % 4 == 0;
329
 
330
my @yearoptions;
331
foreach (@{&getYears()}) {
332
	push @yearoptions, $YEAR eq $_ ? $h->option ({ selected=>[] }, $_) : $h->option ($_);
333
}
334
 
335
if (scalar @hideFields) {
336
  my @topleft;
337
  push @topleft, $h->div ({ class=>"nowrap" }, "Hidden Columns:");
338
  push @topleft, $h->div ({ class=>'rTable' }, [ @hiddenrows ]);
339
 
340
  print $h->div ({ class=>"sp0" }, [
341
    $h->div ({ class=>"spLeft"  }, [ @topleft ]),
342
    $h->div ({ class=>"spRight" }, [
343
      $signedOnAs, $h->br,
8 - 344
      "Show my shifts: ", $SIChecked, $h->br,
345
      $h->input ({ type=>"button", value=>"Block Personal Time", onClick=>"window.location.href='manage_personal_time.pl'" }),
7 - 346
    ])
347
  ]);
348
}
349
 
350
# Print the main table...............................................
351
 
352
print $h->open ('div', { class=>'rTable' });
353
 
354
my @tmptitlerow;
355
foreach my $f (@displayFields)	{  # Print the Column headings
356
  if (inArray ($f, \@staticFields)) {
357
    push @tmptitlerow, $h->div ({ class=>'rTableHead' }, [ $h->input ({ type=>"hidden", name=>$f, value=>"true" }), $NAME{$f} ]);
358
  } else {
359
    if ($FORM{autoload}) {
360
      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} ]);
361
    } else {
362
      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} ]);
363
    }
364
  }
365
}
366
 
367
# Print the filter boxes...
368
print $h->div ({ class=>'rTableHeading' }, [ @tmptitlerow ], [ map { $h->div ({ class=>'rTableCell filters' }, filter ($_)) } @displayFields ], $h->div ({ class=>"rTableCell" }));
369
 
370
 
371
if ($FORM{shiftinclude}) {  # Include all of the user's shifts at the top
372
  foreach my $t (@shifts)	{
373
	  print $h->div ({ class=>'rTableRow highlighted' }, [ map { $h->div ({ class=>'rTableCell' }, exists &{"modify_".$_} ? &{"modify_".$_} ($t) : $t->{$_}) } @displayFields ]);
374
  }
375
  print $h->hr ({ width=>"500%" });
376
}
377
 
378
 
379
# Print the things
380
foreach my $t (@ProductList)	{
381
  if ($t->{RCid} eq $ORCUSER->{RCid}) {
382
	  print $h->div ({ class=>'rTableRow highlighted' }, [ map { $h->div ({ class=>'rTableCell' }, exists &{"modify_".$_} ? &{"modify_".$_} ($t) : $t->{$_}) } @displayFields ]);
383
  } else {
384
	  print $h->div ({ class=>'rTableRow shaded' }, [ map { $h->div ({ class=>'rTableCell' }, exists &{"modify_".$_} ? &{"modify_".$_} ($t) : $t->{$_}) } @displayFields ]);
385
  }
386
}
387
 
388
 
389
print $h->close ('div');
390
 
391
# close things out................................................
392
 
393
my $pages = $pagelimit eq "All" ? 1 : int( $datacount / $pagelimit + 0.99 );
394
if ($curpage > $pages) { $curpage = $pages; }
395
 
396
my @pagerange;
397
if ($pages <= 5 ) {
398
  @pagerange = 1 .. $pages;
399
} else {
400
  if ($curpage <= 3) {
401
    @pagerange = (1, 2, 3, 4, ">>");
402
  } elsif ($curpage >= $pages - 2) {
403
    @pagerange = ("<<", $pages-3, $pages-2, $pages-1, $pages);
404
  } else {
405
    @pagerange = ("<<", $curpage-1, $curpage, $curpage+1, ">>");
406
  }
407
}
408
 
409
print $h->br; # print $h->br;
410
print $h->div ({ class=>"sp0" }, [
411
    $h->div ({ class=>"spLeft" }, [
412
      $h->div ({ class=>"footer" }, [
413
        "To bookmark, save, or send this exact view, use the ",
414
        $h->a ({ href=>'', onClick=>"window.document.Req.method = 'GET'; Req.submit(); return false;" }, "[Full URL]"),
415
        $h->br,
416
        "If this page is displaying oddly, ", $h->a ({ href=>url ()."?ignoreCookie=1" }, "[Reset Your View]"),
417
        $h->br,
418
        $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.]"),
419
        $h->br,
420
        "This page was displayed on ", currentTime (),
421
        $h->br,
24 - 422
        "Please direct questions, problems, and concerns to Officials.RollerCon.Schedule\@gmail.com",
7 - 423
        $h->br,
424
        "Displaying: ", $h->select ({ name=>"year", onchange=>"Req.submit();" }, [ @yearoptions ])
425
      ])
426
    ]),
427
    $h->div ({ class=>"spRight" }, [
428
      $h->h5 ([
429
               "$x of $datacount Record". ($x == 1 ? "" : "s") ." Displayed", $h->br,
430
               "Sorted by ", $sortby, $h->br,
431
               "Displaying ", $h->select ({ name=>"limit", onChange=>"page.value = 1; submit();" }, [ map { $pagelimit == $_ ? $h->option ({ selected=>[] }, $_) : $h->option ($_) } @pagelimitoptions ]), " Per Page", $h->br,
432
               ( $pages > 1 ? ( join " ", map { $_ == $curpage ? "<B>$_</b>" :
433
                                                $_ eq "<<"     ? $h->a ({ onClick=>qq{Req.page.value=1; Req.submit();} }, "$_") :
434
                                                $_ eq ">>"     ? $h->a ({ onClick=>qq{Req.page.value=$pages; Req.submit();} }, "$_") :
435
                                                                 $h->a ({ onClick=>qq{Req.page.value=$_; Req.submit();} }, "[$_]") } @pagerange ) : "" ), $h->br,
436
               $h->input ({ type=>"hidden", name=>"page", value=>$curpage })
437
      ])
438
    ]),
439
]);
440
 
441
#print $h->br; # print $h->br;
442
#print $h->h5 ("$x Record(s) Displayed");
443
#print $h->div ({ class=>"footer" }, [
444
#  "To bookmark, save, or send this exact view, use the ",
445
#  $h->a ({ href=>'', onClick=>"window.document.Req.method = 'GET'; Req.submit(); return false;" }, "[Full URL]"),
446
#  $h->br,
447
#  "This page was displayed on $now",
448
#  $h->br,
449
#  "Please direct questions, problems, and concerns to noone\@gmail.com"
450
#]);
451
 
452
 
453
print $h->close('form');
29 - 454
print $h->close('html');