Esempio n. 1
0
 } 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\">&nbsp;<a href=\"aliveinyear.php?year={$year}&amp;alpha=" . $alpha . "&amp;surname_sublist={$surname_sublist}&amp;surname=" . urlencode($namecount["name"]) . "\">&nbsp;" . PrintReady($namecount["name"]) . getRLM() . " - [" . $namecount["match"] . "]" . getRLM();
     } else {
         if (substr($namecount["name"], 0, 5) == "@N.N.") {
             print "<div class =\"ltr\" dir=\"ltr\">&nbsp;<a href=\"aliveinyear.php?year={$year}&amp;alpha=" . $namecount["alpha"] . "&amp;surname_sublist={$surname_sublist}&amp;surname=@N.N.\">&nbsp;" . $pgv_lang["NN"] . getLRM() . " - [" . $namecount["match"] . "]" . getLRM() . "&nbsp;";
         } else {
             print "<div class =\"ltr\" dir=\"ltr\">&nbsp;<a href=\"aliveinyear.php?year={$year}&amp;alpha=" . $alpha . "&amp;surname_sublist={$surname_sublist}&amp;surname=" . urlencode($namecount["name"]) . "\">" . PrintReady($namecount["name"]) . getLRM() . " - [" . $namecount["match"] . "]" . getLRM();
         }
     }
     print "</a>&nbsp;</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;
 }