59 lines
1.3 KiB
PHP
Executable File
59 lines
1.3 KiB
PHP
Executable File
<?php
|
|
session_start();
|
|
|
|
$idprod=$HTTP_GET_VARS["idprod"];
|
|
$idfamille=$HTTP_GET_VARS["idfamille"];
|
|
$idcateg=$HTTP_GET_VARS["idcateg"];
|
|
|
|
?>
|
|
|
|
<html>
|
|
<head>
|
|
<title>
|
|
Tarif de location Produit
|
|
</title>
|
|
<link href="../style.css" rel="stylesheet" type="text/css">
|
|
<style type="text/css">
|
|
<!--
|
|
.style1 {font-size: small}
|
|
.style2 {font-size: x-small}
|
|
-->
|
|
</style>
|
|
</head>
|
|
<SCRIPT>
|
|
function FermeFenetre() {
|
|
window.close(); }
|
|
</SCRIPT>
|
|
<body class="bgcolor">
|
|
|
|
<?php
|
|
require ("../connexion.php");
|
|
$conn = mysql_connect($host, $user, $password);
|
|
mysql_select_db($bdd) or die("Impossible d'ouvrir la base de donnee $bdd");
|
|
|
|
$requete = "select denomination,location from produit where idprod='$idprod'";
|
|
$result=mysql_query($requete) or die ("Erreur SQL :$requete1<br>".mysql_error()."...");
|
|
|
|
while($ligne = mysql_fetch_row($result))
|
|
{
|
|
$nomprod=$ligne[0];
|
|
$location=$ligne[1];
|
|
}
|
|
?>
|
|
<p><br>
|
|
<span class="style1"><br>
|
|
<span class="style2">Nom produit :<strong> <?php print $nomprod?> </strong><br>
|
|
Tarif de location :<strong> <?php print $location?>
|
|
</strong></span><br>
|
|
<br>
|
|
</span></p>
|
|
<p><br>
|
|
</p>
|
|
<FORM>
|
|
<INPUT type="button"
|
|
value="Fermer cette fenêtre"
|
|
onClick="FermeFenetre()">
|
|
</FORM>
|
|
</body>
|
|
</html>
|