Skip to content

Commit

Permalink
HuMo-genealogy 6.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
HuubMons committed Feb 17, 2024
1 parent 86c0855 commit bcaa67a
Show file tree
Hide file tree
Showing 91 changed files with 7,357 additions and 7,012 deletions.
33 changes: 1 addition & 32 deletions admin/include/editor_cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function date_show($process_date, $process_name, $multiple_rows = '', $di
$style = '';
$placeholder = '';
if ($disabled == '') {
$text = '<select class="fonts" size="1" id="' . $process_name . '_prefix' . $multiple_rows . '" name="' . $process_name . '_prefix' . $multiple_rows . '" ' . $disabled . '>';
$text = '<select size="1" id="' . $process_name . '_prefix' . $multiple_rows . '" name="' . $process_name . '_prefix' . $multiple_rows . '" ' . $disabled . '>';
$text .= '<option value="">=</option>';

$selected = '';
Expand Down Expand Up @@ -342,35 +342,4 @@ public function show_selected_person($person)
}
return ($text);
}

public function select_tree($page)
{
global $dbh, $phpself, $group_edit_trees, $group_administrator, $tree_id, $selected_language;

// *** Select family tree ***
$tree_search_sql = "SELECT * FROM humo_trees WHERE tree_prefix!='EMPTY' ORDER BY tree_order";
$tree_search_result = $dbh->query($tree_search_sql);
?>
<form method="POST" action="<?= $phpself; ?>" style="display : inline;">
<input type="hidden" name="page" value="<?= $page; ?>">
<select size="1" name="tree_id" onChange="this.form.submit();" class="form-select form-select-sm">
<option value=""><?= __('Select a family tree:'); ?></option>
<?php
while ($tree_searchDb = $tree_search_result->fetch(PDO::FETCH_OBJ)) {
$edit_tree_array = explode(";", $group_edit_trees);
// *** Administrator can always edit in all family trees ***
if ($group_administrator == 'j' or in_array($tree_searchDb->tree_id, $edit_tree_array)) {
$selected = '';
if (isset($tree_id) and $tree_searchDb->tree_id == $tree_id) {
$selected = ' selected';
}
$treetext = show_tree_text($tree_searchDb->tree_id, $selected_language);
echo '<option value="' . $tree_searchDb->tree_id . '"' . $selected . '>' . @$treetext['name'] . '</option>';
}
}
?>
</select>
</form>
<?php
}
} // *** End of editor class ***
6 changes: 3 additions & 3 deletions admin/include/editor_event_cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function show_event($event_connect_kind, $event_connect_id, $event_kind)

<!-- Help popup -->
<?php $rtlmarker = "ltr"; ?>
&nbsp;<div class="fonts <?= $rtlmarker; ?>sddm" style="display:inline;">
&nbsp;<div class="<?= $rtlmarker; ?>sddm" style="display:inline;">
<a href="#" style="display:inline" onmouseover="mopen(event,'help_event_person',0,0)" onmouseout="mclosetime()">
<img src="../images/help.png" height="16" width="16">
</a>
Expand Down Expand Up @@ -293,7 +293,7 @@ function show_event($event_connect_kind, $event_connect_id, $event_kind)

<!-- Help popup -->
<?php $rtlmarker = "ltr"; ?>
&nbsp;<div class="fonts <?= $rtlmarker; ?>sddm" style="display:inline;">
&nbsp;<div class="<?= $rtlmarker; ?>sddm" style="display:inline;">
<a href="#" style="display:inline" onmouseover="mopen(event,'help_event_family',0,0)" onmouseout="mclosetime()">
<img src="../images/help.png" height="16" width="16">
</a>
Expand Down Expand Up @@ -1105,7 +1105,7 @@ function myFunction() {

//$text.='<td style="border-left:0px;">';
echo editor_label2(__('Selected colour'));
echo ' <select class="fonts" size="1" name="text_event[' . $data_listDb->event_id . ']">';
echo ' <select size="1" name="text_event[' . $data_listDb->event_id . ']">';
echo '<option value="0">' . __('Change colour mark by person') . '</option>';
$selected = '';
if ($person_colour_mark == '1') {
Expand Down
1,701 changes: 111 additions & 1,590 deletions admin/include/editor_inc.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions admin/include/editor_media_select.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ function get_dirs($prefx, $path)
}
?>
<form method="POST" action="index.php?page=editor_media_select&form=<?= $selected_form . '&event_id=' . $event_id; ?>">
<input class="fonts" type="text" name="search_quicksearch" placeholder="<?= __('Name'); ?>" value="<?= $search_quicksearch; ?>" size="15">
<input class="fonts" type="submit" name="submit" value="<?= __('Search'); ?>">
<input type="text" name="search_quicksearch" placeholder="<?= __('Name'); ?>" value="<?= $search_quicksearch; ?>" size="15">
<input type="submit" name="submit" value="<?= __('Search'); ?>">
</form><br>
<?php

Expand Down
6 changes: 3 additions & 3 deletions admin/include/editor_person_select.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ function select_item2(pgn,ppf,pln,pfn,pbdp,pbd,pbp,pddp,pdd,pdp,psx){
if (isset($_POST['search_quicksearch_man'])) {
$search_quicksearch_man = safe_text_db($_POST['search_quicksearch_man']);
}
echo ' <input class="fonts" type="text" name="search_quicksearch_man" placeholder="' . __('Name') . '" value="' . $search_quicksearch_man . '" size="15">';
echo ' <input type="text" name="search_quicksearch_man" placeholder="' . __('Name') . '" value="' . $search_quicksearch_man . '" size="15">';

$search_man_id = '';
if (isset($_POST['search_man_id'])) $search_man_id = safe_text_db($_POST['search_man_id']);
echo __('or ID:') . ' <input class="fonts" type="text" name="search_man_id" value="' . $search_man_id . '" size="5">';
echo __('or ID:') . ' <input type="text" name="search_man_id" value="' . $search_man_id . '" size="5">';

echo ' <input class="fonts" type="submit" name="submit" value="' . __('Search') . '">';
echo ' <input type="submit" name="submit" value="' . __('Search') . '">';
echo '</form><br><br>';

if ($search_quicksearch_man != '') {
Expand Down
4 changes: 2 additions & 2 deletions admin/include/editor_place_select.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function select_item(item){
$quicksearch_place=safe_text_db($_POST['search_quicksearch_place']);
}
echo '<form method="POST" action="index.php?page=editor_place_select'.$url_add.'" style="display : inline;">';
echo '<input class="fonts" type="text" name="search_quicksearch_place" placeholder="'.__('Name').'" value="'.$quicksearch_place.'" size="15">';
echo ' <input class="fonts" type="submit" value="'.__('Search').'">';
echo '<input type="text" name="search_quicksearch_place" placeholder="'.__('Name').'" value="'.$quicksearch_place.'" size="15">';
echo ' <input type="submit" value="'.__('Search').'">';
echo '</form><br>';

$search='_%'; if ($quicksearch_place) $search='%'.$quicksearch_place.'%';
Expand Down
6 changes: 3 additions & 3 deletions admin/include/editor_relation_select.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ function select_item(item){
if (isset($_POST['search_quicksearch_parent'])) {
$search_quicksearch_parent = safe_text_db($_POST['search_quicksearch_parent']);
}
echo '<input class="fonts" type="text" name="search_quicksearch_parent" placeholder="' . __('Name') . '" value="' . $search_quicksearch_parent . '" size="15">';
echo '<input type="text" name="search_quicksearch_parent" placeholder="' . __('Name') . '" value="' . $search_quicksearch_parent . '" size="15">';

$search_person_id = '';
if (isset($_POST['search_person_id'])) $search_person_id = safe_text_db($_POST['search_person_id']);
echo ' ' . __('or ID:') . ' <input class="fonts" type="text" name="search_person_id" value="' . $search_person_id . '" size="5">';
echo ' ' . __('or ID:') . ' <input type="text" name="search_person_id" value="' . $search_person_id . '" size="5">';

echo ' <input class="fonts" type="submit" value="' . __('Search') . '">';
echo ' <input type="submit" value="' . __('Search') . '">';
echo '</form><br>';


Expand Down
6 changes: 3 additions & 3 deletions admin/include/editor_sources.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ function hideShow(el_id){
}

echo '<h3>' . __('Search existing source') . '</h3>';
echo '<input type="text" class="fonts" name="source_search_gedcomnr" value="' . $source_search_gedcomnr . '" size="20" placeholder="' . __('gedcomnumber (ID)') . '">';
echo ' <input type="text" class="fonts" name="source_search" value="' . $source_search . '" size="20" placeholder="' . __('text') . '">';
echo ' <input class="fonts" type="submit" value="' . __('Search') . '"><br>';
echo '<input type="text" name="source_search_gedcomnr" value="' . $source_search_gedcomnr . '" size="20" placeholder="' . __('gedcomnumber (ID)') . '">';
echo ' <input type="text" name="source_search" value="' . $source_search . '" size="20" placeholder="' . __('text') . '">';
echo ' <input type="submit" value="' . __('Search') . '"><br>';

// *** Source: pull-down menu ***
// TODO only get necesary items
Expand Down
2 changes: 1 addition & 1 deletion admin/include/editor_user_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
?>

<h1 align=center><?= __('Extra settings'); ?></h1>
<?php

<?php
// *** Update tree settings ***
if (isset($_POST['user_change']) and isset($_POST["id"]) and (is_numeric($_POST["id"]))) {
$user_hide_trees = '';
Expand Down
Loading

0 comments on commit bcaa67a

Please sign in to comment.