<div class="adminConfiguration" style="height:100%;background-color:white">
<form class="internalForm" action="<?php echo $category->getUpdateUrl() ?>" method="post" onreset="return confirm('<?php echo escape_single_quotes(lang('confirm reset form')) ?>')">
	<div class="coInputHeader">
	  <div>
		<div class="coInputName">
			<div class="coInputTitle">
				<?php echo clean($category->getDisplayName()) ?>
			</div>
		</div>
		<div class="coInputButtons">
			<?php echo submit_button(lang('save'), 's', array('style' => 'margin-top:0px;')) ?>&nbsp;<button class="submit" type="reset"><?php echo lang('reset') ?></button>
		</div>
		<div class="clear"></div>
	  </div>
	</div>
	
	<div class="adminMainBlock">
	
	<?php Hook::fire('config_category_before_options', array('category' => $category), $category); ?>
	
	<?php if(isset($options) && is_array($options) && count($options)) { ?>
			<div id="configCategoryOptions">
				<?php $counter = 0; ?>
				<?php foreach($options as $option) {
						$counter++;
						if ($option instanceof ConfigOption) { 
				?>
					<div class="configCategoryOtpion <?php echo $counter % 2 ? 'odd' : 'even' ?>" id="configCategoryOption_<?php echo $option->getName() ?>">
						<div class="configOptionInfo">
							<div class="configOptionLabel"><label><?php echo clean($option->getDisplayName()) ?>:</label></div>
						<?php if(trim($option_description = $option->getDisplayDescription())) { ?>
							<div class="configOptionDescription desc"><?php echo clean($option_description) ?></div>
						<?php } // if ?>
						</div>
						<div class="configOptionControl"><?php
							if($option->getName() == "working_days"){
								echo render_add_working_days();
							}else{
								echo $option->render('options[' . $option->getName() . ']');
							}
						?></div>
						<div class="clear"></div>
					</div>
					
					<?php } else {?>
					
					<div class="configCategoryOtpion <?php echo $counter % 2 ? 'odd' : 'even' ?>" id="configCategoryOption_<?php echo array_var($option, 'id', '') ?>">
						<div class="configOptionInfo">
							<div class="configOptionLabel"><a href="<?php echo array_var($option, 'url', '#')?>"><?php echo clean(array_var($option, 'name', '')) ?></a></div>
						<?php if (trim(array_var($option, 'description', ''))) { ?>
							<div class="configOptionDescription desc"><?php echo array_var($option, 'description', '') ?></div>
						<?php } // if ?>
						</div>
						<div class="configOptionControl"><?php echo array_var($option, 'control_html', ''); ?></div>
						<div class="clear"></div>
					</div>
					
					<?php }?>
				<?php } // foreach ?>
			</div>
			
	<?php } else { ?>
		<p><?php echo lang('config category is empty') ?></p>
	<?php } // if ?>
	
	<?php $counter++; Hook::fire('more_config_category_sections', array('category' => $category), $counter); ?>
	
	<?php if (is_array($options) && count($options)) { ?>
	<?php 	echo submit_button(lang('save')) ?>&nbsp;<button class="submit" type="reset"><?php echo lang('reset') ?></button>
	<?php } ?>
	</div>
</form>
</div>