<?php
/* Smarty version 3.1.30, created on 2018-01-26 20:23:09
  from "C:\xampp\htdocs\decydownik\admin\listing.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_5a6b801d078766_34887808',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'bb25f69cc50c3d903ef39011eaa567630bddafae' => 
    array (
      0 => 'C:\\xampp\\htdocs\\decydownik\\admin\\listing.tpl',
      1 => 1515860628,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:tpl/orders.tpl' => 1,
    'file:admin/str_cp.tpl' => 1,
  ),
),false)) {
function content_5a6b801d078766_34887808 (Smarty_Internal_Template $_smarty_tpl) {
?>
    <?php $_smarty_tpl->_assignInScope('series_actions', series::actions(core::$i->mode));
?>
    <input type="hidden" name="%%JS_HELPER%%" class="orderUrl" value="<?php echo admin::$i->url;?>
?mode=<?php echo core::$i->mode;?>
" />
    <?php $_smarty_tpl->_subTemplateRender("file:tpl/orders.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

    <?php echo statement::display();?>

    <?php if ($_smarty_tpl->tpl_vars['listing']->value->filter) {?><a href="<?php echo admin::$i->url;?>
?mode=<?php echo core::$i->mode;?>
&function=<?php echo core::$i->function;?>
" class="btn btn-danger"><i class="fa fa-trash"></i> <?php echo l('Usuń filtr');?>
</a><?php }?>
    <?php if ($_smarty_tpl->tpl_vars['listing']->value->items) {?>
    <form method="post" action="<?php echo admin::$i->url;?>
">
       <input type="hidden" name="mode" value="<?php echo core::$i->mode;?>
" />
       <input type="hidden" name="function" value="series" />
       <table class="table orderTable">
            <thead>
                <tr>
                    <!--<?php if ($_smarty_tpl->tpl_vars['series_actions']->value) {?>
                    <td class="tac" style="width: 30px"><a href="javascript:;" class="orderTableSelect" state-data="unchecked"><?php echo l('Wszystko');?>
</a></td>
                    <?php }?>
                    -->
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['listing']->value->fields, 'item', false, 'key');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['item']->value) {
?>
                    <?php if (row_details::is_visibility($_smarty_tpl->tpl_vars['key']->value)) {?><td><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</td><?php }?>
                    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

                    <?php if (!listing::$i->hide_options_cell) {?><td class="tac"><?php echo l('Opcje');?>
</td><?php }?>
                </tr>
            </thead>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['listing']->value->items, 'item');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
?>
            <tbody>
                <tr>
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['item']->value['display'], 'element', false, 'key');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['element']->value) {
?>
                    <?php if (row_details::is_visibility($_smarty_tpl->tpl_vars['key']->value)) {?><td class="tac"><?php echo $_smarty_tpl->tpl_vars['element']->value;?>
</td><?php }?>
                    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

                    <?php if (!listing::$i->hide_options_cell) {?><td width="100" class="tac"><?php echo $_smarty_tpl->tpl_vars['item']->value['options']['display'];?>
</td><?php }?>
                </tr>
            </tbody>
            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

        </table>
        <div class="row p10" style="background: #fff">
            <div class="form-inline text-left" style="border-top: 1px solid #888888">
                <div class="col-md-4">
                    <?php if (series::available()) {?>
                    <div class="p10">
                        <select class="form-control" name="method" class="form-control ">
                            <option value=""><?php echo l('- wybierz -');?>
</option>
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['series_actions']->value, 'action_name', false, 'action');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['action']->value => $_smarty_tpl->tpl_vars['action_name']->value) {
?>
                            <option value="<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['action_name']->value;?>
</option>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

                        </select> <input class="btn btn-primary" type="submit" class="btn btn-primary" value="<?php echo l('Wykonaj');?>
" />
                    </div>
                    <?php }?>
                </div>
                <?php $_smarty_tpl->_subTemplateRender("file:admin/str_cp.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

            </div>
        </div>
    </form>
    
    <?php }
}
}
