<?php 
    ob_start();
    echo $this->_tpl_vars['tabid'];
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('blockAsParamValue', ob_get_contents());
    ob_end_clean();
    echo smarty_function_hidden(array('name' => 'file', 'id' => "file_" . $this->_tpl_vars['blockAsParamValue']), $this);
    ?>


	<?php 
    if ($this->_tpl_vars['new']) {
        ?>
		<?php 
        echo smarty_function_hidden(array('name' => 'new', 'value' => 'true'), $this);
        ?>

	<?php 
    }
    ?>

	<fieldset class="controls" <?php 
    $this->_tag_stack[] = array('denied', array('role' => "template.save"));
    $_block_repeat = true;
    smarty_block_denied($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
    while ($_block_repeat) {
        ob_start();
        ?>
style="display: none;"<?php 
        $_block_content = ob_get_contents();
	<?php 
    echo smarty_function_renderBlock(array('block' => "PRODUCT-VARIATIONS"), $this);
    ?>


	<tr id="productToCart" class="cartLinks">
		<td class="param"><?php 
    echo smarty_function_translate(array('text' => '_quantity'), $this);
    ?>
:</td>
		<td class="value">
			<?php 
    $_smarty_tpl_vars = $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "custom:product/block/quantity.tpl", 'smarty_include_vars' => array()));
    $this->_tpl_vars = $_smarty_tpl_vars;
    unset($_smarty_tpl_vars);
    ?>
			<input type="submit" class="submit" value="<?php 
    echo is_array($_tmp = smarty_function_translate(array('text' => '_add_to_cart', 'disableLiveTranslation' => 'true'), $this)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
    ?>
" />
			<?php 
    echo smarty_function_hidden(array('name' => 'return', 'value' => $this->_tpl_vars['catRoute']), $this);
    ?>


		</td>
	</tr>
	
<?php 
}
?>

<?php 
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'item', 'value' => $this->_tpl_vars['system']['item']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'authcode', 'value' => $this->_tpl_vars['system']['authcode']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'action', 'value' => 'additem'), $this);
?>

<div align="right" style="margin-top:10px">
<p style="float:left">
<label><input type="checkbox" name="active" checked>&nbsp;Активно</label>&nbsp;&nbsp;
<label><input type="checkbox" name="favorite">&nbsp;Спецпредложение</label>&nbsp;&nbsp;
<label><input type="checkbox" name="new">&nbsp;Новинка</label>
</p>
<?php 
echo smarty_function_submit(array('caption' => 'OK'), $this);
?>

<?php 
echo smarty_function_button(array('caption' => "Отмена", 'onclick' => "Windows.closeAll()"), $this);
?>
        ?>

<?php 
        echo smarty_function_hidden(array('name' => 'authcode', 'value' => $this->_tpl_vars['system']['authcode']), $this);
        ?>

<?php 
        echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
        ?>

<?php 
        echo smarty_function_hidden(array('name' => 'item', 'value' => $this->_tpl_vars['system']['item']), $this);
        ?>

<?php 
        echo smarty_function_hidden(array('name' => 'tab', 'value' => 'orders'), $this);
        ?>

</form>
</td>
<?php 
    }
    ?>
<td width="80%" align="right">&nbsp;</td>
</tr>
</table>
<?php 
    $_block_content = ob_get_contents();
    ob_end_clean();
    $_block_repeat = false;
    echo smarty_block_tabpage($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
        echo smarty_function_textfield(array('name' => $this->_tpl_vars['fieldName'], 'class' => 'text'), $this);
        ?>

			<?php 
    } elseif (3 == $this->_tpl_vars['option']['type']) {
        ?>
				<?php 
        echo smarty_function_uniqid(array('assign' => 'uniq', 'noecho' => true), $this);
        ?>

				<?php 
        echo smarty_function_filefield(array('name' => "upload_" . $this->_tpl_vars['fieldName'], 'id' => $this->_tpl_vars['uniq']), $this);
        ?>

				<?php 
        echo smarty_function_hidden(array('name' => $this->_tpl_vars['fieldName']), $this);
        ?>

				<?php 
        $this->_tag_stack[] = array('error', array('for' => "upload_" . $this->_tpl_vars['fieldName']));
        $_block_repeat = true;
        smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>
<div class="errorText"><?php 
            echo $this->_tpl_vars['msg'];
            ?>
</div><?php 
            $_block_content = ob_get_contents();
            ob_end_clean();
</a>
					<?php 
            if (!($this->_foreach['catPath']['iteration'] == $this->_foreach['catPath']['total'])) {
                ?>
						&gt;
					<?php 
            }
            ?>
				<?php 
        }
    }
    unset($_from);
    ?>
			</label>
			<?php 
    echo smarty_function_hidden(array('id' => 'categoryID', 'name' => 'category'), $this);
    ?>

		</p>

		<div class="options">
			<p>
				<label><?php 
    echo smarty_function_translate(array('text' => '_import_action'), $this);
    ?>
</label>
				<select name="options[action]">
					<option value="both"><?php 
    echo smarty_function_translate(array('text' => '_add_and_update'), $this);
    ?>
</option>
<?php

/* Smarty version 2.6.26, created on 2015-12-02 13:11:48
   compiled from backend/user/address_edit.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'hidden', 'backend/user/address_edit.tpl', 1, false), array('function', 'translate', 'backend/user/address_edit.tpl', 5, false), array('function', 'textfield', 'backend/user/address_edit.tpl', 6, false), array('function', 'selectfield', 'backend/user/address_edit.tpl', 25, false), array('function', 'link', 'backend/user/address_edit.tpl', 71, false))), $this);
echo smarty_function_hidden(array('name' => $this->_tpl_vars['namePrefix'] . "ID"), $this);
?>


<?php 
if (!$this->_tpl_vars['hideName']) {
    ?>
<fieldset class="error">
	<label for="<?php 
    echo $this->_tpl_vars['idPrefix'];
    ?>
_firstName"><?php 
    echo smarty_function_translate(array('text' => '_first_name'), $this);
    ?>
</label>
	<?php 
    echo smarty_function_textfield(array('name' => $this->_tpl_vars['namePrefix'] . "firstName", 'id' => $this->_tpl_vars['idPrefix'] . "_firstName", 'class' => 'text'), $this);
    ?>

	<div class="errorText" style="display: none" ></div>
</fieldset>

<fieldset class="error">
	<label for="<?php 
    echo $this->_tpl_vars['idPrefix'];
<?php

/* Smarty version 2.6.26, created on 2015-12-01 12:15:49
   compiled from /home/illumin/public_html/application/view///backend/newsletter/edit.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('block', 'form', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 1, false), array('function', 'hidden', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 4, false), array('function', 'translate', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 7, false), array('function', 'checkbox', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 40, false), array('modifier', 'capitalize', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 7, false), array('modifier', 'escape', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 41, false))), $this);
$this->_tag_stack[] = array('form', array('handle' => $this->_tpl_vars['form'], 'action' => "controller=backend.newsletter action=save", 'method' => 'POST', 'onsubmit' => "Backend.Newsletter.saveForm(this); return false;", 'onreset' => "Backend.Newsletter.resetAddForm(this);"));
$_block_repeat = true;
smarty_block_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>
<div class="newsletterForm">

	<?php 
    echo smarty_function_hidden(array('name' => 'id', 'value' => $this->_tpl_vars['newsletter']['ID']), $this);
    ?>


	<fieldset>
		<legend><?php 
    ob_start();
    echo smarty_function_translate(array('text' => '_edit_message'), $this);
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('translation__edit_message', ob_get_contents());
    ob_end_clean();
    echo is_array($_tmp = $this->_tpl_vars['translation__edit_message']) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp);
    ?>
</legend>
		<?php 
    $_smarty_tpl_vars = $this->_tpl_vars;
<?php

/* Smarty version 2.6.26, created on 2015-12-13 17:33:59
   compiled from block_search_edit.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'hidden', 'block_search_edit.tpl', 1, false), array('function', 'editbox', 'block_search_edit.tpl', 4, false))), $this);
echo smarty_function_hidden(array('name' => 'b_idsec', 'value' => $this->_tpl_vars['form']['idsec']), $this);
?>

<?php 
if ($this->_tpl_vars['auth']->isExpert()) {
    ?>
<p>Шаблон:</p>
<p><?php 
    echo smarty_function_editbox(array('name' => 'b_template', 'text' => $this->_tpl_vars['form']['template'], 'max' => 50, 'width' => "20%"), $this);
    ?>
</p>
<?php 
} else {
    echo smarty_function_hidden(array('name' => 'b_template', 'value' => $this->_tpl_vars['form']['template']), $this);
    ?>

<?php 
}
?>

<?php 
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'item', 'value' => $this->_tpl_vars['system']['item']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'authcode', 'value' => $this->_tpl_vars['system']['authcode']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'action', 'value' => 'fld_edit'), $this);
?>

<div align="right" style="margin-top:10px">
<p style="float:left"><label><input type="checkbox" name="fill"<?php 
if ($this->_tpl_vars['form']['fill'] == 'Y') {
    ?>
 checked<?php 
}
?>
>&nbsp;Обязательно для заполнения.</label></p>
<?php 
echo smarty_function_submit(array('caption' => 'OK'), $this);
?>

<?php 
    }
    array_pop($this->_tag_stack);
    ?>
</div>
	</fieldset>
</p>
<?php 
} else {
    ?>
	<?php 
    ob_start();
    echo smarty_function_uniqid(array('assign' => 'id_country'), $this);
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('blockAsParamValue', ob_get_contents());
    ob_end_clean();
    echo smarty_function_hidden(array('name' => $this->_tpl_vars['prefix'] . "country", 'id' => $this->_tpl_vars['blockAsParamValue']), $this);
    ?>

<?php 
}
?>

<?php 
if ($this->_tpl_vars['fields']['STATE']) {
    $_smarty_tpl_vars = $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "custom:user/addressFormState.tpl", 'smarty_include_vars' => array('prefix' => $this->_tpl_vars['prefix'])));
    $this->_tpl_vars = $_smarty_tpl_vars;
    unset($_smarty_tpl_vars);
}
?>
        echo $this->_tpl_vars['form']['links'][$this->_sections['i']['index']]['section'];
        ?>
"></td>
</td>
<td width="20"><a href="javascript:links_insert(<?php 
        echo $this->_sections['i']['index'];
        ?>
)" title="Вставить"><img src="/templates/admin/images/add.gif" width="16" height="16"></a></td>
<td width="20"><a href="javascript:links_del(<?php 
        echo $this->_sections['i']['index'];
        ?>
)" title="Удалить"><img src="/templates/admin/images/del.gif" width="16" height="16"></a></td>
</tr>
</table>
</div>
<?php 
    }
}
?>
</div>
<table width="100%">
<tr>
<td>Импорт (xls):&nbsp;<input type="file" name="xlsfile"></td>
<td width="20"><a href="javascript:links_addlink()" title="Добавить"><img src="/templates/admin/images/add.gif" width="16" height="16" alt="Добавить"></a></td>
<td width="20">&nbsp;</td>
</tr>
</table>
</div>
<?php 
echo smarty_function_hidden(array('name' => 'b_count', 'value' => $this->_tpl_vars['form']['count']), $this);
?>
<ul class="menu">
	<li>
		<?php 
$this->_tag_stack[] = array('form', array('handle' => $this->_tpl_vars['form'], 'class' => 'orderStatus', 'action' => "controller=backend.customerOrder action=update", 'id' => "orderInfo_" . $this->_tpl_vars['order']['ID'] . "_form", 'onsubmit' => "Backend.CustomerOrder.Editor.prototype.getInstance(" . $this->_tpl_vars['order']['ID'] . ", false).submitForm(); return false;", 'method' => 'post', 'role' => "order.update"));
$_block_repeat = true;
smarty_block_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>
			<?php 
    echo smarty_function_hidden(array('name' => 'ID'), $this);
    ?>

			<?php 
    echo smarty_function_hidden(array('name' => 'isCancelled'), $this);
    ?>

				<label for="order_<?php 
    echo $this->_tpl_vars['order']['ID'];
    ?>
_status" style="width: auto; float: none;"><?php 
    echo smarty_function_translate(array('text' => '_status'), $this);
    ?>
: </label>
				<?php 
    echo smarty_function_selectfield(array('options' => $this->_tpl_vars['statuses'], 'id' => "order_" . $this->_tpl_vars['order']['ID'] . "_status", 'name' => 'status', 'class' => 'status'), $this);
    ?>

				<div class="errorText hidden"></div>
		<?php 
<?php 
echo smarty_function_button(array('caption' => "Отмена", 'onclick' => "Windows.closeAll()"), $this);
?>

</div>
<?php 
echo smarty_function_hidden(array('name' => 'id', 'value' => $this->_tpl_vars['form']['id']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'item', 'value' => $this->_tpl_vars['system']['item']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'page', 'value' => $this->_tpl_vars['system']['page']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'authcode', 'value' => $this->_tpl_vars['system']['authcode']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'action', 'value' => 'editpage'), $this);
?>

</form>
		<div id="importProfiles">
			<?php 
    $_smarty_tpl_vars = $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "custom:backend/csvImport/profiles.tpl", 'smarty_include_vars' => array()));
    $this->_tpl_vars = $_smarty_tpl_vars;
    unset($_smarty_tpl_vars);
    ?>
		</div>

		<div id="fieldsContainer"></div>
		<div class="clear"></div>

		<fieldset class="error">
			<?php 
    echo smarty_function_hidden(array('name' => 'err'), $this);
    ?>

			<div class="errorText" style="display: none; margin-top: 0.5em;"></div>
		</fieldset>
	</fieldset>

	<div class="clear"></div>

	<fieldset class="controls" id="importControls">
		<p class="saveProfile" style="display: none;">
			<input type="checkbox" class="checkbox" name="saveProfile" id="saveProfile" />
			<label for="saveProfile" class="checkbox" style="margin-right: 1em;"><?php 
    echo smarty_function_translate(array('text' => '_save_profile'), $this);
    ?>
:</label>
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('searchUrl', ob_get_contents());
ob_end_clean();
?>
		<?php 
$this->_tag_stack[] = array('form', array('action' => "controller=category", 'class' => 'quickSearch', 'handle' => $this->_tpl_vars['form']));
$_block_repeat = true;
smarty_block_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>
			<?php 
    if (is_array($_tmp = 'HIDE_SEARCH_CATS') ? $this->_run_mod_handler('config', true, $_tmp) : $this->_plugins['modifier']['config'][0][0]->config($_tmp)) {
        ?>
				<?php 
        echo smarty_function_hidden(array('name' => 'id', 'value' => '1'), $this);
        ?>

			<?php 
    } else {
        ?>
				<?php 
        echo smarty_function_selectfield(array('name' => 'id', 'options' => $this->_tpl_vars['categories']), $this);
        ?>

			<?php 
    }
    echo smarty_function_textfield(array('class' => 'text searchQuery', 'name' => 'q', 'placeholder' => "Search...", 'style' => "border: none; position: relative;"), $this);
    ?>

<input type="submit" class="submit" style="position: relative; right: 29px; border: none; background-image: url('upload/theme/IlluminataV3/searchicon.jpg'); background-position: right; background-repeat: no-repeat; background-color: white; color: gray;" value="|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" />
">
<input type="hidden" name="tab" value="cat">
<?php 
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'item', 'value' => $this->_tpl_vars['system']['item']), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'obj_action', 'value' => 'ct_edit'), $this);
?>

<?php 
echo smarty_function_hidden(array('name' => 'authcode', 'value' => $this->_tpl_vars['system']['authcode']), $this);
?>

<div align="right" style="margin-top:10px">
<p style="float:left"><label><input type="checkbox" name="active"<?php 
if ($this->_tpl_vars['form']['active'] == 'Y') {
    ?>
 checked<?php 
}
?>
>&nbsp;Активно</label></p>
<?php 
echo smarty_function_submit(array('caption' => "Сохранить"), $this);
?>

<?php 
                            ?>
"><?php 
                            echo $this->_tpl_vars['property']['name'];
                            ?>
</label>
						<?php 
                        }
                        ?>
					<?php 
                    }
                    ?>
					<?php 
                    if ($this->_tpl_vars['property']['append']) {
                        ?>
						<?php 
                        echo smarty_function_hidden(array('class' => 'append', 'name' => 'append', 'value' => $this->_tpl_vars['property']['append']), $this);
                        ?>

					<?php 
                    }
                    ?>
				</fieldset>
			<?php 
                }
            }
            unset($_from);
            ?>
		</fieldset>
	<?php 
        }
    }