File "bc731e5d32d5f461560736d4577981b17553da2e_0.file.admin-beacons.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/bc731e5d32d5f461560736d4577981b17553da2e_0.file.admin-beacons.tmpl.php
File size: 5.28 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/* Smarty version 3.1.29, created on 2024-03-11 10:58:54
  from "/srv/www/www.cadoro.it/src/templates/admin-beacons.tmpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_65eed5de356936_96588043',
  'file_dependency' => 
  array (
    'bc731e5d32d5f461560736d4577981b17553da2e' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/admin-beacons.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:layout-admin.tmpl' => 1,
    'file:admin-pagination.tmpl' => 1,
  ),
),false)) {
function content_65eed5de356936_96588043 ($_smarty_tpl) {
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>

<html>
  <body>
    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "breadcrumbs", array (
  0 => 'block_44016921265eed5de343961_64333027',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
  0 => 'block_38455193665eed5de345397_55884670',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

  </body>
</html>
<?php $_smarty_tpl->ext->_inheritance->endChild($_smarty_tpl);
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:layout-admin.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 2, false);
}
/* {block 'breadcrumbs'}  file:admin-beacons.tmpl */
function block_44016921265eed5de343961_64333027($_smarty_tpl, $_blockParentStack) {
?>

    <div class="breadcrumbs">
      <strong>iBeacon</strong>
    </div>
    <?php
}
/* {/block 'breadcrumbs'} */
/* {block 'content'}  file:admin-beacons.tmpl */
function block_38455193665eed5de345397_55884670($_smarty_tpl, $_blockParentStack) {
?>

    <div class="sheet">
      <div class="sheet-header">
        <h1>
          iBeacon
          <small>Gestione dei dispositivi iBeacon da associare all'app</small>
        </h1>
      </div>
      <div class="sheet-body">
        <form method="get" action="" class="form-search well">
          <div class="row">
            <div class="col-sm-12">
              <input type="text" name="q" class="form-control searchquery" value="<?php echo _fr('q');?>
" data-behaviour="autofocus" autocomplete="off">
            </div>
          </div>
          <button type="submit" class="btn btn-default">Cerca</button>
          <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/beacons/add" class="btn btn-primary pull-right"><i class="glyphicon glyphicon-plus"></i> Nuovo elemento</a>
        </form>
        <div class="table-responsive">
          <table class="table table-bordered table-striped">
            <thead>
              <tr>
                <th style="width: 90px;">ID</th>
                <th>Nome</th>
                <th>UUID</th>
                <th>Identifier</th>
                <th>Major</th>
                <th>Minor</th>
                <th style="width: 180px;">Azioni</th>
              </tr>
            </thead>
            <tbody>
              <?php
$_from = $_smarty_tpl->tpl_vars['beacons']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_beacon_0_saved_item = isset($_smarty_tpl->tpl_vars['beacon']) ? $_smarty_tpl->tpl_vars['beacon'] : false;
$_smarty_tpl->tpl_vars['beacon'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['beacon']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['beacon']->value) {
$_smarty_tpl->tpl_vars['beacon']->_loop = true;
$__foreach_beacon_0_saved_local_item = $_smarty_tpl->tpl_vars['beacon'];
?>
              <tr>
                <td><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/beacons/<?php echo $_smarty_tpl->tpl_vars['beacon']->value['id'];?>
">#<?php echo $_smarty_tpl->tpl_vars['beacon']->value['id'];?>
</a></td>
                <td><?php echo $_smarty_tpl->tpl_vars['beacon']->value['name'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['beacon']->value['uuid'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['beacon']->value['identifier'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['beacon']->value['major'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['beacon']->value['minor'];?>
</td>
                <td>
                  <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/beacons/<?php echo $_smarty_tpl->tpl_vars['beacon']->value['id'];?>
/edit" class="btn btn-default btn-xs">MODIFICA</a>
                  <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/beacons/<?php echo $_smarty_tpl->tpl_vars['beacon']->value['id'];?>
/delete" class="btn btn-default btn-xs btn-danger">ELIMINA</a>
                </td>
              </tr>
              <?php
$_smarty_tpl->tpl_vars['beacon'] = $__foreach_beacon_0_saved_local_item;
}
if ($__foreach_beacon_0_saved_item) {
$_smarty_tpl->tpl_vars['beacon'] = $__foreach_beacon_0_saved_item;
}
?>
            </tbody>
          </table>
        </div>
        <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:admin-pagination.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

      </div>
    </div>
    <?php
}
/* {/block 'content'} */
}