version 1.93, 2009/03/29 17:56:43
|
version 1.98, 2009/05/16 22:50:35
|
Line 707 $lt{'or'}
|
Line 707 $lt{'or'}
|
STUFF |
STUFF |
|
|
if (!$inhibit_return_link) { |
if (!$inhibit_return_link) { |
$r->print(&mt('or').'</p>').&return_link($r); |
$r->print(&mt('or').'</p>'); |
|
&return_link($r); |
} else { |
} else { |
$r->print('</p>'); |
$r->print('</p>'); |
} |
} |
Line 1599 sub show_map_row {
|
Line 1600 sub show_map_row {
|
$output .= '<img src="'.$location.'" alt="" />'; |
$output .= '<img src="'.$location.'" alt="" />'; |
} |
} |
if ($type eq 'page') { |
if ($type eq 'page') { |
$output .= '<img src="/adm/lonIcons/navmap.page.open.gif"> '."\n"; |
$output .= '<img src="/adm/lonIcons/navmap.page.open.gif" alt="" /> '."\n"; |
} else { |
} else { |
$output .= '<img src="/adm/lonIcons/navmap.folder.open.gif"> '."\n"; |
$output .= '<img src="/adm/lonIcons/navmap.folder.open.gif" alt="" /> '."\n"; |
} |
} |
$output .= $title.'</td><td colspan="2"> </td>'."\n"; |
$output .= $title.'</td><td colspan="2"> </td>'."\n"; |
unshift (@{$maprows},$output); |
unshift (@{$maprows},$output); |
Line 1622 sub show_reservations {
|
Line 1623 sub show_reservations {
|
my %log=&Apache::lonnet::dump('nohist_'.$cdom.'_'.$cnum.'_slotlog',$udom,$uname); |
my %log=&Apache::lonnet::dump('nohist_'.$cdom.'_'.$cnum.'_slotlog',$udom,$uname); |
if ($env{'form.origin'} eq 'aboutme') { |
if ($env{'form.origin'} eq 'aboutme') { |
$r->print('<div class="LC_fontsize_large">'. |
$r->print('<div class="LC_fontsize_large">'. |
&mt('History of student-schedulable slots for: [_1]', |
&mt('History of student-reservable slots for: [_1]', |
&Apache::loncommon::plainname($env{'form.uname'},$env{'form.udom'}, |
&Apache::loncommon::plainname($env{'form.uname'},$env{'form.udom'}, |
'firstname')).'</div>'); |
'firstname')).'</div>'); |
} |
} |
Line 1763 sub show_reservations_log {
|
Line 1764 sub show_reservations_log {
|
$badslot = 1; |
$badslot = 1; |
} elsif ($slot{type} ne 'schedulable_student') { |
} elsif ($slot{type} ne 'schedulable_student') { |
my $description = &get_description($env{'form.slotname'},\%slot); |
my $description = &get_description($env{'form.slotname'},\%slot); |
$r->print('<div class="LC_warning">'.&mt('Reservation history unavailable for non-student-schedulable slot: [_1].',$description).'</div>'); |
$r->print('<div class="LC_warning">'.&mt('Reservation history unavailable for non-student-reservable slot: [_1].',$description).'</div>'); |
$badslot = 1; |
$badslot = 1; |
} |
} |
} |
} |
Line 1835 sub show_reservations_log {
|
Line 1836 sub show_reservations_log {
|
my %slot=&Apache::lonnet::get_slot($env{'form.slotname'}); |
my %slot=&Apache::lonnet::get_slot($env{'form.slotname'}); |
my $description = $slot{'description'}; |
my $description = $slot{'description'}; |
$r->print('<span class="LC_fontsize_large">'. |
$r->print('<span class="LC_fontsize_large">'. |
&mt('Reservation changes for student-schedulable slot: [_1]',$description).'</span><br />'); |
&mt('Reservation changes for student-reservable slot: [_1]',$description).'</span><br />'); |
|
|
$r->print(&display_filter($formname,$cdom,$cnum,\%curr,$version,\@allsymbs)); |
$r->print(&display_filter($formname,$cdom,$cnum,\%curr,$version,\@allsymbs)); |
my $showntablehdr = 0; |
my $showntablehdr = 0; |
Line 2063 sub display_filter {
|
Line 2064 sub display_filter {
|
sub upload_start { |
sub upload_start { |
my ($r)=@_; |
my ($r)=@_; |
$r->print(&Apache::grades::checkforfile_js()); |
$r->print(&Apache::grades::checkforfile_js()); |
my $result.='<table width=100% border=0><tr bgcolor="#e6ffff"><td>'."\n"; |
my $result.='<table width="100%" border="0"><tr bgcolor="#E6FFFF"><td>'."\n"; |
$result.=' <b>'. |
$result.=' <b>'. |
&mt('Specify a file containing the slot definitions.'). |
&mt('Specify a file containing the slot definitions.'). |
'</b></td></tr>'."\n"; |
'</b></td></tr>'."\n"; |
Line 2103 Total number of records found in file: $
|
Line 2104 Total number of records found in file: $
|
Enter as many fields as you can. The system will inform you and bring you back |
Enter as many fields as you can. The system will inform you and bring you back |
to this page if the data selected is insufficient to create the slots.<hr /> |
to this page if the data selected is insufficient to create the slots.<hr /> |
<input type="button" value="Reverse Association" onClick="javascript:this.form.associate.value='Reverse Association';submit(this.form);" /> |
<input type="button" value="Reverse Association" onClick="javascript:this.form.associate.value='Reverse Association';submit(this.form);" /> |
<label><input type="checkbox" name="noFirstLine" $checked />$ignore</label> |
<label><input type="checkbox" name="noFirstLine"$checked />$ignore</label> |
<input type="hidden" name="associate" value="" /> |
<input type="hidden" name="associate" value="" /> |
<input type="hidden" name="datatoken" value="$datatoken" /> |
<input type="hidden" name="datatoken" value="$datatoken" /> |
<input type="hidden" name="fileupload" value="$env{'form.fileupload'}" /> |
<input type="hidden" name="fileupload" value="$env{'form.fileupload'}" /> |