projects
/
tpope-extra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf1948f
)
Fixed typo
author
Tim Pope
<code@tpope.net>
Thu, 9 Sep 2004 04:35:54 +0000
(
04:35
+0000)
committer
Tim Pope
<code@tpope.net>
Thu, 9 Sep 2004 04:35:54 +0000
(
04:35
+0000)
perl/sctweb
patch
|
blob
|
history
diff --git
a/perl/sctweb
b/perl/sctweb
index 06ff3a98056fd22e19e630d5de29b7a081ec6a3c..1fa76cbbc3019ab9bd5765a770df66eaeb5a3cee 100755
(executable)
--- a/
perl/sctweb
+++ b/
perl/sctweb
@@
-289,7
+289,7
@@
sub do_mhc_schedule {
if(defined($file) && (-d $file)) {
$row->{'instructor'} =~ s/^([^,]*), ([^,]*)(.*)/$2 $1$3/;
my $email = get_faculty_email $row->{'instructor'};
if(defined($file) && (-d $file)) {
$row->{'instructor'} =~ s/^([^,]*), ([^,]*)(.*)/$2 $1$3/;
my $email = get_faculty_email $row->{'instructor'};
- $row->{'instructor'} = '"' . $row->{'instructor'} . '" <'. ($email || "$1\@from.sctweb"
. ">")
;
+ $row->{'instructor'} = '"' . $row->{'instructor'} . '" <'. ($email || "$1\@from.sctweb"
) . ">"
;
$row->{'duration'} =~ /^(\d\d\d\d)(\d\d)(\d\d)-\d{8}$/;
$row->{'begin'} =~ /^(\d\d):(\d\d)$/;
my $next = next_class(%$row);
$row->{'duration'} =~ /^(\d\d\d\d)(\d\d)(\d\d)-\d{8}$/;
$row->{'begin'} =~ /^(\d\d):(\d\d)$/;
my $next = next_class(%$row);
@@
-414,7
+414,15
@@
sub do_html_schedule {
$row->{'duration'} =~ s/\d\d(\d\d)(\d\d)(\d\d)/$2-$3-$1/g;
print '<tr>';
print "<td>" . $row->{'id'} . "<br />" . $row->{'title'} . "</td>";
$row->{'duration'} =~ s/\d\d(\d\d)(\d\d)(\d\d)/$2-$3-$1/g;
print '<tr>';
print "<td>" . $row->{'id'} . "<br />" . $row->{'title'} . "</td>";
- print "<td>" . $row->{'instructor'} . "</td>";
+ my $instructor = $row->{'instructor'};
+ $instructor =~ s/^([^,]*), ([^,]*)(.*)/$2 $1$3/;
+ my $email = get_faculty_email($instructor);
+ #if($email) {
+ #print '<td><a href="mailto:' . $email . '">'
+ #. $row->{'instructor'} . "</a></td>";
+ # } else {
+ print "<td>" . $row->{'instructor'} . "</td>";
+ #}
print "<td>" . $row->{'days'} . "</td>";
print "<td>" . $row->{'time'} . "</td>";
print "<td>" . $row->{'duration'} . "</td>";
print "<td>" . $row->{'days'} . "</td>";
print "<td>" . $row->{'time'} . "</td>";
print "<td>" . $row->{'duration'} . "</td>";