<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- title -->
    <title>{$settings.site_name}</title>
        <!-- fav icon -->
    <link rel="icon" href="assets/images/logo/fav-icon.png">
    <meta name="keywords" content="consulting, digital consultancy, Multi-Purpose, html, shop, ecommerce, digital agency, finance, consult agency" />
    <meta name="description" content="{$settings.site_name} - Multi-Purpose Consulting Business HTML5 Template">

        <!-- font icon -->
    <link rel="stylesheet" href="assets/css/all.min.css">
    <link rel="stylesheet" href="assets/css/fontawesome.min.css">
        <!-- flaticon -->
    <link rel="stylesheet" href="assets/webfonts/flaticon/flaticon.css">        
        <!-- bootstrap css -->
    <link rel="stylesheet" href="assets/vendors/css/bootstrap.min.css">  
            <!-- animate css -->
    <link rel="stylesheet" href="assets/animate/css/aos.css"> 
        <!-- slick slider  -->
    <link rel="stylesheet" href="assets/slick-slider/css/slick.css"> 
        <!-- popup-video -->
    <link rel="stylesheet" href="assets/popup-video/css/popup.css">  
        <!--  mobile menu css    -->
    <link rel="stylesheet" href="assets/css/menu.css"> 
        <!-- our own design  -->
    <link rel="stylesheet" href="assets/css/register.css">
    <link rel="stylesheet" href="assets/css/style.css">  
    <link rel="stylesheet" href="assets/css/responsive.css">

</head>
<body>
    <!-- preloader area start -->
    <div class="preloader" id="preloader">
        <div class="preloader-inner">
            <div class="spinner">
                <div class="dot1"></div>
                <div class="dot2"></div>
            </div>
        </div>
    </div>
    <!-- preloader area end -->
    <!-- Start Mobile Menu Area -->
    <div class="mobile-menu-area">
        <!--offcanvas menu area start-->
        <div class="off_canvars_overlay"></div>
        <div class="offcanvas_menu">
            <div class="offcanvas_menu_wrapper">
                <div class="canvas_close">
                    <a href="javascript:void(0)"><i class="far fa-times-circle"></i></a>  
                </div>
                <div class="mobile-logo text-center mb-30">
                    <a href="?a=home">
                        <img src="assets/images/logo/fav-icon.png" alt="logo">
                    </a>
                </div>
                <div id="menu" class="text-left ">
                    <ul class="offcanvas_main_menu">
                         <li class="menu-item-has-children"><a class="nav-link" href="?a=home">Home</a></li>
                        <li class="menu-item-has-children"><a class="nav-link" href="?a=about">About Us</a>
                        </li>
                        <li class="menu-item-has-children"><a class="nav-link" href="?a=faq">Faq's</a>
                         
                        </li>
                        {if $userinfo.logged != 1}
                        <li class="menu-item-has-children"><a class="nav-link" href="?a=login">Log In</a>
                          
                        </li>
                        <li class="menu-item-has-children"><a class="nav-link" href="?a=signup">Sign Up</a>
                          
                        </li>
                        {else}
                        <li class="menu-item-has-children"><a class="nav-link" href="?a=logout">Log Out</a>
                          
                        </li>
                        <li class="menu-item-has-children"><a class="nav-link" href="?a=account">Account</a>
                          
                        </li>
                        {/if}
                        <li class="menu-item-has-children"><a class="nav-link" href="?a=support">Contact Us</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!--offcanvas menu area end-->
    <!-- header area start -->
    <div class="header-area"> 
        <header>
            <div class="top-header">
                <div class="container">
                    <div class="top-header-inner top-header-style-1">
                        <div class="header-location"> 
                            <p><i class="flaticon-location-pin pr-10"></i>123 Kings Road Ave, Kingwood, FL, USA</p> 
                        </div>
                        <div class="header-right-portion d-flex align-items-center justify-content-between">
                            <div class="header-contact">
                                <a href="tel:+1(123)456789"><i class="flaticon-phone-call pr-10"></i>(800) 123-6789</a>
                            </div>
                            <div class="header-email">
                                <a href="mailto:info@example.com"><i class="flaticon-email pr-10"></i>info@{$settings.site_name}.com</a>
                            </div>
                            <div class="social-icon header-socials float-end">
                                <ul>
                                    <li><a href="#"><i class="fab fa-facebook-f"></i></a></li>
                                    <li><a href="#"><i class="fab fa-twitter"></i></a></li>
                                    <li><a href="#"><i class="fab fa-instagram-square"></i></a></li>
                                    <li><a href="#"><i class="fab fa-pinterest-p"></i></a></li>
                                    <li><a href="#"><i class="fab fa-linkedin-in"></i></a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="main-menu-area" id="myHeader"> 
                <div class="container">
                    <div class="main-menu-inner pos-relative">
                        <div class="logo">
                            <a href="?a=home<a href="?a=support" class="b-primary btn-style-1">Contact Us<i class="fas fa-long-arrow-alt-right"></i></a>"><img src="assets/images/logo/logo.png" alt="logo here" class="img-fluid"></a>
                        </div>
                        <div class="main-menu text-center"> 
                            <ul class="nav-links">
                                <li style="margin-left: 20px;"><a class="nav-link" href="?a=home">Home</a>
                                                                 
                                </li>
                                <li style="margin-left: 20px;"><a class="nav-link" href="?a=about">About Us</a>
                                 
                                </li>
                                <li style="margin-left: 20px;"><a class="nav-link" href="?a=faq">Faq's</a>
                              
                                </li>
                                {if $userinfo.logged != 1}
                                <li style="margin-left: 20px;"><a class="nav-link" href="?a=login">Log In</a>
                                    
                                </li>
                                <li style="margin-left: 20px;"> <a class="nav-link" href="?a=signup">Sign Up</a>
                                    
                                </li>
                            {else}
                            <li style="margin-left: 20px;"><a class="nav-link" href="?a=logout">Logout</a>
                                    
                                </li>
                                <li style="margin-left: 20px;"> <a class="nav-link" href="?a=account">Account</a>
                                    
                                </li>
                            {/if}
                            </ul>
                        </div>
                        <div class="main-menu-section">
                          <a href="?a=support" class="b-primary btn-style-1">Contact Us<i class="fas fa-long-arrow-alt-right"></i></a>                                
                        </div>
                        <div class="canvas_open">
                            <a href="javascript:void(0)">
                                <span></span>
                                <span></span>
                                <span></span>
                            </a>
                        </div>
                    </div>
                   
                    <!-- search popup end-->
                    <div class="body-overlay" id="body-overlay"></div>                      
                </div>
            </div>
        </header>
    </div>
<div class="banner-section">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-xl-6 p-0 text-center">
                    <div class="banner-content">
                        <h1 class="text-white" data-aos="fade-right">Register</h1>
                        <span data-aos="fade-left">Home &#187; Register</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- banner section Ends -->

    <!--Register  area Start -->
    <div class="register-section section-padding">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-10 text-center">
                    <div class="product-register-wrapper">
                        <div class="product-register-form">
                            <div class="form-title text-center pb-20">
                                <h3 class="product-title">Register</h3>
                                <p class="sub-title mb-3 pt-10">Best place to buy and sell digital products</p>
                            </div>
  {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.username.value.match(/^[A-Za-z0-9_\-]+$/)) {
    alert("For username you should use English letters and digits only!");
    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;
  }

  for (i in document.regform.elements) {
    f = document.regform.elements[i];
    if (f.name && f.name.match(/^pay_account/)) {
      if (f.value == '') continue;
      var notice = f.getAttribute('data-validate-notice');
      var invalid = 0;
      if (f.getAttribute('data-validate') == 'regexp') {
        var re = new RegExp(f.getAttribute('data-validate-regexp'));
        if (!f.value.match(re)) {
          invalid = 1;
        }
      } else if (f.getAttribute('data-validate') == 'email') {
        var re = /^[^\@]+\@[^\@]+\.\w{2,4}$/;
        if (!f.value.match(re)) {
          invalid = 1;
        }
      }
      if (invalid) {
        alert('Invalid account format. Expected '+notice);
        f.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 valid username! It should contains English letters and digits only.
   {/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 'email'} 
    <li>Please enter your e-mail!
   {/if}
   {if $errors[e] eq 'email2'} 
    <li>Please check your email!
   {/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}

   {if $errors[e] eq 'invalid_account_format'}
    {foreach from=$account_errors item=err}
    <li>{$err}
    {/foreach}
   {/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">
                                <div class="form-wrapper pb-40">
                                    <div class="form-item">
                                        <label>Your Full Name</label><br>
                                        <input type=text name=fullname value='{$frm.fullname|escape:"quotes"}' class="form-control" placeholder="Enter your Full Name">
                                    </div>
                                    <div class="form-item">
                                        <label>Username</label><br>
                                        <input type=text name=username value='{$frm.username|escape:"quotes"}' class="form-control" placeholder="Enter your Username" >
                                    </div>
                                    <div class="form-item">
                                        <label>Password</label><br>
                                        <input type=password name=password value='{$frm.password|escape:"quotes"}' class="form-control" placeholder="Enter your Password">
                                    </div>
                                    <div class="form-item">
                                        <label>Retype Password</label><br>
                                        <input type=password name=password2 value='{$frm.password2|escape:"quotes"}' class="form-control" placeholder="Retype Password" >
                                    </div>
                                    {if $settings.use_transaction_code}
                                    <div class="form-item">
                                        <label>Transaction Code</label><br>
                                        <input type=password name=transaction_code value='{$frm.transaction_code|escape:"quotes"}' class="form-control" placeholder="Transaction Code" >
                                    </div>
                                    <div class="form-item">
                                        <label>Retype Transaction Code</label><br>
                                        <input type=password name=transaction_code2 value='{$frm.transaction_code2|escape:"quotes"}' class="form-control" placeholder="Retype Transaction Code" >
                                    </div>
                                    {/if}
                                    {foreach from=$pay_accounts item=ps}
                                    <div class="form-item">
                                        <label>Your {$ps.name} Account</label><br>
                                        <input  class="form-control" type=text 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.validate.placeholder|escape:html}">
                                    </div>
                                    {/foreach}
{foreach item=p from=$mpay_accounts}
{foreach item=ps from=$p.accounts}
                                    <div class="form-item">
                                        <label>Your {$p.name} {$ps.name}</label><br>
                                        <input  class="form-control" placeholder="Your {$p.name} {$ps.name}" type=text name="pay_account[{$p.id}][{$ps.name|escape:html}]" value="{$ps.value|escape:html}">
                                    </div>
                                    {/foreach}
{/foreach}
                                    <div class="form-item">
                                        <label>Your E-mail Address</label><br>
                                        <input type=text name=email value='{$frm.email|escape:"quotes"}' class="form-control" placeholder="Enter your E-mail Address" >
                                    </div>
                                    <div class="form-item">
                                        <label>Retype Your E-mail</label><br>
                                        <input type=text name=email1 value='{$frm.email1|escape:"quotes"}' class="form-control" placeholder="Retype Your E-mail" >
                                    </div>
                                </div>
                                <div class="form-item">
                                        <label>Your Upline</label><br>
                                        <input type="text" value="{$referer.username|escape:html}" placeholder="Your Upline" disabled="" class="form-control" >
                                    </div>
                                    <div class="form-item">
                                        <br>
                                        <input type=checkbox name=agree value=1 {if $frm.agree}checked{/if} > I agree with <a href="?a=rules">Terms and conditions</a>
                                    </div>
                                <button class="b-primary d-block m-auto" type="submit">Register</button>
                            </form>
                            {/if}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{include file="footer.tpl"}
