<?
// ------------------------------------------------------------------------- //
// <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 inscription 1
*
* @author	Georges Caldeira <gcaldeira@anemalab.org>
* @package	GaneshaCommun
*/
	/**
	* include des fichiers PAS de verification de la cnx
	*/
	$verif_connexion = false	 ;
	include_once("anema.inc.php");
	
	$msg = '' ;
	
	if ( isset($HTTP_GET_VARS['action']) && urldecode($HTTP_GET_VARS['action'])=='inscription') {
		if ( $ClsInscription->codeExiste($code) ) {
			location(HTTP_COMMUN.'p_inscr2.php?code='.$HTTP_POST_VARS['code']);
			exit();
		} else {
			$msg = '<p class="error">Le code d\'inscription n\'est pas valide !</p>' ;
		}
	}

	LoadSkin("default") ;
	InitPageHtml('Inscription');
	
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr> 
    <td height="70" colspan="2"><img src="<?PHP echo HTTP_IMAGES?>inscr.jpg" width="780" height="83" usemap="#Map" border="0" alt="GANESHA"></td>
  </tr>
</table>
<center>
<?PHP print($msg); ?>
<form action="p_inscr.php?action=inscription" method="post" >
<table width="60%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
  <td class="s_titre">Entrer le code fourni par votre tuteur<br><br></td>
 </tr>
 <tr><td><input class="bouton" type="text" name="code" size="40" VALUE="" ></td>
 </tr>
 <tr>
  <td><br><input type="button" class="bouton" name="OK" value="<?PHP echo $st_form['envoyer']?>" onclick="verifcode(this.form);"></td>
  </tr>
</table>
</form>
</center>
<?PHP BR(15);?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr> 
    <td colspan="2"><img src="<?PHP echo HTTP_IMAGES?>conception.gif"conception.gif" width="780" height="59" usemap="#Map2" border="0" alt="GANESHA"></td>
  </tr>
</table>

<map name="Map"> 
  <area shape="rect" coords="15,59,76,74" href="../../intro/index.php" target="_parent" alt="Accueil" title="Accueil">
  <area shape="rect" coords="485,59,639,75" href="http://www.anemalab.org" target="_blank" alt="Site support" title="Site support">
</map>
<map name="Map2"> 
  <area shape="rect" coords="550,4,768,57" href="http://www.anema-formation.fr" target="_blank" alt="Anema formation" title="Anema formation">
</map>
<?PHP
	ClosePageHtml();
?>