<?php $this->load->view('site/templates/header'); ?>
<section>
    <div class="main">
        <div class="sign_in_container">
            <div class="sign_in_form">
                <div class="sign_in_form-inner">
                    <div class="sign_head">
                        <div class="sign_text">
                         <?php 	$user_sign_into = str_replace("{SITENAME}",$siteTitle,$this->lang->line('user_sign_into')); ?>  
            
                        	<h2><?php if($this->lang->line('user_sign_into') != '') { echo stripslashes($user_sign_into); } else echo 'Create an '.stripslashes($siteTitle).' account and start shopping'; ?></h2>
                        </div>
                        <div class="sign_div"><a id="fbsignin"  href="login"> <?php if($this->lang->line('user_signin') != '') { echo stripslashes($this->lang->line('user_signin')); } else echo 'Sign In'; ?></a></div>
                    </div>
                    <div class="register_container">
                        <div class="popup_tab_content">
                        	<?php   if ($this->config->item('facebook_app_id') != '' && $this->config->item('facebook_app_secret') != ''){?> 
                            <div class="fb_div">
                                <a style="margin:0" id="fbsignin" class="button-faceb" href="<?php echo base_url().'facebook/user.php'; ?>">
                                    <span> <?php if($this->lang->line('user_signup_use_fb') != '') { echo stripslashes($this->lang->line('user_signup_use_fb')); } else echo 'Sign Up Using Facebook'; ?> </span>
                                </a>
                            </div>
                            
                        	<p style="font-size:9px; margin:0 0 15px 44px; color:#666; width:auto; float:left">
                            
                            <?php 	$user_wo_ur_permis = str_replace("{SITENAME}",$siteTitle,$this->lang->line('user_wo_ur_permis')); ?> 
                            	<?php if($this->lang->line('user_wo_ur_permis') != '') { echo stripslashes($user_wo_ur_permis); } else echo 'Signing up will allow your friends to find you on '.stripslashes($siteTitle).". We'll never post without your permission"; ?>. 
                            </p>
                            <div class="or_div">
                            	<span><?php if($this->lang->line('user_or') != '') { echo stripslashes($this->lang->line('user_or')); } else echo 'OR'; ?></span>
                            </div>
							<?php } ?>
                            <form  method="post" onSubmit="return register_user();">
                                <div class="popup_login">
                                    <label><?php if($this->lang->line('user_fname') != '') { echo stripslashes($this->lang->line('user_fname')); } else echo 'First Name'; ?></label>
                                    <input type="text" class="search" style="margin:0" name="fullname" id="fullname"/>
                                    <span class="error" id="fullnameErr"></span>
                                </div>
                                <div class="popup_login">
                                    <label><?php if($this->lang->line('user_lname') != '') { echo stripslashes($this->lang->line('user_lname')); } else echo 'Last Name'; ?></label>
                                    <input type="text" class="search" style="margin:0" name="lastname" id="lastname"/>
                                    <span class="error" id="lastnameErr"></span>
                                </div>
                                <div class="popup_login">
                                    <input type="radio" style="float:left" name="gender" value="Male" checked/><span class="gen_check"><?php if($this->lang->line('user_male') != '') { echo stripslashes($this->lang->line('user_male')); } else echo 'Male'; ?></span>
                                    <input type="radio" style="float:left" name="gender" value="Female"/><span class="gen_check"><?php if($this->lang->line('user_female') != '') { echo stripslashes($this->lang->line('user_female')); } else echo 'Female'; ?></span>
                                    <input type="radio" style="float:left" name="gender" value="Unspecified"/><span class="gen_check"><?php if($this->lang->line('user_rather_not_say') != '') { echo stripslashes($this->lang->line('user_rather_not_say')); } else echo 'Rather not say'; ?></span>
                                </div>
                                <div class="div_line" style="margin:20px 0 0px 50px"></div>
                                <div class="popup_login">
                                    <label><?php if($this->lang->line('user_email') != '') { echo stripslashes($this->lang->line('user_email')); } else echo 'Email'; ?></label>
                                    <input type="text" class="search" style="margin:0" name ="email" id = "email"/>
                                    <span class="error" id="emailErr"></span> 
                                </div>
                                <div class="popup_login">
                                    <label><?php if($this->lang->line('user_password') != '') { echo stripslashes($this->lang->line('user_password')); } else echo 'Password'; ?></label>
                                    <input type="password" class="search" style="margin:0" name ="pwd" id = "pwd"/>
                                    <span class="error" id="user_passwordErr"></span>   
                                </div>
                                <div class="popup_login">
                                    <label><?php if($this->lang->line('user_confrm_pwd') != '') { echo stripslashes($this->lang->line('user_confrm_pwd')); } else echo 'Confirm Password'; ?></label>
                                    <input type="password" class="search" style="margin:0" name="Confirmpwd" id="Confirmpwd"/>
                                    <span class="error" id="user_ConfirmpasswordErr"></span>   
                                </div>
                                <div class="popup_login">
                                    <label><?php if($this->lang->line('user_uname') != '') { echo stripslashes($this->lang->line('user_uname')); } else echo 'Username'; ?></label>
                                    <input type="text" class="search" style="margin:0" name="username" id="username" />
                                    <span class="error" id="usernameErr"></span>
                                </div>
                                <div class="div_line" style="margin:20px 0 0px 50px"></div>
                                <p style="font-size:12px;  margin: 5px 0 4px 47px; color:#666; width:auto; float:left">								
								 <span style=" color: #999999;font-size: 11px;margin: 12px 0 5px;">
                                 <input type="checkbox" name="privacychecking" id="privacychecking"  checked="checked"/>
								 <?php if($this->lang->line('user_by_clk_rster') != '') { echo stripslashes($this->lang->line('user_by_clk_rster')); } else echo 'By clicking Register, you confirm that you accept our '; ?>
                                    <a href="pages/terms-conditions"><?php if($this->lang->line('user_touse') != '') { echo stripslashes($this->lang->line('user_touse')); } else echo 'Terms of Use'; ?></a> <?php if($this->lang->line('user_and') != '') { echo stripslashes($this->lang->line('user_and')); } else echo 'and'; ?><a href="pages/privacy-policy"> <?php if($this->lang->line('user_privacy_policy') != '') { echo stripslashes($this->lang->line('user_privacy_policy')); } else echo 'Privacy Policy'; ?></a></span>
                                    <br />
                                    <span class="error" id="PrivacyErr"></span>
                                </p>
                                <div style="width:100%;margin: 0 0 0 45px; font-size:12px" class="popup_login">
                                 <input type="checkbox" name="subscription" id="subscription" style="display:none;" />
                                 <?php 	/*$user_i_want_rcive = str_replace("{SITENAME}",$siteTitle,$this->lang->line('user_i_want_rcive')); ?>  
                                    <?php if($this->lang->line('user_i_want_rcive') != '') { echo stripslashes($user_i_want_rcive); } else echo 'I want to receive '.stripslashes($siteTitle)." Finds, a daily email of fresh trends and editors' picks.";*/ ?>
                                </div>
                                <div class="popup_login" style="margin-bottom:15px">						<?php if($this->input->get('action')!=''){?>						<input type="hidden" name="next_url" id="next_url" value="<?php echo $this->input->get('action');?>">						<?php }else{?>						<input type="hidden" name="next_url" id="next_url" value="">						<?php } ?>
                                    <input type="submit" class="submit_btn" value="<?php if($this->lang->line('user_register') != '') { echo stripslashes($this->lang->line('user_register')); } else echo 'Register'; ?>" />
                                    <span id="loadErr"></span>
                                </div>
                            </form>
                        </div>
                    </div>     
                </div>    
            </div>
        </div>
    </div>
</section>
<?php 
$this->load->view('site/templates/footer');
?>

 