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