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 131 132 133 134 135 136 137 138 139 140 141
|
<?php
session_start();
require_once 'mes_fonctions.php';
?>
<script language="javascript">
function controle3()
{
var a=document.livraison.bordero.value;
if (a=="")
{
alert(" Entrez un numero de bordereau! ");
document.livraison.bordero.focus();
}
else
document.livraison.submit();
}
</script>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('images/escale.JPG','images/expedition.JPG')"><div align="center">
<p><a href="escale.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('malivraison','','images/escale.JPG',1)"><img src="images/cup_coffee-48.png" name="malivraison" width="48" height="48" border="0" id="malivraison" /></a><a href="expedition.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','images/expedition.JPG',1)"><img src="images/Cute_Vehicle.png" name="Image2" width="57" height="60" border="0" id="Image2" /></a></p>
<p>LIVRAISON </p>
</div>
<form action="" method="post" id="formesc1" name="livraison">
<fieldset>
<legend> Recherche </legend>
<div align="center">
<table width="518" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="202"><label>Entrez un N° de Bordereau:</label></td>
<td width="144"><input type="text" name="bordero" id="bordero" /></td>
<td width="142"><input type="button" onClick="controle3()" name="bouton4" value="RECHERCHER"/></td>
</tr>
</table>
</div>
</fieldset>
<?php
if ($_POST){
$_SESSION['bordero']=$bordero;
connection_bd();
@$bordero=securiseChaineTxt($_POST['bordero']);
$query="SELECT * FROM bordereaux where bordereaux.num_be='$bordero'";
$query2="SELECT * FROM produits where produits.num_be='$bordero'";
$reponse=mysql_query($query2) or die (mysql_error());
$resultat=mysql_query($query) or die (mysql_error());
$affiche=mysql_fetch_array($resultat);
$ligne=mysql_num_rows($reponse);
?>
<br/>
<table width="773" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="96" bgcolor="#999999">Expédition</td>
<td colspan="7"> </td>
</tr>
<tr bgcolor="#CCCCCC">
<td><div align="center">N° Bordereau </div></td>
<td width="104"><div align="center">Provenance</div></td>
<td width="101"><div align="center">Destination</div></td>
<td width="76"><div align="center">Date départ </div></td>
<td width="91"><div align="center">Heure départ </div></td>
<td width="119"><div align="center">Expéditeur</div></td>
<td width="116"><div align="center">Destinataire</div></td>
<td width="116">Mise à jour </td>
</tr>
<tr bgcolor="#FFCC66">
<td bgcolor="#CCFFCC"><?php echo $affiche['num_be'];?></td>
<td bgcolor="#CCFFCC"><?php echo $affiche['provenance'];?></td>
<td bgcolor="#CCFFCC"><?php echo $affiche['destination'];?></td>
<td bgcolor="#CCFFCC"><?php echo $affiche['date_depart'];?></td>
<td bgcolor="#CCFFCC"><?php echo $affiche['heure_depart'];?></td>
<td bgcolor="#CCFFCC"><?php echo $affiche['nom_exp'];?></td>
<td bgcolor="#CCFFCC"><?php echo $affiche['nom_recep']; ?></td>
<td bgcolor="#CCFFCC"><?php echo " <a href=\" update_livraison.php?var=1 \"> modifier </a> "; ?> </td>
</tr>
</table>
<br/>
<table width="592" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="169" bgcolor="#999999">Détails de l'expédition</td>
<td colspan="2"> </td>
</tr>
<tr bgcolor="#CCCCCC">
<td><div align="center">Quantité</div></td>
<td width="213"><div align="center">Désignation</div></td>
<td width="180"><div align="center">Poids</div></td>
</tr>
<?php
while (@$display=mysql_fetch_array($reponse)){
?>
<tr bgcolor="#FFCC66">
<td height="28"><div align="center"><?php echo $display['qute'];?></div> </td>
<td><?php echo $display['designation']; ?></td>
<td><div align="center"><?php echo $display['poids']; }?> </div>
<div align="center"></div></td>
</tr>
</table>
<?php
}
?>
</form> |
Partager