<?php /* Smarty version 2.6.2, created on 2012-12-15 14:12:33
         compiled from signup.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'myescape', 'signup.tpl', 5, false),array('modifier', 'escape', 'signup.tpl', 201, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

      <h1>Registration</h1>
<div class="regpage">
<?php if (((is_array($_tmp=$this->_tpl_vars['deny_registration'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
 We are closed for new registrations now.
<?php elseif (((is_array($_tmp=$this->_tpl_vars['settings']['use_referal_program'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) && ((is_array($_tmp=$this->_tpl_vars['settings']['force_upline'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) && ! ((is_array($_tmp=$this->_tpl_vars['referer'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) && ! ((is_array($_tmp=$this->_tpl_vars['settings']['get_rand_ref'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
 You  do not have a upline. Our system require a upline for each user.
<?php else: ?>
 <?php echo '

 <script language=javascript>
 function checkform() {
  if (document.regform.fullname.value == \'\') {
    alert("Please enter your full name!");
    document.regform.fullname.focus();
    return false;
  }
 '; ?>

 <?php if (((is_array($_tmp=$this->_tpl_vars['settings']['use_user_location'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
 <?php echo '
  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;
  }
 '; ?>

 <?php endif; ?>
 <?php echo '
  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;
  }
 '; ?>

 <?php if (((is_array($_tmp=$this->_tpl_vars['settings']['use_transaction_code'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
 <?php echo '
  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;
  }
 '; ?>

 <?php endif; ?>
 <?php echo '
  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>
 '; ?>

 
 <?php if (((is_array($_tmp=$this->_tpl_vars['errors'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
  <ul style="color:red; clear:both;">
  <?php if (isset($this->_sections['e'])) unset($this->_sections['e']);
$this->_sections['e']['name'] = 'e';
$this->_sections['e']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['errors'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['e']['show'] = true;
$this->_sections['e']['max'] = $this->_sections['e']['loop'];
$this->_sections['e']['step'] = 1;
$this->_sections['e']['start'] = $this->_sections['e']['step'] > 0 ? 0 : $this->_sections['e']['loop']-1;
if ($this->_sections['e']['show']) {
    $this->_sections['e']['total'] = $this->_sections['e']['loop'];
    if ($this->_sections['e']['total'] == 0)
        $this->_sections['e']['show'] = false;
} else
    $this->_sections['e']['total'] = 0;
if ($this->_sections['e']['show']):

            for ($this->_sections['e']['index'] = $this->_sections['e']['start'], $this->_sections['e']['iteration'] = 1;
                 $this->_sections['e']['iteration'] <= $this->_sections['e']['total'];
                 $this->_sections['e']['index'] += $this->_sections['e']['step'], $this->_sections['e']['iteration']++):
$this->_sections['e']['rownum'] = $this->_sections['e']['iteration'];
$this->_sections['e']['index_prev'] = $this->_sections['e']['index'] - $this->_sections['e']['step'];
$this->_sections['e']['index_next'] = $this->_sections['e']['index'] + $this->_sections['e']['step'];
$this->_sections['e']['first']      = ($this->_sections['e']['iteration'] == 1);
$this->_sections['e']['last']       = ($this->_sections['e']['iteration'] == $this->_sections['e']['total']);
?> 
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'full_name'): ?>
    <li>Please enter your full name!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'address'): ?>
    <li>Please enter your address!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'city'): ?>
    <li>Please enter your city!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'state'): ?>
    <li>Please enter your state!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'zip'): ?>
    <li>Please enter your zip!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'country'): ?>
    <li>Please choose your country!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'username'): ?>
    <li>Please enter your username!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'username_exists'): ?>
    <li>Sorry, such user already exists! Please try another username. 
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'email_exists'): ?>
    <li>Sorry, such email already exists! Please try another email. 
   <?php endif; ?> 
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'password'): ?> 
    <li>Please enter a password!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'password_confirm'): ?>
    <li>Please check your password!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'password_too_small'): ?>
    <li>The password you provided is too small, please enter at least <?php echo ((is_array($_tmp=$this->_tpl_vars['settings']['min_user_password_length'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 characters!
   <?php endif; ?> 
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'transaction_code'): ?> 
    <li>Please enter the Transaction Code!
   <?php endif; ?> 
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'transaction_code_confirm'): ?> 
    <li>Please check your Transaction Code!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'transaction_code_too_small'): ?>
    <li>The Transaction Code you provided is too small, please enter at least <?php echo ((is_array($_tmp=$this->_tpl_vars['settings']['min_user_password_length'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 characters!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'transaction_code_vs_password'): ?> 
    <li>The Transaction Code should differ from the Password!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'egold'): ?> 
    <li>Please enter your e-gold account number!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'email'): ?> 
    <li>Please enter your e-mail!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'agree'): ?>
    <li>You have to agree with the Terms and Conditions!
   <?php endif; ?>
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'turing_image'): ?>
    <li>Enter the verification code as it is shown in the corresponding box.
   <?php endif; ?> 
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'no_upline'): ?>
    <li>The system requires an upline to register. <?php if (((is_array($_tmp=$this->_tpl_vars['settings']['get_rand_ref'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>You have to be agreed to random one or found a referral link in the net.<?php endif; ?>
   <?php endif; ?> 
   <?php if (((is_array($_tmp=$this->_tpl_vars['errors'][$this->_sections['e']['index']])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)) == 'ip_exists_in_database'): ?>
    <li>Your IP already exists in our database. Sorry, but registration impossible.
   <?php endif; ?>

   <br> 
  <?php endfor; endif; ?>
  </ul>
 <?php endif; ?> 

<form method=post onsubmit="return checkform()" name="regform">
<input type=hidden name=a value="signup">
<input type=hidden name=action value="signup">

      <p class="txt">
        Please go to the &quot;Register&quot; page, and fill up the form there, to register yourself as a member of PerfectRoi. 
        After successful registration, you will have your personal account, which you can use to invest funds and earn profits.      
      </p>
      <h4>Personal and Account Information</h4>      
      <div class="signupbox">
        <div class="box1">
          <p class="icon icon1">Your Name:</p>
          <span class="inpbg"><input type=text name=fullname value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['frm']['fullname'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
" class=inpts size=30></span>
          <p class="icon icon1">Login:</p>
          <span class="inpbg"><input type=text name=username value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['frm']['username'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
" class=inpts size=30></span>
        </div>
        <div class="box1" style="position:relative; left:30px;">
          <p class="icon icon2">Email Address:</p>
          <span class="inpbg"><input type=text name=email value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['frm']['email'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
" class=inpts size=30></span>
          <p class="icon icon2">Repeat Email:</p>
          <span class="inpbg"><input type=text name=email1 value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['frm']['email1'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
" class=inpts size=30></span>
        </div>
        <div class="box1" style="float:right;">
          <p class="icon icon3">Password:</p>
          <span class="inpbg"><input type=password name=password value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['frm']['password'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
" class=inpts size=30></span>
          <p class="icon icon3">Repeat Password:</p>
          <span class="inpbg"><input type=password name=password2 value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['frm']['password2'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
" class=inpts size=30></span>
        </div>
      </div>
      
      <h4>Security Question and Payment Properties</h4>
      <div class="signupbox">
        <div class="box2">
          <p class="icon icon4">Secret Question:</p>
          <span class="inpbg"><input type=text name=sq value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['frm']['sq'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
" class=inpts size=30></span>
          <p class="icon icon4">Answer on Secret Question:</p>
          <span class="inpbg"><input type=text name=sa value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['frm']['sa'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
" class=inpts size=30></span>
        </div>

<?php if (isset($this->_sections['ps'])) unset($this->_sections['ps']);
$this->_sections['ps']['name'] = 'ps';
$this->_sections['ps']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['pay_accounts'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['ps']['show'] = true;
$this->_sections['ps']['max'] = $this->_sections['ps']['loop'];
$this->_sections['ps']['step'] = 1;
$this->_sections['ps']['start'] = $this->_sections['ps']['step'] > 0 ? 0 : $this->_sections['ps']['loop']-1;
if ($this->_sections['ps']['show']) {
    $this->_sections['ps']['total'] = $this->_sections['ps']['loop'];
    if ($this->_sections['ps']['total'] == 0)
        $this->_sections['ps']['show'] = false;
} else
    $this->_sections['ps']['total'] = 0;
if ($this->_sections['ps']['show']):

            for ($this->_sections['ps']['index'] = $this->_sections['ps']['start'], $this->_sections['ps']['iteration'] = 1;
                 $this->_sections['ps']['iteration'] <= $this->_sections['ps']['total'];
                 $this->_sections['ps']['index'] += $this->_sections['ps']['step'], $this->_sections['ps']['iteration']++):
$this->_sections['ps']['rownum'] = $this->_sections['ps']['iteration'];
$this->_sections['ps']['index_prev'] = $this->_sections['ps']['index'] - $this->_sections['ps']['step'];
$this->_sections['ps']['index_next'] = $this->_sections['ps']['index'] + $this->_sections['ps']['step'];
$this->_sections['ps']['first']      = ($this->_sections['ps']['iteration'] == 1);
$this->_sections['ps']['last']       = ($this->_sections['ps']['iteration'] == $this->_sections['ps']['total']);
?>

<p class="icon icon5">Your <?php echo ((is_array($_tmp=$this->_tpl_vars['pay_accounts'][$this->_sections['ps']['index']]['name'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
 Account:</p>
<span class="inpbg"><input type=text class=inpts size=30 name=pay_account[<?php echo ((is_array($_tmp=$this->_tpl_vars['pay_accounts'][$this->_sections['ps']['index']]['id'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
] value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['pay_accounts'][$this->_sections['ps']['index']]['account'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></span>

<?php endfor; endif; ?>

      </div>

<?php if (((is_array($_tmp=$this->_tpl_vars['settings']['use_referal_program'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
  <p class="upline">
  <?php if (((is_array($_tmp=$this->_tpl_vars['referer'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
  Your Upline:  (<?php echo ((is_array($_tmp=$this->_tpl_vars['referer']['username'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp)); ?>
)
  <?php else: ?>
    <?php if (((is_array($_tmp=$this->_tpl_vars['settings']['force_upline'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>
     <?php if (((is_array($_tmp=$this->_tpl_vars['settings']['get_rand_ref'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>

        You do not have an upline. Our system requires an upline for each user. You'll have to agree to get a random one or find a referral link on the net.
        <input type=checkbox name="rand_ref" value=1>
     <?php else: ?>
        You do not have an upline. Our system requires an upline for each user.
     <?php endif; ?>
    <?php endif; ?>
  <?php endif; ?>
  </p>
<?php endif; ?>


      <p style="text-align:center;">
      <input type=checkbox name=agree value=1 <?php if (((is_array($_tmp=$this->_tpl_vars['frm']['agree'])) ? $this->_run_mod_handler('myescape', true, $_tmp) : smarty_modifier_myescape($_tmp))): ?>checked<?php endif; ?> > I agree with <a href=?a=rules>Terms and conditions</a>
      <input type="image" src="images/signin_submit.png" onClick="document.regform.submit();" class="sbmt">
      </p>
</form>
</div>
<?php endif; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>