<?php

// DETECTION SESSION

	session_start();

	if(isset($_SESSION['entreprise']['session']) && $_SESSION['entreprise']['session'] == 1){
		Header("Location: /espace_personnel/entreprises/accueil/");
		exit();
	}

// CAPTCHA

	$cryptinstall= "../php/crypt/cryptographp.fct.php";
	include $cryptinstall; 

// LIBRAIRIES

	require($_SERVER['DOCUMENT_ROOT'].'/site/config/php/lib.inc.php');
	require($_SERVER['DOCUMENT_ROOT'].'/site/config/php/var.inc.php');
	require($_SERVER['DOCUMENT_ROOT'].'/espace_personnel/php/lib.php');
	require($_SERVER['DOCUMENT_ROOT'].'/espace_personnel/php/var.php');

?>

<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" lang="en-US" prefix="og: http://ogp.me/ns#">
<![endif]-->
<!--[if IE 7]>
<html id="ie7" lang="en-US" prefix="og: http://ogp.me/ns#">
<![endif]-->
<!--[if IE 8]>
<html id="ie8" lang="en-US" prefix="og: http://ogp.me/ns#">
<![endif]-->
<!--[if IE 9]>
<html id="ie9" lang="en-US" prefix="og: http://ogp.me/ns#">
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html lang="fr">
<!--<![endif]-->
	<title>Espace Entreprises - Cnam Réunion</title>
	<meta charset="UTF-8" />

	<link href='http://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic' rel='stylesheet' type='text/css'>
	<link rel='stylesheet' media='screen' type='text/css' href='/espace_personnel/css/style.css'/>

	<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
	<script src="/espace_personnel/js/masque.js"></script>

	<style>label{width:200px;}h1{text-align:center;border-bottom:1px dotted #c1002a;padding-bottom:5px;margin-top:10px;}</style>

</head>

<body>

<div class="page-mini">
	
	<img src="/espace_personnel/images/logo-cnam.png" alt="Le Cnam Réunion" style="width:300px;margin:0 0 30px 150px;"/>
	
	<form class="valid_form" action="inscription_insert.php" method="POST">
	
		<h1>INFORMATIONS</h1>

		<label>* Nom de l'entreprise : </label>
			<input type="text" name="nom" size="30" maxlength="255"  required="required"/><br><br>

		<label>* Secteur d'activité : </label>
			<?php echo $_SELECT['select']['secteur_activite'];?><br><br>

		<label>* Taille de l'entreprise : </label>
			<?php echo $_SELECT['select']['taille_entreprise'];?><br><br>

		<label>* Adresse : </label>
			<input type="text" name="adresse" size="40" maxlength="255" required="required"/><br><br>

		<label>* Commune : </label>
			<?php echo $_SELECT['select']["commune_cedex"]?><br><br>


		<h1>CONTACT</h1>

		<label>* Civilité : </label>
			<select style="width:100px;" name="contact_civilite">
				<option value="Mr">Mr</option>
				<option value="Mme">Mme</option>
				<option value="Mlle">Mlle</option>				
			</select><br><br>

		<label>* Nom : </label>
			<input type="text" name="contact_nom" id="nom" size="20" maxlength="30" required="required"/> <br><br>

		<label>* Prénom :</label>
			<input type="text" name="contact_prenom" id="prenom" size="20" maxlength="30" required="required"/> <br><br>

		<label>* Fonction :</label>
			<input type="text" name="contact_fonction" id="contact_fonction" size="25" maxlength="30" required="required"/><br><br>

		<label>* Service :</label>
			<input type="text" name="contact_service" id="contact_service" size="25" maxlength="30" required="required"/><br><br>

		<label>* Téléphone : </label>
			<input type="text" name="contact_tel" size="14" maxlength="14" class="phone-mask" required="required"/><br><br>

		<label>* Adresse e-mail : </label>
			<input name="contact_mail" size="40" maxlength="30" required="required" type="email"/><br><br><br><br>

		<label style="width:200px" for="code">Recopier le code ci-dessous: </label>
			<input type="text" name="code" id="code"><br><br>
		<label></label><?php dsp_crypt(0,1); ?><br><br>
		<label></label>
			<input class="bloc bg-red" style="padding:10px 15px;float:none" type="submit" value="Valider" />
	</form>
</div>


<script>
	$(".valid_form").validator(
		position: 'top left',
		offset: [-9999, 9999],
		message: '<div><em/></div>' 
	);
</script>
<?php require($_SERVER['DOCUMENT_ROOT'].'/espace_personnel/inc/end.php');?>