version 1.5, 2009/08/06 00:49:31
|
version 1.7, 2009/08/06 20:40:59
|
Line 190 sub handler {
|
Line 190 sub handler {
|
sub header { |
sub header { |
my ($bodytitle,$jscript,$loaditems,$jsextra) = @_; |
my ($bodytitle,$jscript,$loaditems,$jsextra) = @_; |
if ($jscript) { |
if ($jscript) { |
$jscript = '<script type="text/javascript">'. |
$jscript = '<script type="text/javascript">'."\n". |
$jscript.'</script>'."\n"; |
'// <![CDATA['."\n". |
|
$jscript."\n".'// ]]>'."\n".'</script>'."\n"; |
} |
} |
if ($loaditems) { |
if ($loaditems) { |
$loaditems = {'add_entries' => $loaditems,}; |
$loaditems = {'add_entries' => $loaditems,}; |
Line 857 sub print_personnel_menu {
|
Line 858 sub print_personnel_menu {
|
for (my $i=0; $i<$persontotal; $i++) { |
for (my $i=0; $i<$persontotal; $i++) { |
my @linkargs = map { 'person_'.$i.'_'.$_ } (@items); |
my @linkargs = map { 'person_'.$i.'_'.$_ } (@items); |
my $linkargstr = join("','",@linkargs); |
my $linkargstr = join("','",@linkargs); |
my $userlink = &Apache::loncommon::selectuser_link($formname,@linkargs,$userlinktxt); |
my $userlink = &Apache::loncommon::selectuser_link($formname,@linkargs,$dom,$userlinktxt); |
my $uname_form = '<input type="text" name="person_'.$i.'_uname" value=""'. |
my $uname_form = '<input type="text" name="person_'.$i.'_uname" value=""'. |
' onFocus="this.blur();'. |
' onFocus="this.blur();'. |
'openuserbrowser('."'$formname','$linkargstr'".');" />'; |
'openuserbrowser('."'$formname','$linkargstr','$dom'".');" />'; |
my $onchange = 'javascript:fix_domain('."'$formname','person_".$i."_dom',". |
my $onchange = 'javascript:fix_domain('."'$formname','person_".$i."_dom',". |
"'person_".$i."_hidedom'".');'. |
"'person_".$i."_hidedom'".');'. |
'openuserbrowser('."'$formname','$linkargstr'".');'; |
'openuserbrowser('."'$formname','$linkargstr','$dom'".');'; |
my $udom_form = &Apache::loncommon::select_dom_form($dom,'person_'.$i.'_dom','', |
my $udom_form = &Apache::loncommon::select_dom_form($dom,'person_'.$i.'_dom','', |
1,$onchange). |
1,$onchange). |
'<input type="hidden" name="person_'.$i.'_hidedom" value="'.$dom.'" />'; |
'<input type="hidden" name="person_'.$i.'_hidedom" value="'.$dom.'" />'; |
Line 968 sub print_review {
|
Line 969 sub print_review {
|
'<td>'.$autoroster[$env{'form.autodrops'}].'</td>'. |
'<td>'.$autoroster[$env{'form.autodrops'}].'</td>'. |
'<td>'.&Apache::lonlocal::locallocaltime($startenroll).'</td>'. |
'<td>'.&Apache::lonlocal::locallocaltime($startenroll).'</td>'. |
'<td>'.&Apache::lonlocal::locallocaltime($endenroll).'</td>'; |
'<td>'.&Apache::lonlocal::locallocaltime($endenroll).'</td>'; |
$section_values = '<td>'; |
$section_values = '<td><table class="LC_innerpickbox"><tr><th>'. |
|
&mt('Institutional section').'</th>'. |
|
'<th>'.&mt('LON-CAPA section').'</th></tr>'; |
my $secinfo; |
my $secinfo; |
if ($env{'form.sectotal'} > 0) { |
if ($env{'form.sectotal'} > 0) { |
for (my $i=0; $i<$env{'form.sectotal'}; $i++) { |
for (my $i=0; $i<$env{'form.sectotal'}; $i++) { |
Line 983 sub print_review {
|
Line 986 sub print_review {
|
} |
} |
} |
} |
} |
} |
if ($secinfo) { |
if ($secinfo eq '') { |
$section_values .= '<table class="LC_innerpickbox"><tr><th>'. |
$secinfo = '<tr><td colspan="2">'.&mt('None').'</td></tr>'; |
&mt('Institutional section').'</th>'. |
|
'<th>'.&mt('LON-CAPA section').'</th></tr>'.$secinfo. |
|
'</table>'; |
|
} |
} |
$section_values .= '</td><td>'; |
$section_values .= $secinfo.'</table></td><td>'. |
|
'<table class="LC_innerpickbox"><tr><th>'. |
|
&mt('Institutional course/section').'</th>'. |
|
'<th>'.&mt('LON-CAPA section').'</th></tr>'; |
my $xlistinfo; |
my $xlistinfo; |
if ($env{'form.crosslisttotal'}) { |
if ($env{'form.crosslisttotal'}) { |
for (my $i=0; $i<$env{'form.crosslisttotal'}; $i++) { |
for (my $i=0; $i<$env{'form.crosslisttotal'}; $i++) { |
Line 1012 sub print_review {
|
Line 1015 sub print_review {
|
} |
} |
} |
} |
} |
} |
if ($xlistinfo) { |
if ($xlistinfo eq '') { |
$section_values .= '<table class="LC_innerpickbox"><tr><th>'. |
$xlistinfo = '<tr><td colspan="2">'.&mt('None').'</td></tr>'; |
&mt('Institutional course/section').'</th>'. |
|
'<th>'.&mt('LON-CAPA section').'</th></tr>'.$xlistinfo. |
|
'</table>'; |
|
} |
} |
$section_values .= '</td>'; |
$section_values .= $xlistinfo.'</table></td>'; |
} |
} |
} |
} |
|
|
Line 1092 sub print_review {
|
Line 1092 sub print_review {
|
my $output = '<p>'.&mt('Review the details of the course request before submission.').'</p>'. |
my $output = '<p>'.&mt('Review the details of the course request before submission.').'</p>'. |
'<div>'.&Apache::lonhtmlcommon::start_pick_box(). |
'<div>'.&Apache::lonhtmlcommon::start_pick_box(). |
&Apache::lonhtmlcommon::row_title(&mt('Owner')). |
&Apache::lonhtmlcommon::row_title(&mt('Owner')). |
'<table class="LC_innerpickbox">'. |
'<table class="LC_innerpickbox"><tr>'. |
'<th>'.&mt('Name').'</th>'. |
'<th>'.&mt('Name').'</th>'. |
'<th>'.&mt('Username:Domain').'</th>'. |
'<th>'.&mt('Username:Domain').'</th>'. |
'<th>'.&mt('E-mail address').'</th>'. |
'<th>'.&mt('E-mail address').'</th>'. |