<?php
/* Smarty version 3.1.48, created on 2023-11-21 11:43:30
  from '/var/www/html/users/ba/lazbw/admin/layout/templates/editlayout/sight_search.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.48',
  'unifunc' => 'content_655c89d23a5fc6_10117790',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '78c80d4c1219c11b04ab788aafcfa58df42bc076' => 
    array (
      0 => '/var/www/html/users/ba/lazbw/admin/layout/templates/editlayout/sight_search.html',
      1 => 1700030085,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_655c89d23a5fc6_10117790 (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" 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 }
}
}
