{include file="logo.tpl"}
 
	<div class="sub-page">
		<div class="container"><div class="form-box">
	<h1 class="text-center">Sign up</h1>
	
	
{if $deny_registration}
 We are closed for new registrations now.
{elseif $settings.use_referal_program && $settings.force_upline && !$referer && !$settings.get_rand_ref}
 You  do not have a upline. Our system require a upline for each user.
{else}
 {literal}

 <script language=javascript>
 function checkform() {
  if (document.regform.fullname.value == '') {
    alert("Please enter your full name!");
    document.regform.fullname.focus();
    return false;
  }
 {/literal}
 {if $settings.use_user_location == 1}
 {literal}
  if (document.regform.address.value == '') {
    alert("Please enter your address!");
    document.regform.address.focus();
    return false;
  }
  if (document.regform.city.value == '') {
    alert("Please enter your city!");
    document.regform.city.focus();
    return false;
  }
  if (document.regform.state.value == '') {
    alert("Please enter your state!");
    document.regform.state.focus();
    return false;
  }
  if (document.regform.zip.value == '') {
    alert("Please enter your ZIP!");
    document.regform.zip.focus();
    return false;
  }
  if (document.regform.country.options[document.regform.country.selectedIndex].text == '--SELECT--') {
    alert("Please choose your country!");
    document.regform.country.focus();
    return false;
  }
 {/literal}
 {/if}
 {literal}
  if (document.regform.username.value == '') {
    alert("Please enter your username!");
    document.regform.username.focus();
    return false;
  }
  if (document.regform.password.value == '') {
    alert("Please enter your password!");
    document.regform.password.focus();
    return false;
  }
  if (document.regform.password.value != document.regform.password2.value) {
    alert("Please check your password!");
    document.regform.password2.focus();
    return false;
  }
 {/literal}
 {if $settings.use_transaction_code}
 {literal}
  if (document.regform.transaction_code.value == '') {
    alert("Please enter your transaction code!");
    document.regform.transaction_code.focus();
    return false;
  }
  if (document.regform.transaction_code.value != document.regform.transaction_code2.value) {
    alert("Please check your transaction code!");
    document.regform.transaction_code2.focus();
    return false;
  }
 {/literal}
 {/if}
 {literal}
  if (document.regform.email.value == '') {
    alert("Please enter your e-mail address!");
    document.regform.email.focus();
    return false;
  }
  if (document.regform.email.value != document.regform.email1.value) {
    alert("Please retupe your e-mail!");
    document.regform.email.focus();
    return false;
  }
  if (document.regform.agree.checked == false) {
    alert("You have to agree with the Terms and Conditions!");
    return false;
  }
  return true;
 }

 function IsNumeric(sText) {
  var ValidChars = "0123456789";
  var IsNumber=true;
  var Char;
  if (sText == '') return false;
  for (i = 0; i < sText.length && IsNumber == true; i++) { 
    Char = sText.charAt(i); 
    if (ValidChars.indexOf(Char) == -1) {
      IsNumber = false;
    }
  }
  return IsNumber;
 }
 </script>
 {/literal}
 
 {if $errors}
  <ul style="color:red">
  {section name=e loop=$errors} 
   {if $errors[e] eq 'full_name'}
    <li>Please enter your full name!
   {/if}
   {if $errors[e] eq 'address'}
    <li>Please enter your address!
   {/if}
   {if $errors[e] eq 'city'}
    <li>Please enter your city!
   {/if}
   {if $errors[e] eq 'state'}
    <li>Please enter your state!
   {/if}
   {if $errors[e] eq 'zip'}
    <li>Please enter your zip!
   {/if}
   {if $errors[e] eq 'country'}
    <li>Please choose your country!
   {/if}
   {if $errors[e] eq 'username'}
    <li>Please enter your username!
   {/if}
   {if $errors[e] eq 'username_exists'}
    <li>Sorry, such user already exists! Please try another username. 
   {/if}
   {if $errors[e] eq 'email_exists'}
    <li>Sorry, such email already exists! Please try another email. 
   {/if} 
   {if $errors[e] eq 'password'} 
    <li>Please enter a password!
   {/if}
   {if $errors[e] eq 'password_confirm'}
    <li>Please check your password!
   {/if}
   {if $errors[e] eq 'password_too_small'}
    <li>The password you provided is too small, please enter at least {$settings.min_user_password_length} characters!
   {/if} 
   {if $errors[e] eq 'transaction_code'} 
    <li>Please enter the Transaction Code!
   {/if} 
   {if $errors[e] eq 'transaction_code_confirm'} 
    <li>Please check your Transaction Code!
   {/if}
   {if $errors[e] eq 'transaction_code_too_small'}
    <li>The Transaction Code you provided is too small, please enter at least {$settings.min_user_password_length} characters!
   {/if}
   {if $errors[e] eq 'transaction_code_vs_password'} 
    <li>The Transaction Code should differ from the Password!
   {/if}
   {if $errors[e] eq 'egold'} 
    <li>Please enter your e-gold account number!
   {/if}
   {if $errors[e] eq 'email'} 
    <li>Please enter your e-mail!
   {/if}
   {if $errors[e] eq 'agree'}
    <li>You have to agree with the Terms and Conditions!
   {/if}
   {if $errors[e] eq 'turing_image'}
    <li>Enter the verification code as it is shown in the corresponding box.
   {/if} 
   {if $errors[e] eq 'no_upline'}
    <li>The system requires an upline to register. {if $settings.get_rand_ref}You have to be agreed to random one or found a referral link in the net.{/if}
   {/if} 
   {if $errors[e] eq 'ip_exists_in_database'}
    <li>Your IP already exists in our database. Sorry, but registration impossible.
   {/if}

   <br> 
  {/section}
  </ul>
 {/if} 
 
 <form method=post onsubmit="return checkform()" name="regform">
<input type=hidden name=a value="signup">
<input type=hidden name=action value="signup">

 

<label><span class="icon-envelope-shape"></span> Full Name*</label>
		<input type="text" placeholder="Full Name" name=fullname value="{$frm.fullname|escape:"quotes"}" autocomplete="off">
		
		
		<label><span class="icon-envelope-shape"></span> Username*</label>
		<input type="text" placeholder="Username" name=username value="{$frm.username|escape:"quotes"}" autocomplete="off">
		
		  
		<label><span class="icon-envelope-shape"></span> Email*</label>
		<input type="text"  data-focusout-call="true" data-validate="email" placeholder="example@gmail.com" name=email value="{$frm.email|escape:"quotes"}" >
		
		
		<label><span class="icon-envelope-shape"></span>Retype Email*</label>
		<input type="text" data-focusout-call="true" data-validate="email" placeholder="example@gmail.com" name=email1 value="{$frm.email1|escape:"quotes"}" autocomplete="off">
		
		

		<label><span class="icon-lock-shape"></span> Password*</label>
		<div class="password">
			<input type="password"  placeholder="Qwerty123!@#" name=password value="{$frm.password|escape:"quotes"}">
			<div class="show-password"></div>
		</div>
		
		
		<label><span class="icon-lock-shape"></span> Retype Password*</label>
		<div class="password">
			<input type="password" placeholder="Qwerty123!@#" name=password2 value="{$frm.password2|escape:"quotes"}">
			<div class="show-password"></div>
		</div>
		
		

		<div class="strength-password">
			<span class="info" data-info="The password may include Latin, Cyrillic, numbers and special characters" data-weak="Password is too weak" data-medium="Password is not strong enough" data-strong="Your password is strong.">The password may include Latin, Cyrillic, numbers and special characters</span>
			<div class="indicator mt-2"><span></span></div>
		</div>

		<div class="important-text">At least 8 characters, the password must contain uppercase and lowercase letters, a number and a special character</div><br>
		
		<label><span class="icon-lock-shape"></span> Wallets*</label>
		
{foreach from=$pay_accounts item=ps}
<div class="col-md-12 col-sm-12 col-xs-12">
<input type=text class="form-control" size=30 name="pay_account[{$ps.id}]" value="{$ps.account|escape:html}" data-validate="{$ps.validate.func}" data-validate-{$ps.validate.func}="{$ps.validate[$ps.validate.func]}" data-validate-notice="{$ps.validate.notification|escape:html}" placeholder="{$ps.name}">
  </div>
{/foreach}
{foreach item=p from=$mpay_accounts}
{foreach item=ps from=$p.accounts}
<div class="col-md-12 col-sm-12 col-xs-12">
<input type=text class="form-control" size=30 name="pay_account[{$p.id}][{$ps.name|escape:html}]" value="{$ps.value|escape:html}" placeholder="{$p.name} {$ps.name}">
  </div>
{/foreach}
{/foreach}

<br>
		
		
		<label><span class="icon-lock-shape"></span> <b>KYC Document Upload</b> </label><br>
		
		<p>Click on the "Choose File" button to upload your Government issued ID Card (Front & Back page) respectively:</p>
				
				<div class="uk-margin">
				<input name=idcard value=""  class="uk-input" placeholder="Front Page ID Card" maxlength="50" type="file"  />			
				</div>
				
				<div class="uk-margin">
				<input name=idcard value=""  class="uk-input" placeholder="Back Page ID Card" maxlength="50" type="file"  />			
				</div>

		<label><span class="icon-ref-shape"></span>Partner ID</label>
		<input type="text"  value=" {if $referer}
 {*<a href="mailto:{$referer.email}">*}{$referer.name}{*</a>*} ({$referer.username}) {else}No upline{/if}" disabled>
		
		<div class="checkbox">
			<input type="checkbox" name=agree value=1 {if $frm.agree}checked{/if}>
			<div class="checkmark"></div>
			<span>I am over 18 years old and I agree to the <a href="/?a=rules"> terms and conditions{$settings.site_name}</a></span>
		</div>
		
		{include file="captcha.tpl" action="signup"}
		
		<button class="btn-fill w-100"  type="submit">Create an account</button>
	</form>
	{/if}
	<div class="progress-request"></div>
</div>
</div>
</div>
</div>{include file="footer.tpl"}