version 1.406, 2008/08/28 03:04:41
|
version 1.409, 2008/09/19 03:27:04
|
Line 2357 sub crsenv {
|
Line 2357 sub crsenv {
|
'categories' |
'categories' |
=> '<b>'.&mt('Categorize course').'</b> <a href="javascript:catsbrowser()">'. |
=> '<b>'.&mt('Categorize course').'</b> <a href="javascript:catsbrowser()">'. |
&mt('Display Categories').'</a>', |
&mt('Display Categories').'</a>', |
|
'datelocale' |
|
=> '<b>'.&mt('Locale used for course calendar').'</b>', |
); |
); |
my @Display_Order = ('url','description','courseid','cloners'); |
my @Display_Order = ('url','description','courseid','cloners'); |
(my $can_toggle_cat,$can_categorize) = &can_modify_catsettings($dom); |
(my $can_toggle_cat,$can_categorize) = &can_modify_catsettings($dom); |
Line 2380 sub crsenv {
|
Line 2382 sub crsenv {
|
'allow_discussion_post_editing', |
'allow_discussion_post_editing', |
'languages', |
'languages', |
'timezone', |
'timezone', |
|
'datelocale', |
'nothideprivileged', |
'nothideprivileged', |
'rndseed', |
'rndseed', |
'receiptalg', |
'receiptalg', |
Line 2433 sub crsenv {
|
Line 2436 sub crsenv {
|
&Apache::loncommon::select_timezone($parameter.'_value', |
&Apache::loncommon::select_timezone($parameter.'_value', |
$timezone, |
$timezone, |
$onchange,$includeempty).'</td>'; |
$onchange,$includeempty).'</td>'; |
|
} elsif ($parameter eq 'datelocale') { |
|
my $includeempty = 1; |
|
my $locale_obj = &Apache::lonlocal::getdatelocale(); |
|
my $currdatelocale; |
|
if (ref($locale_obj)) { |
|
$currdatelocale = $locale_obj->id(); |
|
} |
|
$output .= '<td>'. |
|
&Apache::loncommon::select_datelocale($parameter.'_value', |
|
$currdatelocale, |
|
$onchange,$includeempty).'</td>'; |
} elsif ($parameter eq 'categories') { |
} elsif ($parameter eq 'categories') { |
my $catdisplay; |
my $catdisplay; |
if ($values{'categories'} ne '') { |
if ($values{'categories'} ne '') { |
Line 2563 function updateCategories() {
|
Line 2577 function updateCategories() {
|
for (var i=0; i<document.chgcats.usecategory.length; i++) { |
for (var i=0; i<document.chgcats.usecategory.length; i++) { |
if (document.chgcats.usecategory[i].checked == true) { |
if (document.chgcats.usecategory[i].checked == true) { |
newcategories = newcategories + document.chgcats.usecategory[i].value + '&'; |
newcategories = newcategories + document.chgcats.usecategory[i].value + '&'; |
alert("i is "+i+" and catname is "+document.chgcats.catname[i].value); |
|
unescapedcats = unescapedcats + document.chgcats.catname[i].value + ' & '; |
unescapedcats = unescapedcats + document.chgcats.catname[i].value + ' & '; |
} |
} |
} |
} |
Line 2571 function updateCategories() {
|
Line 2584 function updateCategories() {
|
newcategories = newcategories.slice(0,-1); |
newcategories = newcategories.slice(0,-1); |
} |
} |
if (unescapedcats.length > 0) { |
if (unescapedcats.length > 0) { |
usescapedcats = unescapedcats.slice(0,-3); |
unescapedcats = unescapedcats.slice(0,-3); |
} |
} |
} else { |
} else { |
if (document.chgcats.usecategory.checked == true) { |
if (document.chgcats.usecategory.checked == true) { |