{config_load file="lang" section='myaccount'}
		<div id="result_datas" style="display:none">
			<h1>{#result_manage_account#}</h1>
            <p id="err_req_last_name_missing" style="display:none;" class="error">{#missing_last_name#}</p>
            <p id="err_req_last_name" style="display:none;" class="error">{#format_last_name#}</p>
            <p id="err_req_first_name_missing" style="display:none;" class="error">{#missing_first_name#}</p>
			<p id="err_req_first_name" style="display:none;" class="error">{#format_first_name#}</p>
			<p id="err_company" style="display:none;" class="error">{#format_company#}</p>
			<p id="err_req_address_missing" style="display:none;" class="error">{#missing_address#}</p>
            <p id="err_req_address" style="display:none;" class="error">{#format_address#}</p>
            <p id="err_req_city_missing" style="display:none;" class="error">{#missing_city#}</p>
			<p id="err_req_city" style="display:none;" class="error">{#format_city#}</p>
            <p id="err_req_zipcode_missing" style="display:none;" class="error">{#missing_zipcode#}</p>
			<p id="err_req_zipcode" style="display:none;" class="error">{#format_zipcode#}</p>
            <p id="err_req_email_missing" style="display:none;" class="error">{#missing_email#}</p>
			<p id="err_req_email" style="display:none;" class="error">{#format_email#}</p>
            <p id="err_req_pseudo_missing" style="display:none;" class="error">{#missing_pseudo#}</p>
			<p id="err_req_pseudo" style="display:none;" class="error">{#format_pseudo#}</p>
            
			<p id="pseudo_used" style="display:none;" class="error">{#pseudo_already_used#}</p>
			<p id="lang_forbidden" style="display:none;" class="warning">{#lang_not_autorized#}</p>
			<p id="tpl_forbidden" style="display:none;" class="warning">{#template_not_autorized#}</p>
			<p id="account_is_ok" style="display:none;" class="success">{#result_manage_account_ok#}</p>
            
            <p id="err_req_password_missing" style="display:none;" class="error">{#missing_old_password#}</p>
            <p id="err_req_password" style="display:none;" class="error">{#format_old_password#}</p>
            <p id="err_req_new_password1_missing" style="display:none;" class="error">{#missing_new_password1#}</p>
            <p id="err_req_new_password1" style="display:none;" class="error">{#format_new_password1#}</p>
            <p id="err_req_new_password2_missing" style="display:none;" class="error">{#missing_new_password2#}</p>
            <p id="err_req_new_password2" style="display:none;" class="error">{#format_new_password2#}</p>
            
            <p id="pwd_not_ok" style="display:none;" class="error">{#incorrect_password#}</p>
            <p id="pwd_is_ok" style="display:none;" class="success">{#password_changed#}</p>
		</div>
		<div class="myaccount_table" id="form_myaccount_container">
        <h1>{#manage_my_account#}</h1>
		<form id="form_myaccount" action="">
		<p>{#msg_info_help#}</p>
			<table>
				<tr>
					<td>Nom</td>
					<td><input type="text" name="req_last_name" value="{$USER_INFOS->last_name}" id="req_last_name" /></td>
				</tr>
				<tr>
					<td>Prénom</td>
					<td><input type="text" name="req_first_name" value="{$USER_INFOS->first_name}" id="req_first_name" /></td>
				</tr>
				<tr>
					<td id="form_company" title="{#msg_company#}">Entreprise</td>
					<td><input type="text" name="company" value="{$USER_INFOS->company}" id="company" /></td>
				</tr>
				<tr>
					<td>Adresse</td>
					<td><input type="text" name="req_address" value="{$USER_INFOS->address}" id="req_address" /></td>
				</tr>
				<tr>
					<td>Ville</td>
					<td><input type="text" name="req_city" value="{$USER_INFOS->city}" id="req_city" /></td>
				</tr>
				<tr>
					<td>Code postal</td>
					<td><input type="text" name="req_zipcode" value="{$USER_INFOS->zipcode}" id="req_zipcode" /></td>
				</tr>
				<tr>
					<td id="form_email" title="{#msg_email#}">Email</td>
					<td><input type="text" name="req_email" value="{$USER_INFOS->email}" id="req_email" /></td>
				</tr>
				<tr>
					<td id="form_pseudo" title="{#msg_pseudo#}">Pseudonyme</td>
					<td><input type="text" name="req_pseudo" value="{$USER_INFOS->user}" id="req_pseudo" /></td>
				</tr>
				<tr>
					<td>Pays</td>
					<td>
						<select class="select" name="countrie" id="countrie_id">
							{foreach item=countrie from=$countries}
							{if $countrie->flag == $USER_INFOS->countrie}
							{assign var=selected value=" selected=\"selected\""}
							{else}
							{assign var=selected value=""}
							{/if}
							<option value="{$countrie->id}"{$selected}>{$countrie->countrie}</option>
							{/foreach}
						</select>
					</td>
				</tr>
				<tr>
					<td>Langue du panel</td>
					<td>
						<select class="select" name="lang" id="lang_id">
						{foreach item=countrie from=$countries}
						{if $countrie->is_lang == 'true'}
							{if $countrie->flag == $USER_INFOS->lang}
							{assign var=selected value=" selected=\"selected\""}
							{else}
							{assign var=selected value=""}
							{/if}
							<option value="{$countrie->id}"{$selected}>{$countrie->countrie}</option>
							
						{/if}
						{/foreach}	
						</select>
					</td>
				</tr>	
				<tr>
					<td id="form_template" title="{#msg_template#}">Theme du panel</td>
					<td>
						<select class="select" name="template" id="template">
						{foreach item=tpl from=$templates}
						{if $USER_INFOS->template == $tpl}
						{assign var=selected value="selected=\"selected\""}
						{else}
						{assign var=selected value=""}
						{/if}
							<option value="{$tpl}"{$selected}>{$tpl|ucwords}</option>
						{/foreach}
						</select>
					</td>
				</tr>	
				<tr>
					<td></td>
					<td style="text-align:center"><input type="button" value="Valider et modifier mes données" onclick="validateForm('form_myaccount');" /></td>
				</tr>
			</table>
		</form>
		</div>
		
		<div id="form_password_container">
        <h1>Modifier mon mot de passe</h1>
		<form id="form_password" action="">
			<table>
				<tr>
					<td>Ancien mot de passe</td>
					<td><input type="password" name="req_password" id="req_password" value="" /></td>
				</tr>
				<tr>
					<td>Nouveau mot de passe</td>
					<td><input type="password" name="req_new_password1" id="req_new_password1" value="" /></td>
				</tr>
				<tr>
					<td>Retaper</td>
					<td><input type="password" name="req_new_password2" id="req_new_password2" value="" /></td>
				</tr>
				<tr>
					<td></td>
					<td style="text-align:center;"><input type="button" value="Valider et modifier mon mot de passe" onclick="validateForm('form_password');" /></td>
				</tr>
			</table>
		</form>
		</div>
