<?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/topic/save_ajax/topic_id-<?php echo $this->topic['topic_id']; ?>" method="post">
					<input type="hidden" name="refer" value="<?php echo $this->refer;?>" />
					<fieldset>
					<p>
						<label>Topic Title:
						<input class="text-input small-input" type="text" name="topic_title" id="topic_title" value="<?php echo $this->topic['topic_title']; ?>" name="small-input" />
						</label>
					</p>
					<p>
						<label>Topic Description:</label>
						<textarea name="topic_description" id="topic_description" cols="100" rows="3"><?php echo $this->topic['topic_description']; ?></textarea>
					</p>
					<p>
						<label>Thumbnails:</label>
						<p><img src="<?php echo $this->topic['topic_pic_max']; ?>" id="topic_pic"/></p>
						<input name="topic_pic" class="upload-input" type="file">
					</p>
					<p>
						<label>Topic is locked:</label>
						<input type="radio" name="topic_lock" id="topic_lock" value="1"<?php if($this->topic['topic_lock'] == "1") echo " checked";?>/>
						Yes&nbsp;&nbsp;
						<input type="radio" name="topic_lock" id="topic_lock" value="0"<?php if($this->topic['topic_lock'] == "0") echo " checked";?>/>
						No </p>
					<p>
						<input class="button" type="button" onClick="ajax_post($('#_save_form'), _form_process);" value="Save" />
					</p>
					</fieldset>
				</form>
			</div>
		</div>
		<div class="clear"></div>
	</div>

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

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

</div>

</body>
</html>