?> >100</option> </select> записей <div style="display:none" id="div-quantity-params"><?php echo $this->_smarty_vars['capture']['quantity']; ?> </div> </form> </div> <div class="items-search"> <form action="" method="get" id="form-search"> Поиск: <?php ob_start(); echo smarty_function_get_params(array('prefix' => '&', 'exclude' => 'search,portion'), $this); $this->_smarty_vars['capture']['search'] = ob_get_contents(); ob_end_clean(); ?> <input type="text" name="search" id="search" value="<?php echo $_GET['search']; ?> " /><button onclick="/*alert($('#div-search-params').text()); return false;*/ document.location = $('#div-search-params').text() ? '?'+$('#form-search').serialize() + $('#div-search-params').text() : '?'+$('#form-search').serialize(); return false;">Go</button> <span class="delimiter">|</span> <div style="display:none" id="div-search-params"><?php echo $this->_smarty_vars['capture']['search']; ?> </div> </form> </div>
echo $this->_tpl_vars['item']['image']; ?> '); return false;">удалить</a> </div> </td> </tr> <?php } ?> </table> </fieldset> <div style="text-align:center; margin:10px 0;"> <input type="submit" name="submit" value="Сохранить" /> <input type="button" value="Отмена" onclick="document.location = '<?php echo $this->_tpl_vars['itemConfig']['adminScript']; echo smarty_function_get_params(array('prefix' => '?', 'exclude' => 'action,edit'), $this); ?> ';" /> </div> <input type="hidden" name="<?php echo $this->_tpl_vars['itemKey']; ?> " id="<?php echo $this->_tpl_vars['itemKey']; ?> " value="<?php echo $this->_tpl_vars['item'][$this->_tpl_vars['itemKey']]; ?> " /> </form> <p> </p>
echo $this->_tpl_vars['value'][$this->_tpl_vars['itemKey']]; ?> ); return false;">Cancel</button></span><span style="display:none;">Saving...</span></td><?php } ?> <td class="td-edit"><a href="?edit=<?php echo $this->_tpl_vars['value'][$this->_tpl_vars['itemKey']]; echo smarty_function_get_params(array('prefix' => '&'), $this); ?> "><img src="<?php echo $this->_tpl_vars['page']['admpath']; ?> img/edit.gif" alt="Редактировать" /></a></td> <td class="td-delete"><a href="?delete=<?php echo $this->_tpl_vars['value'][$this->_tpl_vars['itemKey']]; echo smarty_function_get_params(array('prefix' => '&'), $this); ?> " onclick="return DeleteItem(this, <?php echo $this->_tpl_vars['value'][$this->_tpl_vars['itemKey']]; ?> );"><img src="<?php echo $this->_tpl_vars['page']['admpath']; ?> img/delete.gif" alt="Удалить" /></a></td> </tr> <?php } } unset($_from); ?> </table>
if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } if (count($_from)) { foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']) { ?> <?php if ($this->_tpl_vars['value']['show']) { ?> <th><a href="?sort=<?php echo $this->_tpl_vars['value']['field']; if (!$_GET['order']) { ?> &order=desc<?php } echo smarty_function_get_params(array('prefix' => '&', 'exclude' => 'sort,order'), $this); ?> "><?php echo $this->_tpl_vars['value']['name']; ?> </a> <?php if ($_GET['sort'] == $this->_tpl_vars['value']['field']) { ?> <img src="<?php echo $this->_tpl_vars['page']['admpath']; ?> img/<?php if ($_GET['order']) { ?> desc<?php } else {
function content_564a0c4a666d09_14923940($_smarty_tpl) { if (!is_callable('smarty_function_get_params')) { include '/var/www/ikkf05.ru/html/includes/smarty-3.1.15/plugins/function.get_params.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/var/www/ikkf05.ru/html/includes/smarty-3.1.15/plugins/modifier.date_format.php'; } ?> <div id="itemForm"> <form action="<?php echo $_smarty_tpl->tpl_vars['itemConfig']->value['adminScript']; echo smarty_function_get_params(array('prefix' => '?', 'exclude' => 'action,edit'), $_smarty_tpl); ?> " class="form-horizontal" method="post" name="form_item" id="form_item"<?php if ($_smarty_tpl->tpl_vars['itemImageUrl']->value) { ?> enctype="multipart/form-data"<?php } ?> > <div class="panel panel-default"> <div class="panel-heading"><p class="lead" style="margin-bottom: 0;"><?php echo $_smarty_tpl->tpl_vars['itemConfig']->value['itemName']; ?> </p></div> <div class="panel-body" style="background: #f9f9f9;"> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['itemFields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <?php if ($_smarty_tpl->tpl_vars['value']->value['edit'] !== false) { ?> <?php if ($_smarty_tpl->tpl_vars['value']->value['type'] == 'text') { ?> <div class="form-group"> <label for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " class="col-lg-2 col-md-2 control-label"><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> <div class="col-lg-5 col-md-5"> <input type="text" class="form-control input-text<?php if (!$_smarty_tpl->tpl_vars['value']->value['empty']) { ?> not-empty<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']], ENT_QUOTES, 'UTF-8', true); ?> " /> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['hint'])) { ?> <div class="hint"><?php echo $_smarty_tpl->tpl_vars['value']->value['hint']; ?> </div><?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['value']->value['type'] == 'integer' || $_smarty_tpl->tpl_vars['value']->value['type'] == 'float') { ?> <div class="form-group"> <label for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " class="col-lg-2 col-md-2 control-label"><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> <div class="col-lg-5 col-md-5"> <input type="text" class="form-control input-number<?php if (!$_smarty_tpl->tpl_vars['value']->value['empty']) { ?> not-empty<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " value="<?php echo $_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; ?> " /> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['hint'])) { ?> <div class="hint"><?php echo $_smarty_tpl->tpl_vars['value']->value['hint']; ?> </div><?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['value']->value['type'] == 'array') { ?> <div class="form-group"> <label for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " class="col-lg-2 col-md-2 control-label"><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> <div class="col-lg-5 col-md-5"> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['control']) && $_smarty_tpl->tpl_vars['value']->value['control'] == "radio") { ?> <?php $_smarty_tpl->tpl_vars['value2'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value2']->_loop = false; $_smarty_tpl->tpl_vars['key2'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['arrayValues']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['value2']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['value2']->key => $_smarty_tpl->tpl_vars['value2']->value) { $_smarty_tpl->tpl_vars['value2']->_loop = true; $_smarty_tpl->tpl_vars['key2']->value = $_smarty_tpl->tpl_vars['value2']->key; $_smarty_tpl->tpl_vars['value2']->index++; $_smarty_tpl->tpl_vars['value2']->first = $_smarty_tpl->tpl_vars['value2']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_arr']['first'] = $_smarty_tpl->tpl_vars['value2']->first; ?> <?php if ($_smarty_tpl->tpl_vars['value2']->value == "NULL") { ?> <div class="radio-item"> <div class="radio-input"><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['key2']->value; ?> " value=""<?php if (!$_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']]) { ?> checked="checked"<?php } ?> /></div> <label class="radio-name" for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['key2']->value; ?> ">- нет -</label> </div> <?php } else { ?> <div class="radio-item"> <div class="radio-input"><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['key2']->value; ?> " value="<?php echo $_smarty_tpl->tpl_vars['key2']->value; ?> "<?php if ($_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']] == $_smarty_tpl->tpl_vars['key2']->value || !$_smarty_tpl->tpl_vars['item']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['f_arr']['first'] && !$_smarty_tpl->tpl_vars['value']->value['empty']) { ?> checked="checked"<?php } ?> /></div> <label class="radio-name" for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['key2']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['value2']->value; ?> </label> </div> <?php } ?> <?php } ?> <?php } else { ?> <select class="form-control input-select" name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> "> <?php $_smarty_tpl->tpl_vars['value2'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value2']->_loop = false; $_smarty_tpl->tpl_vars['key2'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['arrayValues']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value2']->key => $_smarty_tpl->tpl_vars['value2']->value) { $_smarty_tpl->tpl_vars['value2']->_loop = true; $_smarty_tpl->tpl_vars['key2']->value = $_smarty_tpl->tpl_vars['value2']->key; ?> <?php if ($_smarty_tpl->tpl_vars['value2']->value == "NULL") { ?> <option value=""></option><?php } else { ?> <option value="<?php echo $_smarty_tpl->tpl_vars['key2']->value; ?> "<?php if ($_smarty_tpl->tpl_vars['key2']->value == $_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']]) { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['value2']->value; ?> </option><?php } ?> <?php } ?> </select> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['hint'])) { ?> <div class="hint"><?php echo $_smarty_tpl->tpl_vars['value']->value['hint']; ?> </div><?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['value']->value['type'] == 'key') { ?> <div class="form-group"> <label for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " class="col-lg-2 col-md-2 control-label"><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> <div class="col-lg-5 col-md-5"> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['control']) && $_smarty_tpl->tpl_vars['value']->value['control'] == "radio") { ?> <?php if ($_smarty_tpl->tpl_vars['value']->value['empty']) { ?> <div class="radio-item"> <div class="radio-input"><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> _empty" value=""<?php if (!$_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']]) { ?> checked="checked"<?php } ?> /></div> <label class="radio-name" for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> _empty">- нет -</label> </div> <?php } ?> <?php $_smarty_tpl->tpl_vars['value2'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value2']->_loop = false; $_smarty_tpl->tpl_vars['key2'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['keyValues']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['value2']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['value2']->key => $_smarty_tpl->tpl_vars['value2']->value) { $_smarty_tpl->tpl_vars['value2']->_loop = true; $_smarty_tpl->tpl_vars['key2']->value = $_smarty_tpl->tpl_vars['value2']->key; $_smarty_tpl->tpl_vars['value2']->index++; $_smarty_tpl->tpl_vars['value2']->first = $_smarty_tpl->tpl_vars['value2']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_key']['first'] = $_smarty_tpl->tpl_vars['value2']->first; ?> <div class="radio-item"> <div class="radio-input"><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['key2']->value; ?> " value="<?php echo $_smarty_tpl->tpl_vars['value2']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; ?> "<?php if ($_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']] == $_smarty_tpl->tpl_vars['value2']->value[$_smarty_tpl->tpl_vars['value']->value['field']] || !$_smarty_tpl->tpl_vars['item']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['f_key']['first'] && !$_smarty_tpl->tpl_vars['value']->value['empty']) { ?> checked="checked"<?php } ?> /></div> <label class="radio-name" for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['key2']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['value2']->value[$_smarty_tpl->tpl_vars['value']->value['key_value']]; ?> </label> </div> <?php } ?> <?php } else { ?> <select class="form-control input-select" name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> "> <?php if ($_smarty_tpl->tpl_vars['value']->value['empty']) { ?> <option value=""></option><?php } ?> <?php $_smarty_tpl->tpl_vars['value2'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value2']->_loop = false; $_smarty_tpl->tpl_vars['key2'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['keyValues']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value2']->key => $_smarty_tpl->tpl_vars['value2']->value) { $_smarty_tpl->tpl_vars['value2']->_loop = true; $_smarty_tpl->tpl_vars['key2']->value = $_smarty_tpl->tpl_vars['value2']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['value2']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; ?> "<?php if ($_smarty_tpl->tpl_vars['value2']->value[$_smarty_tpl->tpl_vars['value']->value['field']] == $_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']]) { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['value2']->value[$_smarty_tpl->tpl_vars['value']->value['key_value']]; ?> </option> <?php } ?> </select> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['hint'])) { ?> <div class="hint"><?php echo $_smarty_tpl->tpl_vars['value']->value['hint']; ?> </div><?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['value']->value['type'] == 'textarea') { ?> <div class="form-group"> <label for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " class="col-lg-2 col-md-2 control-label"><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> <div class="col-lg-5 col-md-5"> <textarea class="form-control input-textarea<?php if (!$_smarty_tpl->tpl_vars['value']->value['empty']) { ?> not-empty<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " rows="5" cols="50"><?php echo $_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; ?> </textarea> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['hint'])) { ?> <div class="hint"><?php echo $_smarty_tpl->tpl_vars['value']->value['hint']; ?> </div><?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['value']->value['type'] == 'flag') { ?> <div class="form-group"> <label for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " class="col-lg-2 col-md-2 control-label"><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> <div class="col-lg-5 col-md-5"> <div class="checkbox-item"> <div class="checkbox-input"><input type="checkbox" class="input-flag" name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']] || !$_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['itemKey']->value] && $_smarty_tpl->tpl_vars['value']->value['default']) { ?> checked="checked" <?php } ?> /></div> <label class="checkbox-name" for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> "><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> </div> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['hint'])) { ?> <div class="hint"><?php echo $_smarty_tpl->tpl_vars['value']->value['hint']; ?> </div><?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['value']->value['type'] == 'html') { ?> <div class="form-group"> <label for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " class="col-lg-2 col-md-2 control-label"><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> <div class="col-lg-10 col-md-10"> <textarea class="input-textarea<?php if (!$_smarty_tpl->tpl_vars['value']->value['empty']) { ?> not-empty<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " rows="5" cols="50"><?php echo $_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; ?> </textarea> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['hint'])) { ?> <div class="hint"><?php echo $_smarty_tpl->tpl_vars['value']->value['hint']; ?> </div><?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['value']->value['type'] == 'date') { ?> <div class="form-group"> <label for="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " class="col-lg-2 col-md-2 control-label"><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> <div class="col-lg-5 col-md-5"> <input type="text" class="form-control input-date<?php if (!$_smarty_tpl->tpl_vars['value']->value['empty']) { ?> not-empty<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " value="<?php if ($_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']]) { echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']], '%d.%m.%Y'); if (isset($_smarty_tpl->tpl_vars['value']->value['time'])) { ?> <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['value']->value['field']], '%H:%M:%S'); } } ?> " /> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['hint'])) { ?> <div class="hint"><?php echo $_smarty_tpl->tpl_vars['value']->value['hint']; ?> </div><?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['value']->value['type'] == 'set') { ?> <div class="form-group"> <label class="col-lg-2 col-md-2 control-label"><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </label> <div class="col-lg-10 col-md-10"> <input type="hidden" class="input-set" name="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " id="<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> " /> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['control']) && $_smarty_tpl->tpl_vars['value']->value['control'] == "checkbox") { ?> <?php $_smarty_tpl->tpl_vars['item2'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item2']->_loop = false; $_from = $_smarty_tpl->tpl_vars['setValues']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item2']->key => $_smarty_tpl->tpl_vars['item2']->value) { $_smarty_tpl->tpl_vars['item2']->_loop = true; ?> <span class="set-item<?php if (isset($_smarty_tpl->tpl_vars['item2']->value['set_on']) && $_smarty_tpl->tpl_vars['item2']->value['set_on']) { ?> set-item-on<?php } ?> " title="<?php echo $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; ?> "> <input type="checkbox" name="checkbox-<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; ?> []" id="checkbox-<?php echo $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; ?> "<?php if (isset($_smarty_tpl->tpl_vars['item2']->value['set_on']) && $_smarty_tpl->tpl_vars['item2']->value['set_on']) { ?> checked="checked"<?php } ?> onchange="ToggleSetItem($(this).parent());" /> <label for="checkbox-<?php echo $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; ?> "><?php echo $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['value']->value['set_value']]; ?> </label> </span> <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['item2'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item2']->_loop = false; $_from = $_smarty_tpl->tpl_vars['setValues']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item2']->key => $_smarty_tpl->tpl_vars['item2']->value) { $_smarty_tpl->tpl_vars['item2']->_loop = true; ?> <span class="set-item<?php if (isset($_smarty_tpl->tpl_vars['item2']->value['set_on']) && $_smarty_tpl->tpl_vars['item2']->value['set_on']) { ?> set-item-on<?php } ?> " title="<?php echo $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['value']->value['field']]; ?> " onclick="ToggleSetItem(this);"><?php echo $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['value']->value['set_value']]; ?> </span> <?php } ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['value']->value['hint'])) { ?> <div class="hint"><?php echo $_smarty_tpl->tpl_vars['value']->value['hint']; ?> </div><?php } ?> </div> </div> <?php } ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['itemImageUrl']->value) { ?> <div class="form-group"> <label for="image" class="col-lg-2 col-md-2 control-label">Фото</label> <div class="col-lg-5 col-md-5"> <input type="file" class="form-control input-file" name="image" id="image" /> </div> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['item']->value['image']) && $_smarty_tpl->tpl_vars['item']->value['image']) { ?> <div class="form-group"> <div class="col-lg-offset-2 col-md-offset-2 col-lg-10 col-md-10"> <div class="thumbnail pull-left"> <a href="<?php echo $_smarty_tpl->tpl_vars['item']->value['image_path']; echo $_smarty_tpl->tpl_vars['item']->value['image']; ?> " style="display: block;" class="text-center" target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['itemConfig']->value['imagePath']; echo $_smarty_tpl->tpl_vars['item']->value['image']; ?> " alt="" /></a> <div class="caption text-center"><a class="btn btn-xs btn-danger" href="#" onclick="DeleteImage(this, '<?php echo $_smarty_tpl->tpl_vars['item']->value['image']; ?> '); return false;"><span class="glyphicon glyphicon-trash"></span> удалить фото</a></div> </div> </div> </div> <?php } ?> </div> <div class="panel-footer text-center"> <button type="submit" class="btn btn-primary" name="submit"><span class="glyphicon glyphicon-check"></span> Сохранить</button> <button class="btn btn-default" onclick="document.location = '<?php echo $_smarty_tpl->tpl_vars['itemConfig']->value['adminScript']; echo smarty_function_get_params(array('prefix' => '?', 'exclude' => 'action,edit'), $_smarty_tpl); ?> '; return false;"><span class="glyphicon glyphicon-remove"></span> Отмена</button> </div> </div> <input type="hidden" name="<?php echo $_smarty_tpl->tpl_vars['itemKey']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['itemKey']->value; ?> " value="<?php echo $_smarty_tpl->tpl_vars['item']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " /> </form> <p> </p> </div><?php }
function content_528c7dd3245d60_27170020($_smarty_tpl) { if (!is_callable('smarty_function_get_params')) { include 'D:\\OpenServer\\domains\\ikkf05\\includes\\smarty-3.1.15\\plugins\\function.get_params.php'; } ?> <div class="panel panel-default" style="background: #f9f9f9;"> <div class="row panel-body" style="padding: 7px;"> <div class="col-lg-6 col-md-5 col-sm-5 col-xs-4"> <?php if (!isset($_smarty_tpl->tpl_vars['hideAddButton']->value)) { ?> <a class="btn btn-primary btn-sm" href="?action=add<?php echo smarty_function_get_params(array('prefix' => '&', 'exclude' => 'action,edit'), $_smarty_tpl); ?> "><span class="glyphicon glyphicon-plus"></span> Добавить</a><?php } ?> </div> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-4"> <form action="" method="get" id="form-search" role="form"> <?php $_smarty_tpl->_capture_stack[0][] = array('search', null, null); ob_start(); echo smarty_function_get_params(array('prefix' => '&', 'exclude' => 'search,portion'), $_smarty_tpl); list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="input-group"> <input type="text" class="form-control input-sm" name="search" id="search" placeholder="Поиск" value="<?php if (isset($_GET['search'])) { echo $_GET['search']; } ?> " /> <span class="input-group-btn"> <button class="btn btn-sm btn-primary" onclick="document.location = $('#div-search-params').text() ? '?'+$('#form-search').serialize() + $('#div-search-params').text() : '?'+$('#form-search').serialize(); return false;"><span class="glyphicon glyphicon-search"></span></button> </span> </div> <div style="display:none" id="div-search-params"><?php echo Smarty::$_smarty_vars['capture']['search']; ?> </div> </form> </div> <div class="col-lg-3 col-md-4 col-sm-4 col-xs-4 text-right"> <form action="" method="get" id="form-quantity" class="form-inline" role="form"> <div class="form-group">Показывать</div> <?php $_smarty_tpl->_capture_stack[0][] = array('quantity', null, null); ob_start(); echo smarty_function_get_params(array('prefix' => '&', 'exclude' => 'quantity,portion'), $_smarty_tpl); list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="form-group"> <select name="quantity" id="quantity" class="form-control input-sm" onchange="document.location = $('#div-quantity-params').text() ? '?'+$('#form-quantity').serialize() + $('#div-quantity-params').text() : '?'+$('#form-quantity').serialize();"> <option value="25"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['quantity'] == 25) { ?> selected="selected"<?php } ?> >25</option> <option value="50"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['quantity'] == 50) { ?> selected="selected"<?php } ?> >50</option> <option value="100"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['quantity'] == 100) { ?> selected="selected"<?php } ?> >100</option> <option value="500"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['quantity'] == 500) { ?> selected="selected"<?php } ?> >500</option> <option value="1000"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['quantity'] == 1000) { ?> selected="selected"<?php } ?> >1000</option> </select> </div> <div class="form-group">строк</div> <div style="display:none" id="div-quantity-params"><?php echo Smarty::$_smarty_vars['capture']['quantity']; ?> </div> </form> </div> </div> </div><?php }
function content_528c7dd376b1b4_89909682($_smarty_tpl) { if (!is_callable('smarty_function_get_params')) { include 'D:\\OpenServer\\domains\\ikkf05\\includes\\smarty-3.1.15\\plugins\\function.get_params.php'; } if (!is_callable('smarty_function_cycle')) { include 'D:\\OpenServer\\domains\\ikkf05\\includes\\smarty-3.1.15\\plugins\\function.cycle.php'; } if (!is_callable('smarty_modifier_truncate')) { include 'D:\\OpenServer\\domains\\ikkf05\\includes\\smarty-3.1.15\\plugins\\modifier.truncate.php'; } if (!is_callable('smarty_modifier_date_format')) { include 'D:\\OpenServer\\domains\\ikkf05\\includes\\smarty-3.1.15\\plugins\\modifier.date_format.php'; } ?> <?php if ($_smarty_tpl->tpl_vars['items']->value) { ?> <form action="<?php echo smarty_function_get_params(array('prefix' => '?'), $_smarty_tpl); ?> " method="post" id="form_item"> <div class="table-responsive"> <table class="table table-striped table-bordered table-items"> <thead> <tr> <th class="td-id"><input type="checkbox" id="select_group" /> #</th> <?php if (isset($_smarty_tpl->tpl_vars['itemConfig']->value['showImage'])) { ?> <th class="td-img">Фото</th><?php } ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['itemFields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <?php if ($_smarty_tpl->tpl_vars['value']->value['show']) { ?> <th><a href="?sort=<?php echo $_smarty_tpl->tpl_vars['value']->value['field']; if (!isset($_GET['order'])) { ?> &order=desc<?php } echo smarty_function_get_params(array('prefix' => '&', 'exclude' => 'sort,order'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['value']->value['name']; ?> </a> <?php if (isset($_GET['sort']) && $_GET['sort'] == $_smarty_tpl->tpl_vars['value']->value['field']) { if (isset($_GET['order'])) { ?> <span class="glyphicon glyphicon-arrow-up"></span><?php } else { ?> <span class="glyphicon glyphicon-arrow-down"></span><?php } } ?> </th><?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['itemOrder']->value && !isset($_GET['sort']) && (!isset($_GET['search']) || !$_GET['search'])) { ?> <th class="td-order"><span class="glyphicon glyphicon-arrow-up text-success"></span> | <span class="glyphicon glyphicon-arrow-down text-success"></span></th><?php } ?> <?php if ($_smarty_tpl->tpl_vars['ajaxFields']->value) { ?> <th class="td-ajax">Ajax</th><?php } ?> <th class="td-edit"><a title="Редактировать" class="btn btn-sm btn-warning"><span class="glyphicon glyphicon-pencil"></span></a></th> <th class="td-delete"><a title="Удалить" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-trash"></span></a></th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_from = $_smarty_tpl->tpl_vars['items']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; ?> <tr class="<?php echo smarty_function_cycle(array('values' => 'tr1,tr2'), $_smarty_tpl); ?> "> <td class="td-id"><input type="checkbox" name="ids[]" value="<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " /> <?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> </td> <?php if (isset($_smarty_tpl->tpl_vars['itemConfig']->value['showImage'])) { ?> <td class="td-img"><div id="image_<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="field-image"><?php if ($_smarty_tpl->tpl_vars['value']->value['image']) { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['itemConfig']->value['imagePath']; echo $_smarty_tpl->tpl_vars['value']->value['image']; ?> " alt="" /><?php } ?> </div></td><?php } ?> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_from = $_smarty_tpl->tpl_vars['itemFields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['show']) { ?> <td<?php if (isset($_GET['sort']) && $_GET['sort'] == $_smarty_tpl->tpl_vars['field']->value['field']) { ?> class="td-sort"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'text') { ?> <div id="<?php echo $_smarty_tpl->tpl_vars['field']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="field-text"><?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']]; ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'integer' || $_smarty_tpl->tpl_vars['field']->value['type'] == 'float') { ?> <div id="<?php echo $_smarty_tpl->tpl_vars['field']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="field-number"><?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']]; ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'array') { ?> <div id="<?php echo $_smarty_tpl->tpl_vars['field']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="field-select"><?php if ($_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']]) { $_smarty_tpl->tpl_vars['arrayIndex'] = new Smarty_variable($_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']], null, 0); echo $_smarty_tpl->tpl_vars['arrayValues']->value[$_smarty_tpl->tpl_vars['field']->value['field']][$_smarty_tpl->tpl_vars['arrayIndex']->value]; } ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'key') { ?> <div id="<?php echo $_smarty_tpl->tpl_vars['field']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="field-select"><?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['key_value']]; ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textarea') { ?> <div id="<?php echo $_smarty_tpl->tpl_vars['field']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="field-textarea"><?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']]; ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'html') { ?> <div id="<?php echo $_smarty_tpl->tpl_vars['field']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="field-html"><?php echo smarty_modifier_truncate(htmlspecialchars(preg_replace('!\\s+!u', ' ', preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']])), ENT_QUOTES, 'UTF-8', true), 240); ?> </div><div style="display:none"><?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']]; ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'flag') { ?> <div id="<?php echo $_smarty_tpl->tpl_vars['field']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="field-flag"><a href="#" onclick="ToggleField(this, <?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> , '<?php echo $_smarty_tpl->tpl_vars['field']->value['field']; ?> '); return false;"><?php if ($_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']]) { ?> <span class="glyphicon glyphicon-check text-success"></span><?php } else { ?> <span class="glyphicon glyphicon-unchecked text-muted"></span><?php } ?> </a></div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'date') { ?> <div id="<?php echo $_smarty_tpl->tpl_vars['field']->value['field']; ?> _<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="field-date"><?php if ($_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']]) { echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']], '%d.%m.%Y'); if (isset($_smarty_tpl->tpl_vars['field']->value['time'])) { ?> <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['field']->value['field']], '%H:%M:%S'); } } ?> </div><?php } ?> </td> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['itemOrder']->value && !isset($_GET['sort']) && (!isset($_GET['search']) || !$_GET['search'])) { ?> <td class="td-order"><a href="?up=<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; echo smarty_function_get_params(array('prefix' => '&'), $_smarty_tpl); ?> " onclick="MoveItem(this, <?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> , 'up', '<?php echo $_smarty_tpl->tpl_vars['page']->value['where']; ?> '); return false;" title="Наверх"><span class="glyphicon glyphicon-arrow-up text-success"></span></a> | <a href="?down=<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; echo smarty_function_get_params(array('prefix' => '&'), $_smarty_tpl); ?> " onclick="MoveItem(this, <?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> , 'down', '<?php echo $_smarty_tpl->tpl_vars['page']->value['where']; ?> '); return false;" title="Вниз"><span class="glyphicon glyphicon-arrow-down text-success"></span></a></td><?php } ?> <?php if ($_smarty_tpl->tpl_vars['ajaxFields']->value) { ?> <td class="td-ajax"><button id="item_button_<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> " class="btn btn-sm btn-default" onclick="CreateAjaxForm(<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> ); return false;">Изменить...</button> <span style="white-space:nowrap; display:none;"><button class="btn btn-xs btn-primary" onclick="SaveAjaxForm(<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> ); return false;">Save</button> <button class="btn btn-xs btn-default" onclick="CancelAjaxForm(<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> ); return false;">Cancel</button></span><span style="display:none;">Saving...</span></td><?php } ?> <td class="td-edit"><a title="Редактировать" class="btn btn-sm btn-warning" href="?edit=<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; echo smarty_function_get_params(array('prefix' => '&'), $_smarty_tpl); ?> "><span class="glyphicon glyphicon-pencil"></span></a></td> <td class="td-delete"><a title="Удалить" class="btn btn-sm btn-danger" href="?delete=<?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; echo smarty_function_get_params(array('prefix' => '&'), $_smarty_tpl); ?> " onclick="return DeleteItem(this, <?php echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['itemKey']->value]; ?> );"><span class="glyphicon glyphicon-trash"></span></a></td> </tr> <?php } ?> </tbody> </table> </div> <input type="hidden" name="action_group" id="action_group" value="" /> </form> <?php } else { ?> <div class="label label-default">- Нет записей -</div> <div> </div> <?php } }