} else { if ($count > 18) { $col = 3; } else { if ($count > 6) { $col = 2; } } } $newcol = ceil($count / $col); print "<td class=\"list_label\" colspan=\"{$col}\">"; print $TableTitle; print "</td></tr><tr>\n"; print "<td class=\"list_value\" style=\"padding: 14px;\">\n"; foreach ($surnames as $surname => $namecount) { if (begRTLText($namecount["name"])) { print "<div class =\"rtl\" dir=\"rtl\"> <a href=\"aliveinyear.php?year={$year}&alpha=" . $alpha . "&surname_sublist={$surname_sublist}&surname=" . urlencode($namecount["name"]) . "\"> " . PrintReady($namecount["name"]) . getRLM() . " - [" . $namecount["match"] . "]" . getRLM(); } else { if (substr($namecount["name"], 0, 5) == "@N.N.") { print "<div class =\"ltr\" dir=\"ltr\"> <a href=\"aliveinyear.php?year={$year}&alpha=" . $namecount["alpha"] . "&surname_sublist={$surname_sublist}&surname=@N.N.\"> " . $pgv_lang["NN"] . getLRM() . " - [" . $namecount["match"] . "]" . getLRM() . " "; } else { print "<div class =\"ltr\" dir=\"ltr\"> <a href=\"aliveinyear.php?year={$year}&alpha=" . $alpha . "&surname_sublist={$surname_sublist}&surname=" . urlencode($namecount["name"]) . "\">" . PrintReady($namecount["name"]) . getLRM() . " - [" . $namecount["match"] . "]" . getLRM(); } } print "</a> </div>\n"; $count_indi += $namecount["match"]; $i++; if ($i == $newcol && $i < $count) { print "</td><td class=\"list_value\" style=\"padding: 14px;\">\n"; $newcol = $i + ceil($count / $col); }
function format_list($tag = 'li', $find = false, $name = null) { global $SHOW_ID_NUMBERS; if (is_null($name)) { $name = $tag == 'li' ? $this->getListName() : $this->getFullName(); } $dir = begRTLText($name) ? 'rtl' : 'ltr'; if ($find) { $href = 'javascript:;" onclick="pasteid(\'' . $this->getXref() . '\', \'' . htmlspecialchars(strip_tags($this->getFullName()), ENT_QUOTES) . '\'); return false;'; } else { $href = encode_url($this->getLinkUrl()); } $html = '<a href="' . $href . '" class="list_item"><b>' . PrintReady($name) . '</b>'; if ($SHOW_ID_NUMBERS) { $html .= ' ' . PGV_LPARENS . $this->getXref() . PGV_RPARENS; } $html .= $this->format_list_details(); $html = '<' . $tag . ' class="' . $dir . '" dir="' . $dir . '">' . $html . '</a></' . $tag . '>'; return $html; }