1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2dd6b2bfcSGreg Roach 3dd6b2bfcSGreg Roach<h2 class="wt-page-title"> 4dd6b2bfcSGreg Roach <?= $title ?> 5dd6b2bfcSGreg Roach</h2> 6dd6b2bfcSGreg Roach 7dd6b2bfcSGreg Roach<form class="wt-page-options wt-page-options-ancestors-chart hidden-print mb-4" name="searchform"> 8dd6b2bfcSGreg Roach <input type="hidden" name="route" value="search-phonetic"> 9*aa6f03bbSGreg Roach <input type="hidden" name="ged" value="<?= e($tree->name()) ?>"> 10dd6b2bfcSGreg Roach <div class="row form-group"> 11dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="firstname"> 12dd6b2bfcSGreg Roach <?= I18N::translate('Given name') ?> 13dd6b2bfcSGreg Roach </label> 14dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 15dd6b2bfcSGreg Roach <div class="input-group input-group-sm"> 16dd6b2bfcSGreg Roach <input class= "form-control form-control-sm" type="text" name="firstname" id="firstname" value="<?= e($firstname) ?>" autofocus> 17dd6b2bfcSGreg Roach <?= view('edit/input-addon-keyboard', ['id' => 'firstname']) ?> 18dd6b2bfcSGreg Roach </div> 19dd6b2bfcSGreg Roach </div> 20dd6b2bfcSGreg Roach </div> 21dd6b2bfcSGreg Roach 22dd6b2bfcSGreg Roach <div class="row form-group"> 23dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="lastname"> 24dd6b2bfcSGreg Roach <?= I18N::translate('Surname') ?> 25dd6b2bfcSGreg Roach </label> 26dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 27dd6b2bfcSGreg Roach <div class="input-group input-group-sm"> 28dd6b2bfcSGreg Roach <input class="form-control form-control-sm" type="text" name="lastname" id="lastname" value="<?= e($lastname) ?>"> 29dd6b2bfcSGreg Roach <?= view('edit/input-addon-keyboard', ['id' => 'lastname']) ?> 30dd6b2bfcSGreg Roach </div> 31dd6b2bfcSGreg Roach </div> 32dd6b2bfcSGreg Roach </div> 33dd6b2bfcSGreg Roach 34dd6b2bfcSGreg Roach <div class="row form-group"> 35dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="place"> 36dd6b2bfcSGreg Roach <?= I18N::translate('Place') ?> 37dd6b2bfcSGreg Roach </label> 38dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 39dd6b2bfcSGreg Roach <input class="form-control form-control-sm" type="text" name="place" id="place" value="<?= e($place) ?>"> 40dd6b2bfcSGreg Roach </div> 41dd6b2bfcSGreg Roach </div> 42dd6b2bfcSGreg Roach 43dd6b2bfcSGreg Roach <fieldset class="form-group"> 44dd6b2bfcSGreg Roach <div class="row"> 45dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label"> 46dd6b2bfcSGreg Roach <?= I18N::translate('Phonetic algorithm') ?> 47dd6b2bfcSGreg Roach </label> 48dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 49dd6b2bfcSGreg Roach <div class="form-check form-check-inline"> 50dd6b2bfcSGreg Roach <label class="form-check-label"> 51dd6b2bfcSGreg Roach <input class="form-check-input" type="radio" name="soundex" value="Russell" <?= $soundex === 'Russell' ? 'checked' : '' ?>> 52dd6b2bfcSGreg Roach <?= I18N::translate('Russell') ?> 53dd6b2bfcSGreg Roach </label> 54dd6b2bfcSGreg Roach </div> 55dd6b2bfcSGreg Roach <div class="form-check form-check-inline"> 56dd6b2bfcSGreg Roach <label class="form-check-label"> 57dd6b2bfcSGreg Roach <input class="form-check-input" type="radio" name="soundex" value="DaitchM" <?= $soundex === 'DaitchM' ? 'checked' : '' ?>> 58dd6b2bfcSGreg Roach <?= I18N::translate('Daitch-Mokotoff') ?> 59dd6b2bfcSGreg Roach </label> 60dd6b2bfcSGreg Roach </div> 61dd6b2bfcSGreg Roach </div> 62dd6b2bfcSGreg Roach </div> 63dd6b2bfcSGreg Roach </fieldset> 64dd6b2bfcSGreg Roach 65dd6b2bfcSGreg Roach <?php if (count($all_trees) > 1) : ?> 66dd6b2bfcSGreg Roach <fieldset class="form-group"> 67dd6b2bfcSGreg Roach <div class="row"> 68dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label"> 69dd6b2bfcSGreg Roach <?= I18N::translate('Family trees') ?> 70dd6b2bfcSGreg Roach </label> 71dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value pt-2"> 72dd6b2bfcSGreg Roach <div class="d-flex justify-content-between"> 73dd6b2bfcSGreg Roach <div id="search-trees" class="form-check"> 74dd6b2bfcSGreg Roach <?php foreach ($all_trees as $tree) : ?> 75dd6b2bfcSGreg Roach <div class="col px-0"> 76dd6b2bfcSGreg Roach <label class="form-check-label"> 77*aa6f03bbSGreg Roach <input class="form-check form-check-input" type="checkbox" <?= in_array($tree, $search_trees) ? 'checked' : '' ?> value="<?= $tree->name() ?>" name="search_trees[]"> 78dd6b2bfcSGreg Roach <?= e($tree->getTitle()) ?> 79dd6b2bfcSGreg Roach </label> 80dd6b2bfcSGreg Roach </div> 81dd6b2bfcSGreg Roach <?php endforeach ?> 82dd6b2bfcSGreg Roach </div> 83dd6b2bfcSGreg Roach <?php if (count($all_trees) > 3) : ?> 84dd6b2bfcSGreg Roach <div class="d-row align-self-end mb-2"> 85dd6b2bfcSGreg Roach <input type="button" class="btn btn-sm btn-secondary mx-1" value="<?= /* I18N: select all (of the family trees) */ I18N::translate('select all') ?>" onclick="$('#search-trees :checkbox').each(function(){$(this).attr('checked', true);});return false;"> 86dd6b2bfcSGreg Roach <input type="button" class="btn btn-sm btn-secondary mx-1" value="<?= /* I18N: select none (of the family trees) */ I18N::translate('select none') ?>" onclick="$('#search-trees :checkbox').each(function(){$(this).attr('checked', false);});return false;"> 87dd6b2bfcSGreg Roach <?php if (count($all_trees) > 10) : ?> 88dd6b2bfcSGreg Roach <input type="button" value="<?= I18N::translate('invert selection') ?>" onclick="$('#search-trees :checkbox').each(function(){$(this).attr('checked', !$(this).attr('checked'));});return false;"> 89dd6b2bfcSGreg Roach <?php endif ?> 90dd6b2bfcSGreg Roach </div> 91dd6b2bfcSGreg Roach <?php endif ?> 92dd6b2bfcSGreg Roach </div> 93dd6b2bfcSGreg Roach </div> 94dd6b2bfcSGreg Roach </div> 95dd6b2bfcSGreg Roach </fieldset> 96dd6b2bfcSGreg Roach <?php endif ?> 97dd6b2bfcSGreg Roach 98dd6b2bfcSGreg Roach <div class="row form-group"> 99dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label"></label> 100dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 101dd6b2bfcSGreg Roach <input type="submit" class="btn btn-primary" value="<?= /* I18N: A button label. */ I18N::translate('search') ?>"> 102dd6b2bfcSGreg Roach </div> 103dd6b2bfcSGreg Roach </div> 104dd6b2bfcSGreg Roach</form> 105dd6b2bfcSGreg Roach 106dd6b2bfcSGreg Roach<?php if ($firstname !== '' || $lastname !== '' || $place !== '') : ?> 107dd6b2bfcSGreg Roach <?php if (empty($individuals)) : ?> 108dd6b2bfcSGreg Roach <div class="alert alert-info row"> 109dd6b2bfcSGreg Roach <?= I18N::translate('No results found.') ?> 110dd6b2bfcSGreg Roach </div> 111dd6b2bfcSGreg Roach <?php else : ?> 112dd6b2bfcSGreg Roach <?= view('search-results', ['individuals' => $individuals, 'search_families' => false, 'search_individuals' => true, 'search_notes' => false, 'search_sources' => false, 'search_repositories' => false]) ?> 113dd6b2bfcSGreg Roach <?php endif ?> 114dd6b2bfcSGreg Roach<?php endif ?> 115dd6b2bfcSGreg Roach 116dd6b2bfcSGreg Roach<?= view('modals/on-screen-keyboard') ?> 117