version 1.25, 2002/06/04 13:13:38
|
version 1.26, 2002/09/16 13:05:49
|
Line 99 sub handler {
|
Line 99 sub handler {
|
|
|
|
|
|
|
startpage($r, $uname, $udom, $thisdisfn); # Put out the start of page. |
&startpage($r, $uname, $udom, $thisdisfn); # Put out the start of page. |
|
|
# Start off the diretory table. |
# Start off the diretory table. |
|
|
Line 176 sub getEffectiveUrl {
|
Line 176 sub getEffectiveUrl {
|
# $uname - User name. |
# $uname - User name. |
# $udom - Domain name the user is logged in under. |
# $udom - Domain name the user is logged in under. |
# $thisdisfn - Displayable version of the filename. |
# $thisdisfn - Displayable version of the filename. |
|
|
sub startpage { |
sub startpage { |
my ($r, $uname, $udom, $thisdisfn) = @_; |
my ($r, $uname, $udom, $thisdisfn) = @_; |
|
|
Line 184 sub startpage {
|
Line 185 sub startpage {
|
|
|
$r->print('<html><head><title>LON-CAPA Construction Space</title></head>'); |
$r->print('<html><head><title>LON-CAPA Construction Space</title></head>'); |
|
|
$r->print('<body bgcolor="#FFFFFF"><img align=right '. |
$r->print(&Apache::loncommon::bodytag(undef,undef,undef,1)); |
'src=/adm/lonIcons/lonlogos.gif>'); |
|
|
|
$r->print('<h1>Construction Space Directory <tt>'. |
$r->print('<h1>Construction Space Directory <tt>'. |
$thisdisfn.'/</tt></h1>'); |
$thisdisfn.'/</tt></h1>'. |
|
'<form method="post" action="/adm/publish" target="_parent">'. |
|
'<input type="hidden" name="filename" value="/~'. |
|
$uname.$thisdisfn.'/" />'. |
|
'<input type="submit" value="Publish Directory" />'. |
|
'<input type="submit" name="pubrec" value="Publish Directory and Sub Directories" /></form>'); |
|
|
if (($uname ne $ENV{'user.name'}) || ($udom ne $ENV{'user.domain'})) { |
if (($uname ne $ENV{'user.name'}) || ($udom ne $ENV{'user.domain'})) { |
$r->print('<h3>Co-Author: '.$uname.' at '.$udom. |
$r->print('<h3>Co-Author: '.$uname.' at '.$udom. |