<?php TPL::output('admin/global/header.tpl.htm'); ?>

<!--left-->
<?php TPL::output('admin/global/left.tpl.htm'); ?>
<!--left-->

<!-- main -->
<div id="main-content">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3><?php echo $this->crumb['last']['name']; ?></h3>
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<form id="_save_form" action="admin/category/save_ajax/category_id-<?php echo $this->category['id']; ?>" method="post">
					<fieldset>
					<p>
						<label>Category Title:</label>
						<input type="text" name="title" class="text-input small-input" value="<?php echo $this->category['title']; ?>">
					</p>
					<p>
						<label>Alias:</label>
						<?php echo get_js_url('/'); ?>category/ <input type="text" name="url_token" class="text-input" style="width:120px;" value="<?php echo $this->category['url_token']; ?>">
					</p>
					<p>
						<label>Parent Category:</label>
						<select style="width:200px;" name="parent_id">
							<option value="0">No</option>
							<?php echo $this->category_option; ?>
						</select>
					</p>
					<?php if(!$this->menu_category_ids || !in_array($this->category['id'], $this->menu_category_ids)){ ?>
					<p>
						<label>
						<input name="add_nav_menu" type="checkbox">Add to navigation menu
						</label>
					</p>
					<?php } ?>
					<p>
						<input class="button" type="button" onClick="ajax_post($('#_save_form'), _form_process);" value="Save" />
					</p>
					</fieldset>
					<div class="clear"></div>
				</form>
			</div>
		</div>
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close2"><img src="<?php echo GET_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="Close" /></a>
			<div id="notf_cont"></div>
		</div>
	</div>

<!-- footer -->
<?php TPL::output('admin/global/footer.tpl.htm'); ?>
<!-- footer -->

</div>
<!-- main -->

</div>

</body>
</html>