<?php
global $sap;
wp_enqueue_script('jquery-validate',plugins_url("wpmarketplace/js/jquery.validate.js"));
?>
<div class="step-title">
<h2><?php echo __("Register / Login","wpmarketplace");?></h2>
</div>
<div style="<?php if($current_user->ID)echo "display:none";else echo "";?>" class="step a-item" id="csl">
<div class="col2-set">
<div class="col-1">
<h3><?php echo __("Register","wpmarketplace");?></h3>
<p><?php echo __("Register with us for future convenience:","wpmarketplace");?></p>
<div style="display: none;" id="rloading_first"><img src="<?php echo home_url();?>/wp-admin/images/loading.gif" /></div><div id="rloading_message"></div>
<form method="post" action="<?php the_permalink(); echo $sap; ?>checkout_register=register" id="registerform" name="registerform" >
<input type="hidden" name="permalink" value="<?php the_permalink(); ?>" />
<ul class="form-list">
<li>
<label ><?php echo __("Username","wpmarketplace"); ?></label>
<input type="text" tabindex="10" class="input-text required" id="registerform_user_login" value="<?php echo $_SESSION['tmp_reg_info']['user_login']; ?>" name="reg[user_login]">
</li>
<li>
<label ><?php echo __("E-mail","wpmarketplace"); ?></label>
<input type="text" tabindex="20" class="input-text required email" id="registerform_user_email" value="<?php echo $_SESSION['tmp_reg_info']['user_email']; ?>" name="reg[user_email]">
</li>
<li>
<label ><?php echo __("Password","wpmarketplace"); ?></label>
<input type="password" tabindex="10" class="input-text required " id="registerform_user_pass" value="<?php echo $_SESSION['tmp_reg_info']['user_email']; ?>" name="reg[user_pass]">
</li>
</ul>
<div style="clear: both;"></div>
<h4><?php echo __("Register and save time!","wpmarketplace");?></h4>
<p><?php echo __("Register with us for future convenience:","wpmarketplace");?></p>
<ul class="ul">
<li><?php echo __("Fast and easy check out","wpmarketplace");?></li>
<li><?php echo __("Easy access to your order history and status","wpmarketplace");?></li>
</ul>
<button id="register_btn" class="button" type="submit"><span><span><?php echo __("Continue","wpmarketplace");?></span></span></button>
</form>
</div>
<div class="col-1">
<h3><?php echo __("Login","wpmarketplace");?></h3>
<div style="display: none;" id="loading_first"><img src="<?php echo home_url();?>/wp-admin/images/loading.gif" /></div><div id="loading_message"></div>
<form name="loginform" id="loginform" action="<?php the_permalink(); echo $sap; ?>&task=login" method="post" class="login-form" >
<input type="hidden" name="permalink" value="<?php the_permalink(); ?>" />
<h1><?php echo __("Login","wpmarketplace");?></h1>
<ul class="form-list">
<li>
<label for="user_login"><?php echo __("Username","wpmarketplace"); ?></label>
<input type="text" name="login[log]" id="loginform_user_login" class="input-text required" value="" size="20" tabindex="10" />
</li>
<li>
<label for="user_pass"><?php echo __("Password","wpmarketplace"); ?></label>
<input type="password" name="login[pwd]" id="loginform_user_pass" class="input-text required" value="" size="20" tabindex="20" />
</li>
</ul>
<p class="login-remember"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php echo __("Remember Me","wpmarketplace");?></label></p>
<p class="login-submit">
<button type="submit" name="wp-submit" id="wp-submit" class="button" tabindex="100" ><?php echo __("Log In","wpmarketplace");?></button>
<input type="hidden" name="redirect_to" value="<?php the_permalink(); ?>" />
</p>
<p> <br>
<a href='<?php the_permalink(); echo $sap; ?>task=forgotpass' class="delicious" style="font-size: 12pt;"><?php echo __("Forgot Password?","wpmarketplace");?></a>
</p>
<div style="clear: both;"></div>
</form>
</div>
</div>
<div style="clear: both;"></div>
</div>