<?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> Credits and Reputation </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="14" name="integral_system_enabled">
						<label>Use credit system:</label>
						<input type="radio" name="integral_system_enabled" value="Y" <?php if ($this->setting['integral_system_enabled'] == 'Y'){ ?> checked="true"<?php } ?>/>
						Yes
						<input type="radio" name="integral_system_enabled" value="N" <?php if ($this->setting['integral_system_enabled'] == 'N'){ ?> checked="true"<?php } ?>/>
						No </p>
					<p groupid="14" name="integral_unit">
						<label>Credit unit:</label>
						<input name="integral_unit" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_unit']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_register">
						<label>Default credit of new user:</label>
						<input name="integral_system_config_register" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_register']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_profile">
						<label>Credit awarded for complete user profile:</label>
						<input name="integral_system_config_profile" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_profile']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_invite">
						<label>Invite user to register and the invitation was successful:</label>
						<input name="integral_system_config_invite" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_invite']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_best_answer">
						<label>Best reply:</label>
						<input name="integral_system_config_best_answer" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_best_answer']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_answer_fold">
						<label>Reply folded:</label>
						<input name="integral_system_config_answer_fold" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_answer_fold']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_new_question">
						<label>Initiate a question:</label>
						<input name="integral_system_config_new_question" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_new_question']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_new_answer">
						<label>Reply to a question:</label>
						<input name="integral_system_config_new_answer" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_new_answer']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_thanks">
						<label>Thank you for reply:</label>
						<input name="integral_system_config_thanks" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_thanks']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_invite_answer">
						<label>Sponsor invite others to answer questions and answers:</label>
						<input name="integral_system_config_invite_answer" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_invite_answer']; ?>"/>
					</p>
					<p groupid="4">
						<label>Reputation formula: log(((usergroup reputation coefficient x number of agreements - usergroup reputation coefficient x number of disagreements) + owner agreement with object reputation coefficient + best reply reputation coefficient) + 0.5), minimum value of log)</label>
					</p>
					<p groupid="4" name="publisher_reputation_factor">
						<label>Owner agreement with object reputation coefficient</label>
						<input name="publisher_reputation_factor" class="text-input small-int" type="text" value="<?php echo get_setting('publisher_reputation_factor'); ?>"/>
					</p>
					<p groupid="4" name="best_answer_reput">
						<label>Best replyReputation coefficient:</label>
						<input name="best_answer_reput" class="text-input small-int" type="text" value="<?php echo get_setting('best_answer_reput'); ?>"/>
					</p>
					<p groupid="4" name="reputation_log_factor">
						<label>Minimum value of log: <span style="font-weight:normal">(control display of reputation Value, the smaller the base value the larger the reputation value, the larger the base value the smaler the reputation Value, system default value 3)</span></label>
						<input name="reputation_log_factor" class="text-input small-int" type="text" value="<?php echo get_setting('reputation_log_factor'); ?>"/>
					</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>