X-Git-Url: https://git.jankratochvil.net/?p=kewensis.git;a=blobdiff_plain;f=index.php;fp=index.php;h=14f1ff38267d800fd8428aa1d2cf8429ae45d370;hp=0000000000000000000000000000000000000000;hb=cc9a120fa1095fe32c186606799e005456fccb54;hpb=e332ad4bfdbfe8d2764271bdb52e15cb0d8c5c18
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..14f1ff3
--- /dev/null
+++ b/index.php
@@ -0,0 +1,74 @@
+
+
+".htmlspecialchars($row[$field])."";
+}
+
+ $family_num=0;
+ while (($family_row=mysql_fetch_array($families))) {
+ if ($family_num)
+ print "
\n";
+ $family_id=$family_row["family_id"];
+ $result=db_query("select id,name,Publication,Notes,html from $tb_tree"
+ ." where family_id=\"$family_id\""
+ ." order by family_id,family_order");
+ $order=0;
+ while (($row=mysql_fetch_array($result))) {
+ if ($order==0)
+ print "";
+ elseif ($order==1)
+ print "
";
+ if ($order>=1)
+ print "- ";
+
+ print(fieldquote("","name","name")
+ .fieldquote("\n","Publ. Author","author")
+ .fieldquote("
\n","Publication","publication")
+ .fieldquote("
\n","Notes","notes")
+ );
+ if (isset($row["html"])) {
+ $import="import: [".$row["id"]."]";
+ $html=eregi_replace("< */? *a( [^>]*)?>","",$row["html"]);
+ print("
\n\n".$html."\n
");
+ }
+ print("\n");
+
+ if ($order==0)
+ print "";
+ else
+ print " ";
+ print "\n";
+ $order++;
+ }
+ if ($order>=2)
+ print "
\n";
+ $family_num++;
+ }
+ mysql_free_result($result);
+
+ footer(false /* delimit */);
+?>