<?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>Register and vist</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>
						<label>Default time zone:</label>
						<select name="default_timezone">
							<option value='Etc/GMT+12'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+12') { ?> selected="selected"<?php } ?>>(GMT - 12:00 hour) Eniwetok Island, Kwajalein</option>
							<option value='Etc/GMT+11'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+11') { ?> selected="selected"<?php } ?>>((GMT - 11:00 hour) Midway Islands, Samoa</option>
							<option value='Etc/GMT+10'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+10') { ?> selected="selected"<?php } ?>>(GMT - 10:00 hour) Hawaii</option>
							<option value='Etc/GMT+9'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+9') { ?> selected="selected"<?php } ?>>(GMT - 9:00 hour) Alaska</option>
							<option value='Etc/GMT+8'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+8') { ?> selected="selected"<?php } ?>>(GMT - 8:00 hour) Pacific Time</option>
							<option value='Etc/GMT+7'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+7') { ?> selected="selected"<?php } ?>>(GMT - 7:00 hour) Mountain Time Zone</option>
							<option value='Etc/GMT+6'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+6') { ?> selected="selected"<?php } ?>>(GMT - 6:00 hour) Central Standard Time, Mexico City</option>
							<option value='Etc/GMT+5'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+5') { ?> selected="selected"<?php } ?>>(GMT - 5:00 hour) Eastern Standard Tim, Bogotá, Lima</option>
							<option value='Etc/GMT+4'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+4') { ?> selected="selected"<?php } ?>>(GMT - 4:00 hour) Atlantic Time (Canada), Caracas, La Paz</option>
							<option value='Canada/Newfoundland'<?php if ($this->setting['default_timezone'] == 'Canada/Newfoundland') { ?> selected="selected"<?php } ?>>(GMT - 3:30 hour) Newfoundland</option>
							<option value='Etc/GMT+3'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+3') { ?> selected="selected"<?php } ?>>(GMT - 3:00 hour) Brazil, Buenos Aires, Falkland Islands</option>
							<option value='Etc/GMT+2'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+2') { ?> selected="selected"<?php } ?>>(GMT - 2:00 hour) Mid Atlantic, Ascension, Saint Helena</option>
							<option value='Etc/GMT+1'<?php if ($this->setting['default_timezone'] == 'Etc/GMT+1') { ?> selected="selected"<?php } ?>>(GMT - 1:00 hour) Azores, Cape Verde</option>
							<option value='Etc/GMT'<?php if ($this->setting['default_timezone'] == 'Etc/GMT') { ?> selected="selected"<?php } ?>>(GMT) Casablanca, Dublin, London, Lisbon, Monrovia</option>
							<option value='Etc/GMT-1'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-1') { ?> selected="selected"<?php } ?>>(GMT + 1:00 hour) Brussels, Copenhagen, Madrid, Paris</option>
							<option value='Etc/GMT-2'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-2') { ?> selected="selected"<?php } ?>>(GMT + 2:00 hour) Kaliningrad, South Africa</option>
							<option value='Etc/GMT-3'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-3') { ?> selected="selected"<?php } ?>>(GMT + 3:00 hour) Baghdad, Riyadh, Moscow, Nairobi</option>
							<option value='Iran'<?php if ($this->setting['default_timezone'] == 'Iran') { ?> selected="selected"<?php } ?>>(GMT + 3:30 hour) Tehran</option>
							<option value='Etc/GMT-4'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-4') { ?> selected="selected"<?php } ?>>(GMT + 4:00 hour) Abu Dhabi, Baku, Muscat, Tbilisi</option>
							<option value='Asia/Kabul'<?php if ($this->setting['default_timezone'] == 'Asia/Kabul') { ?> selected="selected"<?php } ?>>(GMT + 4:30 hour) Kabul</option>
							<option value='Etc/GMT-5'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-5') { ?> selected="selected"<?php } ?>>(GMT + 5:00 hour) Yekaterinburg, Karachi, Tashkent</option>
							<option value='Asia/Kolkata'<?php if ($this->setting['default_timezone'] == 'Asia/Kolkata') { ?> selected="selected"<?php } ?>>(GMT + 5:30 hour) Mumbai, Kolkata, Madras, New Delhi</option>
							<option value='Etc/GMT-6'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-6') { ?> selected="selected"<?php } ?>>(GMT + 6:00 hour) Almaty, Colomba, Dhaka</option>
							<option value='Etc/GMT-7'<?php if (!$this->setting['default_timezone'] OR $this->setting['default_timezone'] == 'Etc/GMT-7') { ?> selected="selected"<?php } ?>>(GMT + 7:00 hour) Bangkok, Hanoi, Jakarta</option>
							<option value='Etc/GMT-8'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-8') { ?> selected="selected"<?php } ?>>(GMT + 8:00 hour) Beijing, Hong Kong, Perth, Singapore, Taipei</option>
							<option value='Etc/GMT-9'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-9') { ?> selected="selected"<?php } ?>>(GMT + 9:00 hour) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
							<option value='Etc/GMT-10'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-10') { ?> selected="selected"<?php } ?>>(GMT + 10:00 hour) Melbourne, Papua New Guinea, Sydney</option>
							<option value='Etc/GMT-11'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-11') { ?> selected="selected"<?php } ?>>(GMT + 11:00 hour) Magadan, New Caledonia, Solomon Islands</option>
							<option value='Etc/GMT-12'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-12') { ?> selected="selected"<?php } ?>>(GMT + 12:00 hour) New Zealand, Fiji, Marshall Islands</option>
							<option value='Etc/GMT-13'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-13') { ?> selected="selected"<?php } ?>>(GMT + 13:00 hour) Kamchatka Peninsula, Anadyr</option>
							<option value='Etc/GMT-14'<?php if ($this->setting['default_timezone'] == 'Etc/GMT-14') { ?> selected="selected"<?php } ?>>(GMT + 14:00 hour) Christmas Island</option>
						</select>
					</p>
					<p groupid="2" name="site_close">
						<label>Closed site:</label>
						<input type="radio" name="site_close" value="Y" <?php if ($this->setting['site_close'] == 'Y') { ?> checked="true"<?php } ?>/>
						Yes
						<input type="radio" name="site_close" value="N" <?php if ($this->setting['site_close'] == 'N') { ?> checked="true"<?php } ?>/>
						No </p>
					<p groupid="2" name="close_notice">
						<label>Notice about closed site:</label>
						<textarea name="close_notice" cols="100" rows="3" id="close_notice"><?php echo $this->setting['close_notice']; ?></textarea>
					</p>
					<p groupid="2" name="register_seccode">
						<label>Display verification code when new users register:</label>
						<input type="radio" name="register_seccode" value="Y" <?php if ($this->setting['register_seccode'] == 'Y') { ?> checked="true"<?php } ?>/>
						Yes
						<input type="radio" name="register_seccode" value="N" <?php if ($this->setting['register_seccode'] == 'N') { ?> checked="true"<?php } ?>/>
						No </p>
					<p groupid="2" name="register_email_reqire">
						<label>Require Email verification when new user register:</label>
						<input type="radio" name="register_email_reqire" value="Y" <?php if ($this->setting['register_email_reqire'] == 'Y') { ?> checked="true"<?php } ?>/>
						Yes
						<input type="radio" name="register_email_reqire" value="N" <?php if ($this->setting['register_email_reqire'] == 'N') { ?> checked="true"<?php } ?>/>
						No </p>
					<p groupid="2" name="invite_reg_only">
						<label>Membership only by invitation:</label>
						<input type="radio" name="invite_reg_only" value="Y" <?php if ($this->setting['invite_reg_only'] == 'Y') { ?> checked="true"<?php } ?>/>
						Yes
						<input type="radio" name="invite_reg_only" value="N" <?php if ($this->setting['invite_reg_only'] == 'N') { ?> checked="true"<?php } ?>/>
						No </p>
					<p groupid="2" name="username_rule">
						<label>Username rule:</label>
						<label>
						<input type="radio" value="1" name="username_rule" <?php if ($this->setting['username_rule'] == '1') { ?> checked="true"<?php } ?>>
						All character/alphabet/number/underscode </label>
						<label>
						<input type="radio" value="2" name="username_rule" <?php if ($this->setting['username_rule'] == '2') { ?> checked="true"<?php } ?>>
						alphabet/number/underscode</label>
						<label>
						<input type="radio" value="3" name="username_rule" <?php if ($this->setting['username_rule'] == '3') { ?> checked="true"<?php } ?>>
						Non UTF-8</label>
					</p>
					<p>
						<label>Minimum number of characters of username:
						<input name="username_length_min" class="text-input small-int" type="text" value="<?php echo $this->setting['username_length_min']; ?>"/></label>
						<label>Maximum number or characters of username:
						<input name="username_length_max" class="text-input small-int" type="text" value="<?php echo $this->setting['username_length_max']; ?>"/></label>
					</p>

					<p groupid="2" name="register_agreement">
						<label>User Registration Agreement:</label>
						<textarea name="register_agreement" cols="100" rows="3" id="register_agreement"><?php echo $this->setting['register_agreement']; ?></textarea>
					</p>
					<p groupid="2" name="censoruser">
						<label>Username cannot contain the following keywords: <span style=" font-weight:normal;">(One keyword on each row, ie. admin, editor etc)</span></label>
						<textarea name="censoruser" cols="100" rows="3" id="censoruser"><?php echo $this->setting['censoruser']; ?></textarea>
					</p>
					<p groupid="2" name="def_focus_uids">
						<label>Default user ID after registration: <span style=" font-weight:normal;">(Separate multiple ID with "," )</span></label>
						<input name="def_focus_uids" class="text-input small-input" type="text" value="<?php echo $this->setting['def_focus_uids']; ?>"/>
					</p>
					<p groupid="2" name="welcome_recommend_users">
						<label>Recommend list of user when login for the first time: <span style=" font-weight:normal;">(Enter username, if there are multiple username please use "," to separate, system will automatically assign if blank)</span></label>
						<input name="welcome_recommend_users" class="text-input small-input" type="text" value="<?php echo $this->setting['welcome_recommend_users']; ?>"/>
					</p>
					<p groupid="2" name="newer_invitation_num">
						<label>Number of invitations new users get with registration:</label>
						<input name="newer_invitation_num" class="text-input small-int" type="text" value="<?php echo $this->setting['newer_invitation_num']; ?>"/>
					</p>
					<p groupid="2" name="newer_invitation_num">
						<label>System send Welcome Letter when new user register:</label>
						<label>Private letter:</label>
						<textarea id="welcome_message_pm" rows="3" cols="100" name="welcome_message_pm"><?php echo $this->setting['welcome_message_pm']; ?></textarea>
						<label>E-mail:</label>
						<textarea id="welcome_message_email" rows="3" cols="100" name="welcome_message_email"><?php echo $this->setting['welcome_message_email']; ?></textarea>
					</p>
					<p>Welcome Letter content, replace content for the variables: <br />{username} : Username<br />{time} : time sent<br />{sitename} : Site name</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>