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

<div id="main-content" style="margin:0 0 0 200px;">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3>Content setting</h3>
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div id="notification_box" class="notification success png_bg" style="display:none;"> <a class="close" href="javascript:;"></a>
				<div name="notification_content"></div>
			</div>
			<div class="tab-content default-tab" id="tab1">
				<form id="_save_form" action="admin/setting/sys_save_ajax/" method="post">
					<fieldset>
					<p groupid="4" name="quick_publish">
						<label>Asking mode:</label>
						<input type="radio" name="quick_publish" value="Y" <?php if ($this->setting['quick_publish'] == 'Y'){ ?> checked="true"<?php } ?>/>
						Shortcut mode
						<input type="radio" name="quick_publish" value="N" <?php if ($this->setting['quick_publish'] == 'N'){ ?> checked="true"<?php } ?>/>
						Advanced mode </p>
					<p groupid="6" name="upload_enable">
						<label>Uploading attached enabled:</label>
						<input type="radio" name="upload_enable" value="Y" <?php if ($this->setting['upload_enable'] == 'Y'){ ?> checked="true"<?php } ?>/>
						Yes
						<input type="radio" name="upload_enable" value="N" <?php if ($this->setting['upload_enable'] == 'N'){ ?> checked="true"<?php } ?>/>
						No </p>
					<p groupid="6" name="allowed_upload_types">
						<label>Legal attachment format: <span></span></label>
						<input name="allowed_upload_types" class="text-input small-input" type="text" value="<?php echo $this->setting['allowed_upload_types']; ?>"/>
					</p>
					<p groupid="6" name="upload_size_limit">
						<label>Maximum of attachment size: <span style="font-weight:normal">(Unit:KB)</span></label>
						<input name="upload_size_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['upload_size_limit']; ?>"/>
					</p>
					<p groupid="4" name="answer_length_lower">
						<label>Limit on the minimum number of characters of reply: <span style=" font-weight:normal;">(No limit on entering 0)</span></label>
						<input name="answer_length_lower" class="text-input small-int" type="text" value="<?php echo $this->setting['answer_length_lower']; ?>"/>
					</p>
					<p groupid="4" name="question_title_limit">
						<label>Limit on maximum number of characters of question title: <span style=" font-weight:normal;">(No limit on entering 0)</span></label>
						<input name="question_title_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['question_title_limit']; ?>"/>
					</p>
					<p groupid="4" name="comment_limit">
						<label>Limit on maximum number of characters of comment: <span style=" font-weight:normal;">(No limit on entering 0)</span></label>
						<input name="comment_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['comment_limit']; ?>"/>
					</p>
					<p groupid="4" name="topic_title_limit">
						<label>Limit on maximum number of characters of topic title: <span style=" font-weight:normal;">(No limit on entering 0)</span></label>
						<input name="topic_title_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['topic_title_limit']; ?>"/>
					</p>
					<p groupid="6" name="upload_avatar_size_limit">
						<label>Maximum size of profile/topic picture allowed: <span style="font-weight:normal">(Unit:KB)</span></label>
						<input name="upload_avatar_size_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['upload_avatar_size_limit']; ?>"/>
					</p>
					<p groupid="6" name="answer_edit_time">
						<label>Valid time to reply edit/delete: <span style="font-weight:normal">(Unit: minutes)</span></label>
						<input name="answer_edit_time" class="text-input small-int" type="text" value="<?php echo $this->setting['answer_edit_time']; ?>"/>
					</p>
					<p groupid="4" name="uninterested_fold">
						<label>When number of "No help" reached a certain amount, fold reply:</label>
						<input name="uninterested_fold" class="text-input small-int" type="text" value="<?php echo $this->setting['uninterested_fold']; ?>"/>
					</p>
					<p groupid="4" name="best_answer_day">
						<label>System automatically select the best time to reply: <span style="font-weight:normal">(Unit: day, enter 0 then not to start)</span></label>
						<input name="best_answer_day" class="text-input small-int" type="text" value="<?php echo $this->setting['best_answer_day']; ?>"/>
					</p>
					<p groupid="4" name="best_answer_min_count">
						<label>Enable to automatically select minimum number of replies of question with the best reply:</label>
						<input name="best_answer_min_count" class="text-input small-int" type="text" value="<?php echo $this->setting['best_answer_min_count']; ?>"/>
					</p>
					<p groupid="4" name="best_agree_min_count">
						<label>Enable to automatically select minimum number of agreements of the best reply:</label>
						<input name="best_agree_min_count" class="text-input small-int" type="text" value="<?php echo $this->setting['best_agree_min_count']; ?>"/>
					</p>
					<p groupid="4" name="related_question_keyword_count">
						<label>Related questionKeyword number of matches: <span style="font-weight:normal">(The higher the value, Related question the fewer the number of matching more accurate.)</span></label>
						<input name="related_question_keyword_count" class="text-input small-int" type="text" value="<?php echo $this->setting['related_question_keyword_count']; ?>"/>
					</p>
					<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="close"><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>