version 1.389, 2014/02/10 18:39:29
|
version 1.390, 2014/02/11 17:34:41
|
Line 126 sub user_quotas {
|
Line 126 sub user_quotas {
|
my ($ccuname,$ccdomain) = @_; |
my ($ccuname,$ccdomain) = @_; |
my %lt = &Apache::lonlocal::texthash( |
my %lt = &Apache::lonlocal::texthash( |
'usrt' => "User Tools", |
'usrt' => "User Tools", |
'cuqu' => "Current quota", |
|
'cust' => "Custom quota", |
'cust' => "Custom quota", |
'defa' => "Default", |
|
'chqu' => "Change quota", |
'chqu' => "Change quota", |
); |
); |
|
|
Line 211 END_SCRIPT
|
Line 209 END_SCRIPT
|
' <td>'.$titles{$name}.'</td>'."\n". |
' <td>'.$titles{$name}.'</td>'."\n". |
' </tr>'."\n". |
' </tr>'."\n". |
&Apache::loncommon::start_data_table_row()."\n". |
&Apache::loncommon::start_data_table_row()."\n". |
' <td>'.$lt{'cuqu'}.': '. |
' <td><span class="LC_nobreak">'. |
$currquota.' MB. '. |
&mt('Current quota: [_1] MB',$currquota).'</span> '. |
$defaultinfo.'</td>'."\n". |
$defaultinfo.'</td>'."\n". |
&Apache::loncommon::end_data_table_row()."\n". |
&Apache::loncommon::end_data_table_row()."\n". |
&Apache::loncommon::start_data_table_row()."\n". |
&Apache::loncommon::start_data_table_row()."\n". |
Line 220 END_SCRIPT
|
Line 218 END_SCRIPT
|
': <label>'. |
': <label>'. |
'<input type="radio" name="custom_'.$name.'quota" id="custom_'.$name.'quota_off" '. |
'<input type="radio" name="custom_'.$name.'quota" id="custom_'.$name.'quota_off" '. |
'value="0" '.$custom_off.' onchange="javascript:quota_changes('."'custom','$name'".');"'. |
'value="0" '.$custom_off.' onchange="javascript:quota_changes('."'custom','$name'".');"'. |
' />'.$lt{'defa'}.' ('.$defquota.' MB).</label> '. |
' /><span class="LC_nobreak">'. |
|
&mt('Default ([_1] MB)',$defquota).'</span></label> '. |
' <label><input type="radio" name="custom_'.$name.'quota" id="custom_'.$name.'quota_on" '. |
' <label><input type="radio" name="custom_'.$name.'quota" id="custom_'.$name.'quota_on" '. |
'value="1" '.$custom_on.' onchange="javascript:quota_changes('."'custom','$name'".');"'. |
'value="1" '.$custom_on.' onchange="javascript:quota_changes('."'custom','$name'".');"'. |
' />'.$lt{'cust'}.':</label> '. |
' />'.$lt{'cust'}.':</label> '. |
'<input type="text" name="'.$name.'quota" id="'.$name.'quota" size ="5" '. |
'<input type="text" name="'.$name.'quota" id="'.$name.'quota" size ="5" '. |
'value="'.$showquota.'" onfocus="javascript:quota_changes('."'quota','$name'".');"'. |
'value="'.$showquota.'" onfocus="javascript:quota_changes('."'quota','$name'".');"'. |
' /> MB</span></td>'."\n". |
' /> '.&mt('MB').'</span></td>'."\n". |
&Apache::loncommon::end_data_table_row()."\n"; |
&Apache::loncommon::end_data_table_row()."\n"; |
} |
} |
} |
} |
Line 2962 sub update_user_data {
|
Line 2961 sub update_user_data {
|
} |
} |
} |
} |
foreach my $name ('portfolio','author') { |
foreach my $name ('portfolio','author') { |
$oldsettings{'quota'}{$name} = $oldquota{$name}.' MB'; |
$oldsettings{'quota'}{$name} = &mt('[_1] MB',$oldquota{$name}); |
$newsettings{'quota'}{$name} = $newquota{$name}.' MB'; |
$newsettings{'quota'}{$name} = &mt('[_1] MB',$newquota{$name}); |
} |
} |
if ((keys(%namechanged) > 0) || (keys(%changed) > 0)) { |
if ((keys(%namechanged) > 0) || (keys(%changed) > 0)) { |
my ($chgresult,$namechgresult); |
my ($chgresult,$namechgresult); |