<?
// ------------------------------------------------------------------------- //
// <G a n e s h a> - Free Web Based Training System                          //
// ------------------------------------------------------------------------- //
// <G a n e s h a> - Plate-forme de téléformation gratuite et en open source //
// ------------------------------------------------------------------------- //
// Copyright (C) 2001-2003  Anéma Formation  <http://www.anema.fr/>          //
// ------------------------------------------------------------------------- //
//            Developer : Georges CALDEIRA <gcaldeira@anemalab.org>          //
// ------------------------------------------------------------------------- //
//               Infos on project <http://anemalab.org/>                     //
// ------------------------------------------------------------------------- //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
// ------------------------------------------------------------------------- //

/**
* Page question du profil tuteur
*
* @author	Georges Caldeira <gcaldeira@anemalab.org>
* @package	GaneshaCommun
*/
	/**
	* include des fichiers + verification de la cnx
	*/
	include_once("anema.inc.php");

	$prenom = $ClsMembre->GetPrenom($guserid)	;
	$nom    = $ClsMembre->GetNom($guserid)		;
	$mail   = $ClsMembre->GetEmail($guserid)	;
	$login  = $ClsMembre->GetLogin($guserid)	;

	InitPageHtml()			;
	Title($tu_titre['contact'])	;
?>
<TABLE cellSpacing="0" cellPadding="0" height="100%" width="100%" align="right" border="0" vspace="0" hspace="0" >
  <TR>
    <TD width="20%" valign="top">&nbsp;</TD>
    <TD width="80%" valign="top">
	<TABLE cellSpacing=0 cellPadding=5 width="100%" align="right" border="0">
		<TR>
		  <TD>
		  <p>&nbsp;</p>
		  <form action="<?PHP echo HTTP_COMMUN ?>mail2admin<?PHP echo $ext ?>?connexion=<?PHP echo $connexion ?>" method="post" enctype="multipart/form-data">
		  <table width="80%" border="0" cellpadding="3" align="center"  bgColor="<?PHP echo $color3 ?>">
			<tr>
			  <td colspan="2" align="center" class="title2" bgColor="<?PHP echo $color2 ?>"><?PHP echo $tu_titre['sendmess']?></td>
			 </tr>
			 <tr>
			  <td><?PHP echo $tu_form['nom']?></td>
			  <td>
			  <input type="text" class="input" name="nom" value="<?echo Unreplace($nom) ?>" size="20"></td>
			 </tr>
			 <tr>
			  <td><?PHP echo $tu_form['prenom']?></td>
			  <td><input type="text" class="input" name="prenom" value="<?echo Unreplace($prenom) ?>" size=20></td>
			 </tr>
			 <tr>
			  <td><?PHP echo $tu_form['email']?></td>
			  <td><input type="text" class="input" name="email" value="<?PHP echo Unreplace($mail)?>" size=30></td>
			  </tr>
			 <tr>
			  <td><?PHP echo $tu_form['sujet']?></td>
			  <td><input type="text" class="input" name="subject" size=30></td>
			  </tr>
			  <tr>
				<td valign="top"><?PHP echo $tu_form['votremess']?></td>
				<td><textarea name="message" cols="35" rows="10" wrap="virtual"></textarea></td>
			   </tr>
<?PHP
if ( OPT_UPLOAD_ACTIVE ) {
	put('
			   <tr>
				<td>'.$tu_form['selectfichier'].'</td>
				<td>
				  <input type="hidden" name="MAX_FILE_SIZE" value="'.MAX_FILE_SIZE.'">
				  <input type="file" class="bouton" name="fichier" size="30" maxlength="80">
				  </td>
				</tr>');
} else {
	put ('<tr><td><input type="hidden" name="fichier" value="none"></td></tr>');
}
?>
				<tr>
				<td><input type="reset" class="bouton"  name="reset" value="<?PHP echo $tu_form['effacer']?>"></td>
				<td align="right"><input type="button" class="bouton" name="OK" value="<?PHP echo $tu_form['envoyer']?>" onclick="ValiderFormQuestion(this.form);"></td>
				</tr>
		  </table>
		</form>
		</td>
		</tr>
	</table>
	</TD>
	</TR>
	<TR>
      <TD width="20%" height="50">&nbsp;</TD>
      <TD width="80%" height="50"><?PHP Footer();?></TD>
	<TR>
</TABLE>
</BODY>
</HTML>