{include file='inc_header.tpl'}

	<!-- ######################################################################################################### -->

	<tr>
	  <td valign="top">
		<div id="leftcontent">
		  {include file='inc_left.tpl'}
		</div>
	  </td>

	  <!-- ######################################################################################################### -->

	  <td valign="top">
		<div id="centercontent">
		  {include file='inc_menu.tpl'}
		  <div id="produit_box_titre"><a href="./">Acceuil</a> > [ Votre compte<b>&nbsp;::&nbsp;</b><a href="historique_commande.php" title="Vos commandes">Vos commandes</a> ]
		  {if ($smarty.get.msg == 'ok')}
		  - <b class="green_ok">Vos modifications ont bien &eacute;t&eacute;s prisent en compte.</b>
		  {/if}
		  </div>
		  <div id="produit_box">

			{if ((isset($smarty.session.IDI)) or ($smarty.session.IDI > 0))}
			<form id="infos_perso" method="post" action="save_customer_data.php">
            <input type="hidden" name="Type" value="C" />
              <fieldset>
                <legend>Infos personnelles</legend>
			    <table width="100%">
			      <tr>
		    		<td align="right" width="25%">Civilit&eacute; :</td>
	    			<td align="left" width="75%"><select name="ID_Gender" id="C_ID_Gender" tabindex="1">{$C_ID_GENDER}</select></td>
    			  </tr>
			      <tr>
		    		<td align="right">Nom :</td>
	    			<td align="left"><input type="text" name="FirstName" id="C_FirstName" value="{$C_FIRSTNAME}" maxlength="50" tabindex="2" /></td>
    			  </tr>
			      <tr>
		    		<td align="right">Pr&eacute;nom :</td>
	    			<td align="left"><input type="text" name="LastName" id="C_LastName" value="{$C_LASTNAME}" size="40" maxlength="50" tabindex="3" /></td>
    			  </tr>
			      <tr>
			    	<td align="right">T&eacute;l&eacute;phone :</td>
		    		<td align="left"><input type="text" name="Telephone" id="C_Telephone" value="{$C_TELEPHONE}" size="40" maxlength="20" tabindex="4" /></td>
	    		  </tr>
    			  <tr>
			    	<td align="right">Portable :</td>
		    		<td align="left"><input type="text" name="Gsm" id="C_Gsm" value="{$C_GSM}" size="40" maxlength="20" tabindex="5" /></td>
	    		  </tr>
    			  <tr>
				    <td align="right">Email :</td>
			    	<td align="left"><input type="text" name="Email" id="C_Email" value="{$C_EMAIL}" size="40" maxlength="50" tabindex="6" /></td>
		    	  </tr>
	    		  <tr>
                    <td align="right">Mot de passe :</td>
                    <td align="left"><input type="password" name="Password" id="C_Password" size="40" maxlength="20" tabindex="7" /></td>
                  </tr>
                  <tr>
    				<td align="right">Confirmez le mot de passe :</td>
				    <td align="left"><input type="password" name="Password_confirm" id="C_Password_confirm" size="40" maxlength="20" tabindex="8" /></td>
			      </tr>
                  <tr>
                    <td align="right">&nbsp;</td>
                    <td align="left"><input type="button" value="Modifier" style="width: 70px;" onClick="checkForm('infos_perso')" tabindex="9" /></td>
                  </tr>
                </table>
              </fieldset>
            </form>

            <form id="facturation" method="post" action="save_customer_data.php">
            <input type="hidden" name="Type" value="B" />
              <fieldset>
                <legend>Adresse de facturation</legend>
                <table width="100%">
                  <tr>
                    <td align="right" width="25%">Civilit&eacute; :</td>
                    <td align="left" width="75%"><select name="ID_Gender" id="B_ID_Gender" tabindex="10">{$B_ID_GENDER}</select></td>
                  </tr>
                  <tr>
                    <td align="right">Nom :</td>
                    <td align="left"><input type="text" name="FirstName" id="B_FirstName" tabindex="11" value="{$B_FIRSTNAME}" /></td>
                  </tr>
                  <tr>
                    <td align="right">Pr&eacute;nom :</td>
                    <td align="left"><input type="text" name="LastName" id="B_LastName" tabindex="12" value="{$B_LASTNAME}" /></td>
                  </tr>
                  <tr>
                    <td align="right">Pays :</td>
                    <td align="left"><select name="ID_Country" id="B_ID_Country" onChange="accountGeoData('StateList', 'B_ID_Country', 'B')" tabindex="13">{$B_ID_COUNTRY}</select></td>
                  </tr>
                  <tr>
                    <td align="right">D&eacute;partement :</td>
                    <td align="left"><div id="B_StateList"><select name="ID_State" id="B_ID_State" onChange="accountGeoData('CityList', 'B_ID_State', 'B')" tabindex="14">{$B_ID_STATE}</select></div></td>
                  </tr>
                  <tr>
                    <td align="right">Ville :</td>
                    <td align="left"><div id="B_CityList"><select name="B_ID_City" id="B_ID_City" tabindex="15">{$B_ID_CITY}</select></div></td>
                  </tr>
                  <tr>
                    <td align="right">Adresse :</td>
                    <td align="left"><textarea name="Street" id="B_Street" cols="30" rows="3" tabindex="16">{$B_STREET}</textarea></td>
                  </tr>
                  <tr>
                    <td align="right">&nbsp;</td>
                    <td align="left"><input type="button" value="Modifier" style="width: 70px;" onClick="checkForm('facturation')" tabindex="17" /></td>
                  </tr>
                </table>
              </fieldset>
            </form>

            <form id="livraison" method="post" action="save_customer_data.php">
            <input type="hidden" name="Type" value="D" />
              <fieldset>
                <legend>Adresse de livraison</legend>
                <table width="100%">
                  <tr>
                    <td align="right" width="25%">Civilit&eacute; :</td>
                    <td align="left" width="75%"><select name="ID_Gender" id="D_ID_Gender" tabindex="18">{$D_ID_GENDER}</select></td>
                  </tr>
                  <tr>
                    <td align="right">Nom :</td>
                    <td align="left"><input type="text" name="FirstName" id="D_FirstName" tabindex="19" value="{$D_FIRSTNAME}" /></td>
                  </tr>
                  <tr>
                    <td align="right">Pr&eacute;nom :</td>
                    <td align="left"><input type="text" name="LastName" id="D_LastName" tabindex="20" value="{$D_LASTNAME}" /></td>
                  </tr>
                  <tr>
                    <td align="right">Pays :</td>
                    <td align="left"><select name="ID_Country" id="D_ID_Country" onChange="accountGeoData('StateList', 'D_ID_Country', 'D')" tabindex="21">{$D_ID_COUNTRY}</select></td>
                  </tr>
                  <tr>
                    <td align="right">D&eacute;partement :</td>
                    <td align="left"><div id="D_StateList"><select name="ID_State" id="D_ID_State" onChange="accountGeoData('CityList', 'D_ID_State', 'D')" tabindex="22">{$D_ID_STATE}</select></div></td>
                  </tr>
                  <tr>
                    <td align="right">Ville :</td>
                    <td align="left"><div id="D_CityList"><select name="D_ID_City" id="D_ID_City" tabindex="23">{$D_ID_CITY}</select></div></td>
                  </tr>
                  <tr>
                    <td align="right">Adresse :</td>
                    <td align="left"><textarea name="Street" id="D_Street" cols="30" rows="3" tabindex="24">{$D_STREET}</textarea></td>
                  </tr>
                  <tr>
                    <td align="right">&nbsp;</td>
                    <td align="left"><input type="button" value="Modifier" style="width: 70px;" onClick="checkForm('livraison')" tabindex="25" /></td>
                  </tr>
                </table>
              </fieldset>
            </form>
            {/if}

		  </div>
		</div>
	  </td>

	  <!-- ######################################################################################################### -->

	</tr>
  </table>
</div>

{include file='inc_footer.tpl'}
<!--
<h2>Vos coordonn&eacute;es&nbsp;&nbsp;|&nbsp;&nbsp;
<a style="font-size: 0.8em;" href="historique_commande.php">Historique de vos commandes</a></h2>
-->
