Subversion Repositories ORC

Rev

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