<?php
/* Smarty version 3.1.34-dev-7, created on 2022-12-08 09:08:21
  from '/var/www/html/users/ba/marbach_hul/admin/layout/templates/editlayout/sight_search.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.34-dev-7',
  'unifunc' => 'content_63919b754360e7_80624628',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '27fa3103512fa468977c569d032fd897147a56c0' => 
    array (
      0 => '/var/www/html/users/ba/marbach_hul/admin/layout/templates/editlayout/sight_search.html',
      1 => 1668502389,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_63919b754360e7_80624628 (Smarty_Internal_Template $_smarty_tpl) {
?><h3>Suche nach Sichten</h3>

<div class="sightsearch center">
  <form action="<?php echo $_smarty_tpl->tpl_vars['selflink']->value;?>
" method="post">
    <b>Suchbegriff</b>: <input type="text" id="searchword" name="sightsearch_searchword" value="<?php echo $_smarty_tpl->tpl_vars['searchword']->value;?>
" />
    <input type="submit" name="sightsearch_start" value="Suche" />
    <div class="detail">
      Gesucht wird im Titel und im Inhalt einer Sicht.
    </div>
  </form>
</div>


<?php if ($_smarty_tpl->tpl_vars['start']->value == 1) {?>

<h3>Suchergebnis:</h3>

  <?php if ($_smarty_tpl->tpl_vars['count']->value > 0) {?>
  <p>
  Es wurden <b><?php echo $_smarty_tpl->tpl_vars['count']->value;?>
</b> Sichten gefunden.
  </p>
  
  <table width="100%">
    <tr>
      <th>Nr.</th>
      <th>Bezeichnung</th>
      <th>Menüpunkt</th></tr>
  <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['sights']->value, 'sight');
$_smarty_tpl->tpl_vars['sight']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['sight']->value) {
$_smarty_tpl->tpl_vars['sight']->do_else = false;
?>
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['sight']->value['id'];?>
</td>
      <td><a href="<?php echo $_smarty_tpl->tpl_vars['sight']->value['link'];?>
" title="Sicht anzeigen" class="ajaxlink" onclick="linkToSightClicked(event, $(this))"><?php echo $_smarty_tpl->tpl_vars['sight']->value['title'];?>
</a></td>
      <td><?php echo $_smarty_tpl->tpl_vars['sight']->value['menu'];?>
</td></tr>
  <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
  </table>
  <?php } else { ?>
    Bei der Suche nach "<b><?php echo $_smarty_tpl->tpl_vars['searchword']->value;?>
</b>" wurden keine passenden Sichten gefunden.
  <?php }?>

<?php }
}
}
