} echo ' <input type="radio" name="pers_sexe" value=""' . $selected . '> ?'; echo '</td><td>'; if (!isset($_GET['add_person'])) { // *** Calculate and show nr. of sources *** $connect_qry = "SELECT * FROM humo_connections\n\t\t\t\tWHERE connect_tree_id='" . $tree_id . "'\n\t\t\t\tAND connect_sub_kind='pers_sexe_source' AND connect_connect_id='" . $pers_gedcomnumber . "'"; $connect_sql = $dbh->query($connect_qry); echo " <a href=\"#\" onClick=\"window.open('index.php?page=editor_sources&connect_sub_kind=pers_sexe_source', '','width=800,height=500')\">" . __('source'); echo ' [' . $connect_sql->rowCount() . ']</a>'; } echo '</td></tr>'; // *** Birth *** echo '<tr class="humo_color"><td><a href="#" onclick="hideShow(2);"><span id="hideshowlink2">' . __('[+]') . '</span></a> '; echo ucfirst(__('born')) . '</td>'; echo '<td style="border-right:0px;">' . __('date') . '</td>'; echo '<td style="border-left:0px;">' . $editor_cls->date_show($pers_birth_date, 'pers_birth_date') . ' '; echo __('place') . ' <input type="text" name="pers_birth_place" placeholder="' . ucfirst(__('place')) . '" value="' . htmlspecialchars($pers_birth_place) . '" size="' . $field_place . '">'; // *** Auto complete doesn't work properly yet... *** //echo __('place').' <input list="place_auto_complete" name="pers_birth_place" placeholder="'.ucfirst(__('place')).'" value="'.htmlspecialchars($pers_birth_place).'" size="'.$field_place.'">'; //WORKS: //echo '<input type="button" onClick=window.open("index.php?page=editor_place_select","","width=400,height=500,top=100,left=100,scrollbars=yes"); // value="'.__('Search').'">'; echo '<a href="javascript:;" onClick=window.open("index.php?page=editor_place_select&place_item=birth","","width=400,height=500,top=100,left=100,scrollbars=yes");><img src="../images/search.png" border="0"></a>'; echo '</td>'; // *** Source by birth *** echo '<td>'; if (!isset($_GET['add_person'])) { // *** Calculate and show nr. of sources *** $connect_qry = "SELECT *\n\t\t\t\tFROM humo_connections WHERE connect_tree_id='" . $tree_id . "'\n\t\t\t\tAND connect_sub_kind='pers_birth_source' AND connect_connect_id='" . $pers_gedcomnumber . "'"; $connect_sql = $dbh->query($connect_qry); echo " <a href=\"#\" onClick=\"window.open('index.php?page=editor_sources&connect_sub_kind=pers_birth_source', '','width=800,height=500')\">" . __('source');