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


echo"<style>
input {
border:0px 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;
}
input {
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=\"_parent\">
<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');


if(empty($include))
{
	$id = $_POST["id"];
}


$sql_info = "SELECT nom,img,description FROM matgraph_vaisseaux WHERE id='".intval($id)."' ";
$res_info = db_mysql_Query($sql_info)or die('erreur sql<br>'.$sql_info.'<br>'.mysql_error());
$row_info = mysql_fetch_array($res_info);
if(empty($include))
{
	$nom = $row_info[nom];
	$description = $row_info[description];
	$img = $row_info[img];
}
echo"
<script language=\"javascript\">

function affiche(i) {
formulaire.cadre.value = i;
}
function affiche_image(j) {

document.images.src = \"imgs/vaisseaux/\" + j + \".jpg\"
}
</script>
<br>
<form action=\"chantier_changename_action.php\" method=\"post\" target=\"_parent\">
<input type=\"hidden\" name=\"id\" value=\"$id\">
<table width=\"718\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#006600\">
  <tr>
    <td colspan=\"2\"><b><font color=\"23BC23\">Nom :</b><br><input type=\"text\" name=\"nom\" value=\"$nom\" size=\"40\" maxlength=\"40\"> 
      <br>
      <br><b><font color=\"23BC23\">
      Description :</b><br> 
      <input type=\"text\" name=\"description\" value=\"$description\" size=\"100\" maxlength=\"100\"></textarea>
    <br></td>
</tr>
<tr>
<td><select name=\"img\" Onchange=\"affiche_image(value);\">
<option value=\"1\"";if($row_info[img] == "1") { echo" selected";} echo">Dart</option>
<option value=\"2\"";if($row_info[img] == "2") { echo" selected";} echo">Al'Kesh</option>
<option value=\"3\"";if($row_info[img] == "3") { echo" selected";} echo">Vaisseau cargo</option>
<option value=\"4\"";if($row_info[img] == "4") { echo" selected";} echo">Vaisseau cargo2</option>
<option value=\"5\"";if($row_info[img] == "5") { echo" selected";} echo">Ha'tak</option>
<option value=\"6\"";if($row_info[img] == "6") { echo" selected";} echo">Promethé</option>
<option value=\"7\"";if($row_info[img] == "7") { echo" selected";} echo">Jumper</option>
<option value=\"8\"";if($row_info[img] == "8") { echo" selected";} echo">Anubis</option>
<option value=\"9\"";if($row_info[img] == "9") { echo" selected";} echo">Apophis</option>
<option value=\"10\"";if($row_info[img] == "10") { echo" selected";} echo">F-302</option>
<option value=\"11\"";if($row_info[img] == "11") { echo" selected";} echo">Ha'tak</option>
<option value=\"12\"";if($row_info[img] == "12") { echo" selected";} echo">Osiris</option>
<option value=\"13\"";if($row_info[img] == "13") { echo" selected";} echo">Planeur de la mort</option>
<option value=\"14\"";if($row_info[img] == "14") { echo" selected";} echo">Planeur modifié</option>
<option value=\"15\"";if($row_info[img] == "15") { echo" selected";} echo">Prométhé</option>
<option value=\"16\"";if($row_info[img] == "16") { echo" selected";} echo">Transport</option>
<option value=\"17\"";if($row_info[img] == "17") { echo" selected";} echo">Teltakray</option>
<option value=\"18\"";if($row_info[img] == "18") { echo" selected";} echo">X-302</option>
<option value=\"19\"";if($row_info[img] == "19") { echo" selected";} echo">Al'Kesh</option>
<option value=\"20\"";if($row_info[img] == "20") { echo" selected";} echo">Deadalus</option>
<option value=\"21\"";if($row_info[img] == "21") { echo" selected";} echo">Deadalus 1</option>
<option value=\"22\"";if($row_info[img] == "22") { echo" selected";} echo">Deadalus 2</option>
<option value=\"23\"";if($row_info[img] == "23") { echo" selected";} echo">Deadalus 3</option>
<option value=\"24\"";if($row_info[img] == "24") { echo" selected";} echo">Le char de Thor 2</option>
<option value=\"25\"";if($row_info[img] == "25") { echo" selected";} echo">Cargo Goa-uld</option>
<option value=\"26\"";if($row_info[img] == "26") { echo" selected";} echo">Vaisseau personnel d'osiris</option>
<option value=\"27\"";if($row_info[img] == "27") { echo" selected";} echo">alkesh en orbite</option>
<option value=\"28\"";if($row_info[img] == "28") { echo" selected";} echo">Beliskner</option>
<option value=\"29\"";if($row_info[img] == "29") { echo" selected";} echo">Le char de Thor</option>
<option value=\"30\"";if($row_info[img] == "30") { echo" selected";} echo">Planeur de la mort</option>
<option value=\"31\"";if($row_info[img] == "31") { echo" selected";} echo">F 302 Antartique</option>
<option value=\"32\"";if($row_info[img] == "32") { echo" selected";} echo">jumper en Egypte</option>
<option value=\"33\"";if($row_info[img] == "33") { echo" selected";} echo">jumper espace</option>
<option value=\"34\"";if($row_info[img] == "34") { echo" selected";} echo">Le daniel Jackson</option>
<option value=\"35\"";if($row_info[img] == "35") { echo" selected";} echo">Le O'Neill</option>
<option value=\"36\"";if($row_info[img] == "36") { echo" selected";} echo">Vaisseau Ha’tak 1</option>
<option value=\"37\"";if($row_info[img] == "37") { echo" selected";} echo">Planeur de la mort 2</option>
<option value=\"38\"";if($row_info[img] == "38") { echo" selected";} echo">Planeur de la Mort Modifié</option>
<option value=\"39\"";if($row_info[img] == "39") { echo" selected";} echo">Jumper</option>
<option value=\"40\"";if($row_info[img] == "40") { echo" selected";} echo">F-302 Torri</option>
<option value=\"41\"";if($row_info[img] == "41") { echo" selected";} echo">Jumper Atlantis</option>
<option value=\"42\"";if($row_info[img] == "42") { echo" selected";} echo">Flotte F-302</option>
<option value=\"43\"";if($row_info[img] == "43") { echo" selected";} echo">Deadalus</option>
<option value=\"44\"";if($row_info[img] == "44") { echo" selected";} echo">Deadalus en Propulsion</option>
<option value=\"45\"";if($row_info[img] == "45") { echo" selected";} echo">Deadalus Ciel</option>
<option value=\"46\"";if($row_info[img] == "46") { echo" selected";} echo">Prométhé en Orbite</option>
<option value=\"47\"";if($row_info[img] == "47") { echo" selected";} echo">Prométhé en manoeuvre</option>
<!--<option value=\"48\"";if($row_info[img] == "48") { echo" selected";} echo"></option>-->
<option value=\"49\"";if($row_info[img] == "49") { echo" selected";} echo">Prométhé en Orbite 2</option>
<option value=\"50\"";if($row_info[img] == "50") { echo" selected";} echo">vaisseau mère ASgard</option>
<option value=\"51\"";if($row_info[img] == "51") { echo" selected";} echo">Vaisseau Scientifique Asgard</option>
<option value=\"52\"";if($row_info[img] == "52") { echo" selected";} echo">Vaisseau blinder goa'ould </option>
<option value=\"53\"";if($row_info[img] == "53") { echo" selected";} echo">Réplicateur (Atterrisseur)</option>
<option value=\"54\"";if($row_info[img] == "54") { echo" selected";} echo">Vaisseau Ha’tak 2</option>
<option value=\"55\"";if($row_info[img] == "55") { echo" selected";} echo">Vaisseaux Asgard</option>
<option value=\"56\"";if($row_info[img] == "56") { echo" selected";} echo">Vaisseau Asgard</option>
<option value=\"57\"";if($row_info[img] == "57") { echo" selected";} echo">Prométhé</option>
<option value=\"58\"";if($row_info[img] == "58") { echo" selected";} echo">Prométhé et Dedale</option>
<option value=\"59\"";if($row_info[img] == "59") { echo" selected";} echo">Jumper</option>
<option value=\"60\"";if($row_info[img] == "60") { echo" selected";} echo">Vaisseaux Ruches</option>
<option value=\"61\"";if($row_info[img] == "61") { echo" selected";} echo">Dart</option>
<option value=\"62\"";if($row_info[img] == "62") { echo" selected";} echo">Dedale</option>
<option value=\"63\"";if($row_info[img] == "63") { echo" selected";} echo">Orion 1</option>
<option value=\"64\"";if($row_info[img] == "64") { echo" selected";} echo">Orion 2</option>
</select>
</td>
<td><br><IMG hspace=10 src='imgs/vaisseaux/$row_info[img].jpg' name=\"images\">
</td>
</tr>
  <tr>
    <td colspan=\"2\"><div align=\"center\"><br><input type=\"submit\" name=\"Submit\" value=\"Modifier\">
    </div></td>
  </tr>
  </table>";

?>

