Removed /usr/local from CDPATH
[clearscm.git] / clearadm / schedule.cgi
1 #!/usr/local/bin/perl
2
3 =pod
4
5 =head1 NAME $RCSfile: schedule.cgi,v $
6
7 Display schedule
8
9 =head1 VERSION
10
11 =over
12
13 =item Author
14
15 Andrew DeFaria <Andrew@ClearSCM.com>
16
17 =item Revision
18
19 $Revision: 1.2 $
20
21 =item Created:
22
23 Mon Oct 25 11:10:47 PDT 2008
24
25 =item Modified:
26
27 $Date: 2011/02/14 14:54:32 $
28
29 =back
30
31 =head1 SYNOPSIS
32
33  Usage schedule.cgi: [-u|sage] [-ve|rbose] [-d|ebug]
34
35  Where:
36    -u|sage:               Displays usage
37    -ve|rbose:             Be verbose
38    -d|ebug:               Output debug messages
39
40 =head2 DESCRIPTION
41
42 This script displays schedule
43
44 =cut
45
46 use strict;
47 use warnings;
48
49 use FindBin;
50 use Getopt::Long;
51 use CGI qw (:standard :cgi-lib *table start_Tr end_Tr);
52 use CGI::Carp 'fatalsToBrowser';
53
54 use lib "$FindBin::Bin/lib", "$FindBin::Bin/../lib";
55
56 use Clearadm;
57 use ClearadmWeb;
58 use Display;
59 use Utils;
60
61 my $VERSION  = '$Revision: 1.2 $';
62   ($VERSION) = ($VERSION =~ /\$Revision: (.*) /);
63   
64 my $clearadm;
65
66 # Main
67 GetOptions (
68   usage      => sub { Usage },
69   verbose    => sub { set_verbose },
70   debug      => sub { set_debug },
71 ) or Usage 'Invalid parameter';
72
73 # Announce ourselves
74 verbose "$FindBin::Script v$VERSION";
75
76 $clearadm = Clearadm->new;
77
78 my $title = 'Schedule';
79
80 heading $title;
81
82 display h1 {class => 'center'}, $title;
83
84 displaySchedule;
85
86 footing;
87
88 =pod
89
90 =head1 CONFIGURATION AND ENVIRONMENT
91
92 DEBUG: If set then $debug is set to this level.
93
94 VERBOSE: If set then $verbose is set to this level.
95
96 TRACE: If set then $trace is set to this level.
97
98 =head1 DEPENDENCIES
99
100 =head2 Perl Modules
101
102 L<CGI>
103
104 L<CGI::Carp|CGI::Carp>
105
106 L<FindBin>
107
108 L<Getopt::Long|Getopt::Long>
109
110 =head2 ClearSCM Perl Modules
111
112 =begin man 
113
114  Clearadm
115  ClearadmWeb
116  Display
117  Utils
118
119 =end man
120
121 =begin html
122
123 <blockquote>
124 <a href="http://clearscm.com/php/scm_man.php?file=clearadm/lib/Clearadm.pm">Clearadm</a><br>
125 <a href="http://clearscm.com/php/scm_man.php?file=clearadm/lib/ClearadmWeb.pm">ClearadmWeb</a><br>
126 <a href="http://clearscm.com/php/scm_man.php?file=lib/Display.pm">Display</a><br>
127 <a href="http://clearscm.com/php/scm_man.php?file=lib/Utils.pm">Utils</a><br>
128 </blockquote>
129
130 =end html
131
132 =head1 BUGS AND LIMITATIONS
133
134 There are no known bugs in this script
135
136 Please report problems to Andrew DeFaria <Andrew@ClearSCM.com>.
137
138 =head1 LICENSE AND COPYRIGHT
139
140 Copyright (c) 2010, ClearSCM, Inc. All rights reserved.
141
142 =cut