<?php
defined('PHPFOX') or exit('NO DICE!');
?>
	<div id="js_register_step1">
		{plugin call='user.template_default_block_register_step1_3'}
		{if Phpfox::getParam('user.disable_username_on_sign_up') != 'username'}
            {if Phpfox::getParam('user.split_full_name')}
                <div><input type="hidden" name="val[full_name]" id="full_name" value="stock" size="30" /></div>
                <div class="table form-group">
                    <div class="table_right">
                        <input class="form-control" placeholder="{_p var='first_name'}" type="text" name="val[first_name]" id="first_name" value="{value type='input' id='first_name'}" size="30" />
                    </div>
                </div>
                <div class="table form-group">
                    <div class="table_right">
                        <input class="form-control" placeholder="{_p var='last_name'}" type="text" name="val[last_name]" id="last_name" value="{value type='input' id='last_name'}" size="30" />
                    </div>
                </div>
            {else}
                <div class="table form-group">
                    <div class="table_right">
                        <input class="form-control" placeholder="{_p var='full_name'}" type="text" name="val[full_name]" id="full_name" value="{value type='input' id='full_name'}" size="30" />
                    </div>
                </div>
            {/if}
		{/if}
		{if !Phpfox::getParam('user.profile_use_id') && (Phpfox::getParam('user.disable_username_on_sign_up') != 'full_name')}
            <div class="table form-group">
                <div class="table_right">
                    <input class="form-control" placeholder="{_p var='choose_a_username'}" type="text" name="val[user_name]" id="user_name" title="{_p var='your_username_is_used_to_easily_connect_to_your_profile'}" value="{value type='input' id='user_name'}" size="30" autocomplete="off" />
                    <div id="js_user_name_error_message"></div>
                    <div style="display:none;" id="js_verify_username"></div>
                </div>
            </div>
		{/if}
		{if Phpfox::getParam('user.reenter_email_on_signup')}
		    <div class="separate"></div>
		{/if}
		<div class="table form-group">
			<div class="table_right">
				<input class="form-control" placeholder="{_p var='email'}" type="text" name="val[email]" id="email" value="{value type='input' id='email'}" size="30" />
			</div>			
		</div>
		{if Phpfox::getParam('user.reenter_email_on_signup')}
            <div class="table form-group">
                <div class="table_right">
                    <div class="p_top_8">
                        <input class="form-control" type="text" name="val[confirm_email]" id="confirm_email" value="{value type='input' id='confirm_email'}" size="30" onblur="$('#js_form').ajaxCall('user.confirmEmail');" placeholder="{_p var='please_reenter_your_email_again'}"/>
                    </div>
                    <div id="js_confirm_email_error" style="display:none;"><div class="error_message">{_p var='email_s_do_not_match'}</div></div>
                </div>
            </div>
            <div class="separate"></div>
		{/if}
		{plugin call='user.template_default_block_register_step1_5'}
		<div class="table form-group">
			<div class="table_right">
				{if isset($bIsPosted)}
				<input class="form-control" placeholder="{_p var='password'}" type="password" name="val[password]" id="password" value="{value type='input' id='password'}" size="30" autocomplete="off" />
				{else}
				<input class="form-control" placeholder="{_p var='password'}" type="password" name="val[password]" id="password" value="" size="30" autocomplete="off" />
				{/if}
			</div>			
		</div>
		{plugin call='user.template_default_block_register_step1_4'}
	</div>