1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <?php
echo"<TR><TH><h4><u>Operation:</U></h4></TH>";
$sqldb=mysql_select_db($sql_DB,$connexion);
$sqlquery="select * from TABLE";
$results=mysql_query($sqlquery);
echo"<TD><select name='operation' id='operation'><option value='-1'>Choisir une operation</option>";
while($ligne = mysql_fetch_array($results))
{
echo "<option value='".$ligne["id"]."'>".$ligne["libelle"]."</option>";
}
echo"</select></TD><TD>";
echo'<div id="test" style="visibility:visible">';
$sqlquery="select mailchef from glpi_operation where id=(VALUE DE LA LISTE DEROULANTE)";
$results= mysql_query($sqlquery);
$row=mysql_fetch_array($results);
addslashes($row['0']);
echo"<CENTER><h4><u>Mail du chef de vente:</U></h4></CENTER>";
echo"<CENTER><input type='text' name='mailchef' disabled='disabled' value='".$row['0']."'></CENTER>";
echo"</div></TD>";
?> |
Partager