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
|
<script type="text/javascript">
function Reporter(l) {
var choix=l.options[l.options.selectedIndex].value;
window.opener.document.forms["formulaire"].elements["focus"].value=choix;
window.close();
}
</script>
<body>
<?php
include('../connection.inc');
$sscategorie= $_POST['sscategorie'];
print $sscatgorie;
//requète sql
$req = $pdo->query('SELECT * from article where RETRAITART = 0 order by 1 asc');
?>
<center>
<!-- style permet la mise en page du tableau -->
<fieldset>
<h3>Liste des procédures</h3>
<hr style="color:#000000">
<table style="border-collapse:collapse" width="99%">
<tr width="100%">
<form name="form" method="POST" >
<select name="choix" id="choix" onchange="Reporter(this)" style="margin: 5% 5% 5%">
<option selected="selected">--- Choisir article ---</option>
<?php
While ($sql = $req->fetch())
{
?>
<option value="<?php print "Art.".$sql['IDART']." -- ".$sql['TITREART']; ?>"><?php print $aff = $sql['TITREART']; ?></option>
<?php
}
?>
</select>
</form>
</tr>
</table>
</fieldset>
</center> |
Partager