<?php
/* Smarty version 3.1.34-dev-7, created on 2022-12-08 11:09:55
  from '/www/htdocs/w0128aeb/gestuet-marbach.de/relaunch/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_6391b7f3da2591_56771980',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'e0a2d347afab6a5504ffd6cfa29acc174ed8b25f' => 
    array (
      0 => '/www/htdocs/w0128aeb/gestuet-marbach.de/relaunch/admin/layout/templates/editlayout/sight_search.html',
      1 => 1668502389,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6391b7f3da2591_56771980 (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 }
}
}
