Subversion Repositories ORC

Rev

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