<?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']; ?> - <?php echo $this->group['group_name']; ?></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 id="tab1" class="tab-content default-tab" style="display: block;">
				<form method="post" action="admin/user_manage/group_edit_process/group_id-<?php echo $this->group['group_id']; ?>" id="_save_form">
					<fieldset>
					<?php if ($this->group['group_id'] != 99) { ?>
					<p>
						<label>System administrator:</label>
						<input type="radio" value="1" name="is_administortar"<?php if ($this->group_pms['is_administortar']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="is_administortar"<?php if (!$this->group_pms['is_administortar']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Frontstage admin:</label>
						<input type="radio" value="1" name="is_moderator"<?php if ($this->group_pms['is_moderator']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="is_moderator"<?php if (!$this->group_pms['is_moderator']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Allow to post question:</label>
						<input type="radio" value="1" name="publish_question"<?php if ($this->group_pms['publish_question']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="publish_question"<?php if (!$this->group_pms['publish_question']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Questions and answers need to be reviewed:</label>
						<input type="radio" value="1" name="publish_approval"<?php if ($this->group_pms['publish_approval']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="publish_approval"<?php if (!$this->group_pms['publish_approval']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p rel="publish_approval">
						<label>Time period to review content (24 hours, all assigned audits 0:00 to 23:00, or unregulated):</label>
						<input type="text" size="2" value="<?php echo $this->group_pms['publish_approval_time']['start']; ?>" name="publish_approval_time[start]" />
						:00 - 
						<input type="text" size="2" value="<?php echo $this->group_pms['publish_approval_time']['end']; ?>" name="publish_approval_time[end]" />
						:00 </p>
					<p>
						<label>Allow to edit all questions:</label>
						<input type="radio" value="1" name="edit_question"<?php if ($this->group_pms['edit_question']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="edit_question"<?php if (!$this->group_pms['edit_question']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Allow to edit all topics:</label>
						<input type="radio" value="1" name="edit_topic"<?php if ($this->group_pms['edit_topic']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="edit_topic"<?php if (!$this->group_pms['edit_topic']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Allow to redirect question:</label>
						<input type="radio" value="1" name="redirect_question"<?php if ($this->group_pms['redirect_question']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="redirect_question"<?php if (!$this->group_pms['redirect_question']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Allow to use attachment function:</label>
						<input type="radio" value="1" name="upload_attach"<?php if ($this->group_pms['upload_attach']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="upload_attach"<?php if (!$this->group_pms['upload_attach']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Allow to post external link:</label>
						<input type="radio" value="1" name="publish_url"<?php if ($this->group_pms['publish_url']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="publish_url"<?php if (!$this->group_pms['publish_url']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Enable verification code to post:</label>
						<input type="radio" value="1" name="human_valid"<?php if ($this->group_pms['human_valid']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="human_valid"<?php if (!$this->group_pms['human_valid']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p rel="human_valid"> Publish verification code
						<input type="text" name="question_valid_hour" class="text-input small-int" style="width:30px;text-align:right;" value="<?php echo intval($this->group_pms['question_valid_hour']); ?>">
						Need verification code if the number of questions posted exceeded maximum number set 0 then no restriction </p>
					<p rel="human_valid"> Answer verification code
						<input type="text" name="answer_valid_hour" class="text-input small-int" style="width:30px;text-align:right;" value="<?php echo intval($this->group_pms['answer_valid_hour']); ?>">
						Need verification code if the number of questions replied exceeded maximum number set 0 then no restriction </p>
					<?php } else { ?>
					<p>
						<label>Allow review website:</label>
						<input type="radio" value="1" name="visit_site"<?php if ($this->group_pms['visit_site']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="visit_site"<?php if (!$this->group_pms['visit_site']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Allow review question list:</label>
						<input type="radio" value="1" name="visit_explore"<?php if ($this->group_pms['visit_explore']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="visit_explore"<?php if (!$this->group_pms['visit_explore']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>View question details allowed:</label>
						<input type="radio" value="1" name="visit_question"<?php if ($this->group_pms['visit_question']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="visit_question"<?php if (!$this->group_pms['visit_question']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>Permission to visit reply:</label>
						<label style="font-weight:normal;"><input type="radio" value="0" name="answer_show"<?php if (!$this->group_pms['answer_show']) { ?> checked="checked"<?php } ?>>
						Display one reply (best reply or reply with most agreements)</label>
						<label style="font-weight:normal;"><input type="radio" value="1" name="answer_show"<?php if ($this->group_pms['answer_show']) { ?> checked="checked"<?php } ?>>
						display all reply
						</label>
					</p>
					<p>
						<label>allow review topic:</label>
						<input type="radio" value="1" name="visit_topic"<?php if ($this->group_pms['visit_topic']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="visit_topic"<?php if (!$this->group_pms['visit_topic']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>allow review feature:</label>
						<input type="radio" value="1" name="visit_feature"<?php if ($this->group_pms['visit_feature']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="visit_feature"<?php if (!$this->group_pms['visit_feature']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>allow review user:</label>
						<input type="radio" value="1" name="visit_people"<?php if ($this->group_pms['visit_people']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="visit_people"<?php if (!$this->group_pms['visit_people']) { ?> checked="checked"<?php } ?>>
						No </p>
					<p>
						<label>allow use search:</label>
						<input type="radio" value="1" name="search_avail"<?php if ($this->group_pms['search_avail']) { ?> checked="checked"<?php } ?>>
						Yes
						<input type="radio" value="0" name="search_avail"<?php if (!$this->group_pms['search_avail']) { ?> checked="checked"<?php } ?>>
						No </p>
					<?php } ?>
					<p>
						<input type="button" value="Save" onClick="ajax_post($('#_save_form'), _form_process);" class="button">
					</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>

<script type="text/javascript" src="<?php echo GET_STATIC_URL; ?>/admin/js/group.js"></script>

</body>
</html>