version 1.102, 2009/08/13 10:24:29
|
version 1.104, 2009/10/15 23:53:46
|
Line 1435 sub manage_reservations {
|
Line 1435 sub manage_reservations {
|
.&mt('Instructors may use a reservation system to place restrictions on when and where assignments can be worked on.') |
.&mt('Instructors may use a reservation system to place restrictions on when and where assignments can be worked on.') |
.'<br />' |
.'<br />' |
.&mt('One example is for management of laboratory space, which is only available at certain times, and has a limited number of seats.') |
.&mt('One example is for management of laboratory space, which is only available at certain times, and has a limited number of seats.') |
.'</p><p>' |
|
.&mt('Your reservation status for any such assignments is listed below:') |
|
.'</p>' |
.'</p>' |
); |
); |
if (!defined($navmap)) { |
if (!defined($navmap)) { |
Line 1451 sub manage_reservations {
|
Line 1449 sub manage_reservations {
|
my @backgrounds = ("LC_odd_row","LC_even_row"); |
my @backgrounds = ("LC_odd_row","LC_even_row"); |
my $numcolors = scalar(@backgrounds); |
my $numcolors = scalar(@backgrounds); |
my $location=&Apache::loncommon::lonhttpdurl("/adm/lonIcons/whitespace_21.gif"); |
my $location=&Apache::loncommon::lonhttpdurl("/adm/lonIcons/whitespace_21.gif"); |
$r->print('<table class="LC_data_table LC_tableOfContent">'."\n"); |
my $slotheader = '<p>'. |
|
&mt('Your reservation status for any such assignments is listed below:'). |
|
'</p>'. |
|
'<table class="LC_data_table LC_tableOfContent">'."\n"; |
|
my $shownheader = 0; |
my $it=$navmap->getIterator(undef,undef,undef,1,undef,undef); |
my $it=$navmap->getIterator(undef,undef,undef,1,undef,undef); |
while (my $resource = $it->next()) { |
while (my $resource = $it->next()) { |
if ($resource == $it->BEGIN_MAP()) { |
if ($resource == $it->BEGIN_MAP()) { |
Line 1546 sub manage_reservations {
|
Line 1548 sub manage_reservations {
|
foreach my $item (@maprows) { |
foreach my $item (@maprows) { |
$rownum ++; |
$rownum ++; |
my $bgcolor = $backgrounds[$rownum % $numcolors]; |
my $bgcolor = $backgrounds[$rownum % $numcolors]; |
|
if (!$shownheader) { |
|
$r->print($slotheader); |
|
$shownheader = 1; |
|
} |
$r->print('<tr class="'.$bgcolor.'">'.$item.'</tr>'."\n"); |
$r->print('<tr class="'.$bgcolor.'">'.$item.'</tr>'."\n"); |
} |
} |
} |
} |
$rownum ++; |
$rownum ++; |
my $bgcolor = $backgrounds[$rownum % $numcolors]; |
my $bgcolor = $backgrounds[$rownum % $numcolors]; |
|
if (!$shownheader) { |
|
$r->print($slotheader); |
|
$shownheader = 1; |
|
} |
$r->print('<tr class="'.$bgcolor.'"><td>'."\n"); |
$r->print('<tr class="'.$bgcolor.'"><td>'."\n"); |
for (my $i=0; $i<$depth; $i++) { |
for (my $i=0; $i<$depth; $i++) { |
$r->print('<img src="'.$location.'" alt="" />'); |
$r->print('<img src="'.$location.'" alt="" />'); |
Line 1585 sub manage_reservations {
|
Line 1595 sub manage_reservations {
|
} |
} |
} |
} |
} |
} |
|
if ($shownheader) { |
|
$r->print('</table>'); |
|
} |
if (!$reservable) { |
if (!$reservable) { |
$r->print('<span class="LC_info">'.&mt('No course items currently require a reservation to gain access.').'</span>'); |
$r->print('<span class="LC_info">'.&mt('No course items currently require a reservation to gain access.').'</span>'); |
} |
} |
$r->print('</table>'. |
$r->print('<p><a href="/adm/slotrequest?command=showresv">'. |
'<p><a href="/adm/slotrequest?command=showresv">'. |
|
&mt('Reservation History').'</a></p>'); |
&mt('Reservation History').'</a></p>'); |
} |
} |
|
|
Line 2054 sub display_filter {
|
Line 2066 sub display_filter {
|
&mt('Update Display').'" /></tr></table>'. |
&mt('Update Display').'" /></tr></table>'. |
'<p class="LC_info">'. |
'<p class="LC_info">'. |
&mt('Only changes made from servers running LON-CAPA [_1] or later are displayed.' |
&mt('Only changes made from servers running LON-CAPA [_1] or later are displayed.' |
,'2.8.99.0'); |
,'2.9.0'); |
if ($version) { |
if ($version) { |
$output .= ' '.&mt('This LON-CAPA server is version [_1]',$version); |
$output .= ' '.&mt('This LON-CAPA server is version [_1]',$version); |
} |
} |