/*******************************************************************************
*      Mod "profile by onglet" :: version 1.0.4
*
*   ---------- Auteur --------------------------------------------------------
*   Auteur ::               Grummfy
*   Email ::                grummfy@yahoo.fr
*   Site Web ::             http://www.grummfy.com
*
*   ---------- Mod -----------------------------------------------------------
*   Nom ::                  MOD profile by onglet
*   Version ::               1.0.4
*   Compatible ::            FSB 1.0.0
*
*   Description :: Ce mod va sparer et rorganiser quelques peu le profil des membres.
*
*   Temps d'installation ::   ~3 minutes
*   Requete ::               Non
*   Cache ::               Non
*   Fichiers joints ::         0
*   Fichiers  modifier ::      4
*
*   ---------- Note ----------------------------------------------------------
*   Ncssite le mod onglet, inclu dans ce pack
* ---------- Historique ----------------------------------------------------
* Commenc :: Le 12 / 01 / 2005
* Dernire modification :: Le 20 / 08 / 2005
*
* Le 12 / 01 / 2005 ::
*	Premire version du mods
* Le 12 / 01 / 2005 ::
*	Oublie de la cle de langue
* Le 12 / 01 / 2005 ::
*	mise en conformiter avec la nouvel version du mods onglet (1.0.2)
* Le 31 / 01 / 2005 ::
*	compatibiliter avec rc3
* Le 20 /08 / 2005
*	Mise  jour du code et mise en conformiter avec le mod onglet 1.0.4
*
*******************************************************************************/

#
# [1] ---------- ouvrir ---------------------------------------------------------
#
profil.php

#
# [2] ---------- chercher -------------------------------------------------------
#
$membre = recuperer_session();

#
# [3] ---------- apres, ajouter -------------------------------------------------
#
// mods :: profile_by-onglet ---------------------------------------------------
// ajout
$onglet_cache[] = 'profil_';
$onglet_cache['max'] = ( isset($onglet_cache['max']) && $onglet_cache['max'] > 4) ? $onglet_cache['max'] : 4;
// fin ajout
// mods :: profile_by-onglet ---------------------------------------------------

#
# [4] ---------- chercher -------------------------------------------------------
#
	'L_NON' =>			$langue['non'],

#
# [5] ---------- apres, ajouter -------------------------------------------------
#
// mods :: profile_by-onglet ---------------------------------------------------
// ajout
	'L_MENU' =>			$langue['onglet_menu'],
// fin ajout
// mods :: profile_by-onglet ---------------------------------------------------

#
# [6] ---------- chercher -------------------------------------------------------
#
$tpl->pparse('corps');

#
# [7] ---------- avant, ajouter -------------------------------------------------
#
// mods :: profile_by-onglet ---------------------------------------------------
// ajout
if ($mode=='nouveau')
{
    $tpl->assign_block_vars('profil_onglet', array(
													'ID' => '1',
													'L_ONGLET' => $langue['profil_donnees'],
												)
											);
}
elseif ($mode == 'edite')
{
	$mon_menu_profile = array(
							array('1', $langue['profil_donnees']),
							array('2', $langue['preference']),
							array('3', $langue['gestion_avatar']),
							);
	foreach($mon_menu_profile as $value)
	{
		$tpl->assign_block_vars('profil_onglet', array(
														'ID' => $value[0],
														'L_ONGLET' => $value[1],
													)
												);
	}
}
// fin ajout
// mods :: profile_by-onglet ---------------------------------------------------

#
# [8] ---------- ouvrir ---------------------------------------------------------
#
langues/fr/langue_module.php

#
# [9] ---------- chercher -------------------------------------------------------
#
?>

#
# [10] ---------- avant, ajouter -------------------------------------------------
#
// mods :: profile_by-onglet ---------------------------------------------------
// ajout
$langue['onglet_menu'] = 'Menu';
// fin ajout
// mods :: profile_by-onglet ---------------------------------------------------

#
# [11] ---------- ouvrir ---------------------------------------------------------
#
themes/IceCold/profil_corps.tpl

#
# [12] ---------- chercher -------------------------------------------------------
#
<!-- ENDIF -->

#
# [13] ---------- apres, ajouter -------------------------------------------------
#
<table width="100%"><tr><td valign="top" width="200">
	<table width="200" align="center" class="tableau" cellspacing="0" cellpadding="3">
		<tr>
			<td class="td_titre" colspan="2" align="center" width="200">{L_MENU}</td>
		</tr>
		<!-- BEGIN profil_onglet -->
		<tr>
			<td id="onglet_profil_{profil_onglet.ID}" class="td_clair">
				<a href="#profil_{profil_onglet.ID}" onclick="onglet('profil_','{profil_onglet.ID}')">{profil_onglet.L_ONGLET}</a>
			</td>
		</tr>
		<!-- END profil_onglet -->
	</table>
</td>
<td>
<a name="_hier"></a>
<div id="profil_1">

#
# [14] ---------- chercher -------------------------------------------------------
#
		<tr>
			<td class="td_profil_bas">{L_EMAIL}* :</td>
			<td width="500" class="td_profil2_bas"><input type="text" name="email" value="{V_EMAIL}" maxlength="40" size="30" /></td>
		</tr>

#
# [15] ---------- apres, ajouter -------------------------------------------------
#
		<tr>
			<td colspan="2" align="center" class="td_titre"><input type="submit" name="soumettre" class="boutton" value="{L_SOUMETTRE}" /></td>
		</tr>
	</table>
</div>
<noscript>
<br /><br />
</noscript>
<div id="profil_2">
	<table width="100%" align="center" class="tableau" cellspacing="0" cellpadding="6">

#
# [16] ---------- chercher -------------------------------------------------------
#
		<tr>
			<td class="td_profil_bas">{L_VISION_MAIL} :</td>
			<td class="td_profil2_bas">
				<input type="radio" name="vision_mail" value="1" {V_MAIL_OUI} /> {L_OUI}&nbsp;&nbsp; 
				<input type="radio" name="vision_mail" value="0" {V_MAIL_NON} /> {L_NON}
			</td>
		</tr>
		<!-- ENDIF -->

#
# [17] ---------- remplacer par --------------------------------------------------
#
		<tr>
			<td class="td_profil_bas">{L_VISION_MAIL} :</td>
			<td class="td_profil2_bas">
				<input type="radio" name="vision_mail" value="1" {V_MAIL_OUI} /> {L_OUI}&nbsp;&nbsp; 
				<input type="radio" name="vision_mail" value="0" {V_MAIL_NON} /> {L_NON}
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center" class="td_titre"><input type="submit" name="soumettre" class="boutton" value="{L_SOUMETTRE}" /></td>
		</tr>
		<!-- ENDIF -->
	</table>
</div>
<noscript>
<br /><br />
</noscript>
<div id="profil_3">
	<table width="100%" align="center" class="tableau" cellspacing="0" cellpadding="6">

#
# [18] ---------- chercher -------------------------------------------------------
#
		<!-- ENDIF -->
		<tr>
			<td colspan="2" align="center" class="td_titre"><input type="submit" name="soumettre" class="boutton" value="{L_SOUMETTRE}" /></td>
		</tr>
	</table>

#
# [19] ---------- apres, ajouter -------------------------------------------------
#
</div>

</td></tr></table>