<div id="menu3" class="tab-content">
	<form  id="update_form" method="post" action="options.php">
		<?php @settings_fields('themoneytizer_settings_group_five'); ?>
		<input type="hidden" name="themoney_is_registered" id="themoney_is_registered" value="4">
		<div style="width: 45%;">
			<h2><?php _e('COORDONNEES PERSONNEL','themoneytizer');?></h2>

			<table>
				<tr>
					<td><label for="nom_money"><?php _e('Nom*:','themoneytizer');?></label></td>
					<td><input style="width:215px;" type="text" name="nom_money" id="nom_money" value="<?php echo get_option('nom_money'); ?>" readonly></td>
				</tr>
				<tr>
					<td><label for="prenom_money"><?php _e('Prénom*:','themoneytizer');?></label></td>
					<td><input style="width:215px;" type="text" name="prenom_money" id="prenom_money" value="<?php echo get_option('prenom_money'); ?>" readonly></td>
				</tr>
				<tr>
					<td><label for="mail_money"><?php _e('Email*:','themoneytizer');?></label></td>
					<td><input style="width:215px;" type="text" name="mail_money" id="mail_money" value="<?php echo get_option('mail_money'); ?>" readonly></td>
				</tr>
				<tr>
					<td><label for="tel_money"><?php _e('Téléphone*:','themoneytizer');?></label></td>
					<td><input style="width:215px;" type="text" name="tel_money" id="tel_money" value="<?php echo get_option('tel_money'); ?>" ></td>
				</tr>
				<tr>
					<td><label for="adresse_money"><?php _e('Adresse*:','themoneytizer');?></label></td>
					<td><input style="width:215px;" type="text" name="adresse_money" id="adresse_money" value="<?php echo get_option('adresse_money'); ?>" ></td>
				</tr>
				<tr>
					<td><label for="ville_money"><?php _e('Ville*:','themoneytizer');?></label></td>
					<td><input style="width:215px;" type="text" name="ville_money" id="ville_money" value="<?php echo get_option('ville_money'); ?>" ></td>
				</tr>
				<tr>
					<td><label for="cp_money"><?php _e('Code postal*:','themoneytizer');?></label></td>
					<td><input style="width:215px;" type="text" name="cp_money" id="cp_money" value="<?php echo get_option('cp_money'); ?>" ></td>
				</tr>
				<tr>
					<td><label for="country_money"><?php _e('Pays*:','themoneytizer');?></label></td>
					<td>
						<select id="country_money" name="country_money">
							<?php include 'themoneytizer-country-list.php'; ?>
						</select>
					</td>
				</tr>

        <?php
        $aTypeStructure = [
            1 => ['id' => 'type_personne', 'name' => __("Une personne"), 'disabled' => true],
            2 => ['id' => 'type_auto_entrepreneur', 'name' => __("Auto-entrepreneur"), 'disabled' => false],
            3 => ['id' => 'type_association', 'name' => __("Une association"), 'disabled' => true],
            4 => ['id' => 'type_entreprise', 'name' => __("Une entreprise"), 'disabled' => false],
        ];
        $entreprise = get_option('user_entreprise_money');
        $type_structure = get_option('themoney_type_structure');

        if (get_option('themoney_locale') != 'fr_FR') {
        ?>
          <tr>
            <td>
              <input type="radio" name="themoney_type_structure" id="type_structure_1" <?php echo (!empty($entreprise) ? "disabled" : ""); ?> value="1" <?php echo ($type_structure == 1 ? "checked" : ""); ?>>
              <label for="type_structure_1"><?php _e("Une personne",'themoneytizer');?></label>
            </td>

            <td>
              <input type="radio" name="themoney_type_structure" id="type_structure_4" value="4" <?php echo ($type_structure == 4 ? "checked" : ""); ?>>
              <label for="type_structure_4"><?php _e("Une entreprise",'themoneytizer');?></label>
            </td>
          </tr>
        <?php } else { ?>
          <tr>
            <?php foreach ($aTypeStructure as $k => $v) { ?>
              <td class="centrar">
                <input name="themoney_type_structure" id="type_structure_<?php echo $k; ?>" type="radio" <?php echo ($v['disabled'] === true && !empty($entreprise) ? "disabled" : ""); ?> value="<?php echo $k; ?>" style="margin-bottom: 10px;" <?php echo ($type_structure == $k ? "checked" : ""); ?> /> <br>
                <label for="type_structure_<?php echo $k; ?>"><?php echo $v['name']; ?></label>
              </td>
            <?php } ?>
          </tr>
          <?php }?>
				<tr class="professionnel not-show" id="entreprise_money_user_up">
					<td>
            <label for="user_entreprise_money"><?php _e("Nom de l'entreprise:",'themoneytizer');?></label>
          </td>
					<td>
            <input style="width:215px;" type="text" name="user_entreprise_money" id="user_entreprise_money" value="<?php echo get_option('user_entreprise_money'); ?>" >
          </td>
				</tr>
				<tr class="professionnel not-show" id="siren_money_up">
					<td>
            <label for="user_siren_money"><?php _e('SIREN:','themoneytizer');?></label>
          </td>
					<td>
            <input style="width:215px;" type="text" name="user_siren_money" id="user_siren_money" value="<?php echo get_option('user_siren_money'); ?>" >
          </td>
				</tr>
				<tr id="tva_money_up" class="not-show" >
					<td>
            <label for="user_tva_money"><?php _e('N° de TVA intracommunautaire:','themoneytizer');?></label>
          </td>
					<td>
            <input style="width:215px;" type="text" name="user_tva_money" id="user_tva_money" value="<?php echo get_option('user_tva_money'); ?>" >
          </td>
				</tr>
			</table>
		</div>

		<br><br><br>
		<div>
			<input style="" type="submit"  id="submit_update" name="submit_update" class="bouton_money" value="<?php _e('Enregistrer','themoneytizer');?>" >
		</div>
	</form>
</div>