version 1.249.2.5, 2008/07/18 02:15:32
|
version 1.249.2.6, 2008/08/26 23:20:22
|
Line 967 sub display_existing_roles {
|
Line 967 sub display_existing_roles {
|
if (defined($coursedata{'description'})) { |
if (defined($coursedata{'description'})) { |
$carea=$coursedata{'description'}. |
$carea=$coursedata{'description'}. |
'<br />'.&mt('Domain').': '.$coursedom.(' 'x8). |
'<br />'.&mt('Domain').': '.$coursedom.(' 'x8). |
&Apache::loncommon::syllabuswrapper('Syllabus',$coursedir,$coursedom); |
&Apache::loncommon::syllabuswrapper(&mt('Syllabus'),$coursedir,$coursedom); |
$sortkey.="\0".$coursedata{'description'}; |
$sortkey.="\0".$coursedata{'description'}; |
$class=$coursedata{'type'}; |
$class=$coursedata{'type'}; |
} else { |
} else { |
Line 1421 sub personal_data_display {
|
Line 1421 sub personal_data_display {
|
'lastname' => "Last Name", |
'lastname' => "Last Name", |
'generation' => "Generation", |
'generation' => "Generation", |
'permanentemail' => "Permanent e-mail address", |
'permanentemail' => "Permanent e-mail address", |
'id' => "ID/Student Number", |
'id' => "Student/Employee ID", |
'lg' => "Login Data" |
'lg' => "Login Data" |
); |
); |
my %textboxsize = ( |
my %textboxsize = ( |
Line 1847 sub update_user_data {
|
Line 1847 sub update_user_data {
|
$env{'form.c'.$item} = $userenv{$item}; |
$env{'form.c'.$item} = $userenv{$item}; |
} |
} |
} |
} |
# Check to see if we can change the ID/student number |
# Check to see if we can change the Student/Employee ID |
my $forceid = $env{'form.forceid'}; |
my $forceid = $env{'form.forceid'}; |
my $recurseid = $env{'form.recurseid'}; |
my $recurseid = $env{'form.recurseid'}; |
my (%alerts,%rulematch,%idinst_results,%curr_rules,%got_rules); |
my (%alerts,%rulematch,%idinst_results,%curr_rules,%got_rules); |
Line 1858 sub update_user_data {
|
Line 1858 sub update_user_data {
|
(!$forceid)) { |
(!$forceid)) { |
if ($env{'form.cid'} ne $uidhash{$env{'form.ccuname'}}) { |
if ($env{'form.cid'} ne $uidhash{$env{'form.ccuname'}}) { |
$env{'form.cid'} = $userenv{'id'}; |
$env{'form.cid'} = $userenv{'id'}; |
$no_forceid_alert = &mt('New student/employeeID does not match existing ID for this user.').'<br />'.&mt('Change is not permitted without checking the \'Force ID change\' checkbox on the previous page.').'<br />'."\n"; |
$no_forceid_alert = &mt('New Student/Employee ID does not match existing ID for this user.') |
|
.'<br />' |
|
.&mt("Change is not permitted without checking the 'Force ID change' checkbox on the previous page.") |
|
.'<br />'."\n"; |
} |
} |
} |
} |
if ($env{'form.cid'} ne $userenv{'id'}) { |
if ($env{'form.cid'} ne $userenv{'id'}) { |
Line 1972 sub update_user_data {
|
Line 1975 sub update_user_data {
|
'mddl' => "middle", |
'mddl' => "middle", |
'lst' => "last", |
'lst' => "last", |
'gen' => "generation", |
'gen' => "generation", |
'id' => "ID/Student number", |
'id' => "Student/Employee ID", |
'mail' => "permanent e-mail", |
'mail' => "permanent e-mail", |
'disk' => "disk space allocated to portfolio files", |
'disk' => "disk space allocated to portfolio files", |
'prvs' => "Previous", |
'prvs' => "Previous", |
Line 2055 END
|
Line 2058 END
|
# They did not want to change the users name or quota but we can |
# They did not want to change the users name or quota but we can |
# still tell them what the name and quota are |
# still tell them what the name and quota are |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'id' => "ID/Student number", |
'id' => "Student/Employee ID", |
'mail' => "Permanent e-mail", |
'mail' => "Permanent e-mail", |
'disk' => "Disk space allocated to user's portfolio files", |
'disk' => "Disk space allocated to user's portfolio files", |
); |
); |
Line 2098 END
|
Line 2101 END
|
$r->print('<span class="LC_cusr_emph">'.$rolestr.'</span><br />'. |
$r->print('<span class="LC_cusr_emph">'.$rolestr.'</span><br />'. |
&mt('Contact your <a href="[_1]">helpdesk</a> for more information.',"javascript:helpMenu('display')").'<br />'); |
&mt('Contact your <a href="[_1]">helpdesk</a> for more information.',"javascript:helpMenu('display')").'<br />'); |
} |
} |
$r->print($no_forceid_alert. |
$r->print('<span class="LC_warning">' |
&Apache::lonuserutils::print_namespacing_alerts($env{'form.ccdomain'},\%alerts,\%curr_rules)); |
.$no_forceid_alert |
|
.&Apache::lonuserutils::print_namespacing_alerts($env{'form.ccdomain'},\%alerts,\%curr_rules) |
|
.'</span>'); |
} |
} |
if ($env{'form.action'} eq 'singlestudent') { |
if ($env{'form.action'} eq 'singlestudent') { |
&enroll_single_student($r,$uhome,$amode,$genpwd,$now,$newuser,$context); |
&enroll_single_student($r,$uhome,$amode,$genpwd,$now,$newuser,$context); |