1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
| <?php
include ("php_cnx.inc.php");
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Devis - Ajout de photos </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="menu_achat.css" />
<center><img src="imag/haut.jpeg" width="995" height="67"></center><br />
</head>
<body>
<script language="javascript">
function loadDevisAff()
{
document.forms.formAff.submit();
}
function loadDevisOf()
{
document.forms.formOf.submit();
}
</script>
<strong>
<center>
<table>
<form name="formAff" action="devis_addFoto_aff.php" method="post">
<tr align="left">
<td align="left">
Veuillez sélectionner une affaire :
</td>
<td>
<select name="selAff" onchange="loadDevisAff()">
<?php
$rqAff = "SELECT num_aff FROM of GROUP BY num_aff ORDER BY num_aff";
$resAff = odbc_exec($devis, $rqAff);
while(odbc_fetch_array($resAff))
{
$numAff = odbc_result($resAff, "num_aff");
if ($numAff == $_SESSION['aff'])
echo '<option selected="selected">'.$numAff.'</option>';
else
echo '<option>'.$numAff.'</option>';
}
?>
</select>
</td>
</tr>
</form>
<form name="formOf" action="devis_addFoto_of.php" method="post">
<tr align="left">
<td align="left">
Veuillez sélectionner une of :
</td>
<td>
<select name="selOf" onchange="loadDevisOf()">
<?php
$rqOf = "SELECT num_of FROM of WHERE num_aff = '".$_SESSION['aff']."'";
$resOf = odbc_exec($devis, $rqOf);
while(odbc_fetch_array($resOf))
{
$numOf = odbc_result($resOf, "num_of");
if ($numOf == $_SESSION['of'])
echo '<option selected="selected">'.$numOf.'</option>';
else
echo '<option>'.$numOf.'</option>';
}
?>
</select>
</td>
</tr>
</form>
<tr align="left">
<td>
Veuillez sélectionner un composant :
</td>
<td>
<select name="selComp">
<?php
$rqComp = "SELECT code_comp FROM composant WHERE num_of ='".$_SESSION['of']."'";
$resComp = odbc_exec($devis, $rqComp);
while(odbc_fetch_array($resComp))
{
$codeComp = odbc_result($resComp, "code_comp");
echo '<option>'.$codeComp.'</option>';
}
?>
</select>
</td>
</tr>
</table>
<form method="post" action="devis_menu.php">
<input type="submit" value="RETOUR" style="width:15%" />
</form>
</center>
</strong>
</body>
</html> |
Partager