version 1.107, 2013/03/25 04:05:30
|
version 1.109, 2013/12/24 19:15:11
|
Line 284 sub create_user_javascript {
|
Line 284 sub create_user_javascript {
|
my %domdefs = &Apache::lonnet::get_domain_defaults($cdom); |
my %domdefs = &Apache::lonnet::get_domain_defaults($cdom); |
my ($showcredits,$credits); |
my ($showcredits,$credits); |
if (($crstype ne 'Community') && |
if (($crstype ne 'Community') && |
($domdefs{'officialcredits'} || $domdefs{'unofficialcredits'})) { |
(($domdefs{'officialcredits'} || $domdefs{'unofficialcredits'} || $domdefs{'textbookcredits'}))) { |
$showcredits = 1; |
$showcredits = 1; |
$credits = $coursedescription{'internal.defaultcredits'}; |
$credits = $coursedescription{'internal.defaultcredits'}; |
} |
} |
Line 513 sub display_matched_courses {
|
Line 513 sub display_matched_courses {
|
if (!%courses) { |
if (!%courses) { |
$r->print('<p class="LC_info">'.&mt('None found').'</p>'); |
$r->print('<p class="LC_info">'.&mt('None found').'</p>'); |
} elsif ($multiple) { |
} elsif ($multiple) { |
$r->print('<input type="button" value="'.&mt('Submit').'" onClick="gochoose('."'','','')".'" />'); |
$r->print('<input type="button" value="'.&mt('Submit').'" onclick="gochoose('."'','','')".'" />'); |
} |
} |
$r->print('<input type="hidden" name="form" value="'.$env{'form.form'}.'" />'. |
$r->print('<input type="hidden" name="form" value="'.$env{'form.form'}.'" />'. |
"\n".'<input type="hidden" name="pickedcourse" value="" />'."\n". |
"\n".'<input type="hidden" name="pickedcourse" value="" />'."\n". |
Line 1008 sub course_chooser {
|
Line 1008 sub course_chooser {
|
$output = &mt('No rights to clone')."\n"; |
$output = &mt('No rights to clone')."\n"; |
} |
} |
} else { |
} else { |
$output = '<input type="button" value="'.&mt('Select').'" onClick="gochoose('. |
$output = '<input type="button" value="'.&mt('Select').'" onclick="gochoose('. |
"'".$cnum."','".$cdom."','".$cleandesc."')".'" />'."\n"; |
"'".$cnum."','".$cdom."','".$cleandesc."')".'" />'."\n"; |
} |
} |
return $output; |
return $output; |