<? 
include ('logue.php'); 
include ('entete3.php');
include ('entete.php');
include ('ressource.php');

if($idlogin !== "1") {
echo '<script language="javascript" type="text/javascript">
<!--
window.location.replace("apercu.php");
-->
</script>';
exit;
}

echo"
<style>
input {
border:1px solid #7E7E7E;
background-color:#000000;
font-family:'trebuchet ms',sans-serif;
color:white;
}
textarea {
border:1px solid #7E7E7E;
background-color:#000000;
font-family:'trebuchet ms',sans-serif;
color:white;
}
select, option {
background-color:#000000;
color:white;
}
</style>
<STYLE TYPE=text/css>
.Style1 {color: #0000FF}
.Style2 {color: #FF0000}
</STYLE>";
echo"<div align=\"center\"><form name=\"colo\" method=\"post\" action=\"colonie.php\" target=\"principal\">
<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
   <tr>
     <td width=\"100\" rowspan=\"2\" valign=\"middle\">
       <div align=\"center\">
         <input name=\"page\" value=\"" . $PHP_SELF . "\" type=\"hidden\" id=\"page\">
         <select name=\"idcolo\" onchange=submit()>";
include ('colo2.php'); 

$sql = "SELECT design, vacance, login, mail , password , permmail FROM matgraph_users WHERE id='$idlogin'";
$res = db_mysql_Query($sql)or die('erreur sql<br>'.$sql.'<br>'.mysql_error());
$row = mysql_fetch_array($res); 
echo"<div align=\"center\"><form name=\"form1\" method=\"post\" action=\"prendrecompte_action.php\" target=\"_blank\">
  <table width=\"618\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bordercolor=\"#000000\" style=\"font-family:trebuchet ms,sans-serif; font-size: 9pt ;\">
    <tr style =\"background-color:#222222;\">
      <td colspan=\"2\"><div align=\"center\"><strong>Profil : </strong></div></td>
    </tr>
    <tr>
      <td width=\"58%\">Pseudo : </td>
      <td width=\"42%\"><input name=\"New_speudo\" type=\"text\" maxlength=\"15\" value=\"$row[login]\"></td>
    </tr>";
	/*
	echo"<tr>
      <td>Newslettre</td>
      <td align=\"left\">";
$req = "SELECT id FROM matgraph_newsletter WHERE adresse='$row[mail]' ORDER by id ASC";
$res = db_mysql_Query($req) or die('Erreur SQL! <br>'.$req.'<br>'.mysql_error());
$num = mysql_num_rows($res);

if($num > 0) {
echo"<a href=\"newsletter_desinscire.php\" target=\"_parent\">Se déinscrire</a>"; }
else {
echo"<a href=\"newsletter_inscire.php\" target=\"_parent\">S'inscrire</a>"; }

$inscrits = db_mysql_Query("SELECT COUNT(*) AS nbre_inscrits FROM matgraph_newsletter");

$nbre_inscrits = mysql_fetch_array($inscrits); 
echo ' (' . $nbre_inscrits['nbre_inscrits'] . ' inscrits)';
 echo"</td>
    </tr>";
	*/
    echo"<tr>
      <td height=\"41\" colspan=\"2\"><div align=\"center\">
        <input type=\"submit\" name=\"Submit\" value=\"Sauvegarder\">
      </div></td>
    </tr>
  </table>
</form></div>";
?>


