diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2011-11-13 20:02:44 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2011-11-13 20:02:44 +0000 |
| commit | 9828166c41c833c35073edb8342b2b2a883d004f (patch) | |
| tree | 8ac67f86df14f3d761d4c1012d746ba5cf65138f /includes | |
| parent | 64c4fb873399640a36b20a1dbd10a7f86b043f7c (diff) | |
| download | webtrees-9828166c41c833c35073edb8342b2b2a883d004f.tar.gz webtrees-9828166c41c833c35073edb8342b2b2a883d004f.tar.bz2 webtrees-9828166c41c833c35073edb8342b2b2a883d004f.zip | |
Top surnames block - chnages per forum discussion; and add styles to all themes
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/functions/functions_print_lists.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index 235529e205..0820d22481 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -1205,7 +1205,8 @@ function format_surname_table($surnames, $type) { "aaSorting": [], "aoColumns": [ /* 0 name */ {}, - /* 1 count */ {"sClass": "center"} + /* 1 count */ {"sClass": "center"}, + /* 2 SORT */ {"bVisible": false} ], }); jQuery(".surname-list").css("visibility", "visible"); @@ -1222,6 +1223,7 @@ function format_surname_table($surnames, $type) { '<tr>'. '<th>'.WT_Gedcom_Tag::getLabel('SURN').'</th>'. '<th>'.$col_heading.'</th>'. + '<th> </th>'. '</tr>'; $tbody=''; @@ -1264,20 +1266,25 @@ function format_surname_table($surnames, $type) { // Single surname variant foreach ($surns as $spfxsurn=>$indis) { $subtotal=count($indis); - $tbody.=WT_I18N::number($subtotal); + $tbody.= WT_I18N::number($subtotal); } } else { - // Multiple surname variants, e.g. von Groot, van Groot, van der Groot, etc. $subtotal=0; + // Multiple surname variants, e.g. von Groot, van Groot, van der Groot, etc. foreach ($surns as $spfxsurn=>$indis) { $subtotal+=count($indis); $tbody.=WT_I18N::number(count($indis)).'<br />'; } $tbody.=WT_I18N::number($subtotal); } - $tbody.='</td></tr>'; + $tbody.='</td>'; + // add hidden numeric sort column + $tbody.='<td>'. $subtotal. '</td></tr>'; } + + + // $tfoot= // '<tr>'. // '<td class="list_item"> </td>'. |
