version 1.42, 2008/09/23 13:14:32
|
version 1.44, 2008/09/23 20:31:09
|
Line 398 sub cat_header {
|
Line 398 sub cat_header {
|
|
|
sub category_breadcrumbs { |
sub category_breadcrumbs { |
my ($dom,@cats) = @_; |
my ($dom,@cats) = @_; |
|
my $crumbsymbol = ' ▶ '; |
my ($currdepth,$deeper) = &get_depth_values(); |
my ($currdepth,$deeper) = &get_depth_values(); |
my $currcat_str = '<input type="hidden" name="catalog_maxdepth" value="'.$deeper.'" /><input type="hidden" name="showdom" value="'.$dom.'" />'; |
my $currcat_str = '<input type="hidden" name="catalog_maxdepth" value="'.$deeper.'" /><input type="hidden" name="showdom" value="'.$dom.'" />'; |
my $catlinks = '<td valign="top"><b>'.&mt('Catalog:').'</b></td><td><table><tr>'; |
my $catlinks = '<td valign="top"><b>'.&mt('Catalog:').'</b></td><td><table><tr>'; |
Line 412 sub category_breadcrumbs {
|
Line 413 sub category_breadcrumbs {
|
my ($cat,$container,$depth) = map { &unescape($_); } split(/:/,$env{'form.currcat_'.$shallower}); |
my ($cat,$container,$depth) = map { &unescape($_); } split(/:/,$env{'form.currcat_'.$shallower}); |
$cattitle = $cat; |
$cattitle = $cat; |
} |
} |
$catlinks .= '<td valign="top"><a href="javascript:setCatDepth('."'$shallower'".')">'.$cattitle.'</a>-></td>'; |
$catlinks .= '<td valign="top"><a href="javascript:setCatDepth('."'$shallower'".')">'.$cattitle.'</a>'.$crumbsymbol.'</td>'; |
} |
} |
if ($deeper == 0) { |
if ($deeper == 0) { |
$catlinks .= '<td>'.&mt('Main Categories').': '; |
$catlinks .= '<td>'.&mt('Main Categories').': '; |
Line 1019 sub count_students {
|
Line 1020 sub count_students {
|
$student_count{$data->[$idx{'status'}]} ++; |
$student_count{$data->[$idx{'status'}]} ++; |
} |
} |
|
|
my $countslist = &mt('[quant,_1,section]',$numsec).':<br />'; |
my $countslist = &mt('[quant,_1,section:,sections:,No sections]',$numsec).'<br />'; |
foreach my $status ('Active','Future') { |
foreach my $status ('Active','Future') { |
$countslist .= '<nobr>'.$status_title{$status}.': '. |
$countslist .= '<span class="LC_nobreak">'.$status_title{$status}.': '. |
$student_count{$status}.'</nobr><br />'; |
$student_count{$status}.'</span><br />'; |
} |
} |
return $countslist; |
return $countslist; |
} |
} |