alut,
le tuc est qu'il n'y a pas de formulaire dans ma page! :shock:
en effet voici le code:[php]<?php require_once('../../Connections/ateliermeca.php'); ?>
<?php require_once('../../Connections/ateliermeca.php'); ?>
<?php
mysql_select_db($database_ateliermeca, $ateliermeca);
$query_registreselect = "SELECT ID, NumDossier, Cloture FROM registre WHERE Cloture = 'non' ORDER BY NumDossier ASC";
$registreselect = mysql_query($query_registreselect, $ateliermeca) or die(mysql_error());
$row_registreselect = mysql_fetch_assoc($registreselect);
$totalRows_registreselect = mysql_num_rows($registreselect);
$colname_registredetails = "0";
if (isset($_GET['numselect'])) {
$colname_registredetails = (get_magic_quotes_gpc()) ? $_GET['numselect'] : addslashes($_GET['numselect']);
}
mysql_select_db($database_ateliermeca, $ateliermeca);
$query_registredetails = sprintf("SELECT registre.NumDossier, registre.NumOT, registre.NumPompe, marques.Marques, models.Models, secteurs.Secteurs, urgences.Niveau FROM registre, marques, models, secteurs, urgences WHERE (registre.ID = '%s') AND (registre.Marques=marques.ID) AND (registre.Models=models.ID) AND (registre.Secteur=secteurs.ID) AND (registre.Urgence=urgences.ID) ORDER BY NumDossier ASC", $colname_registredetails);
$registredetails = mysql_query($query_registredetails, $ateliermeca) or die(mysql_error());
$row_registredetails = mysql_fetch_assoc($registredetails);
$totalRows_registredetails = mysql_num_rows($registredetails);
$colname_registreMc = "1";
if (isset($_GET['numselect'])) {
$colname_registreMc = (get_magic_quotes_gpc()) ? $_GET['numselect'] : addslashes($_GET['numselect']);
}
mysql_select_db($database_ateliermeca, $ateliermeca);
$query_registreMc = sprintf("SELECT points.Numdossier, points.Points, operations.Description, zones.Zones FROM points, operations, zones WHERE (points.Numdossier = '%s') and (points.Zones=1) AND (points.Operations=operations.ID) AND (points.Zones=zones.ID) ORDER BY points.Operations ASC", $colname_registreMc);
$registreMc = mysql_query($query_registreMc, $ateliermeca) or die(mysql_error());
$row_registreMc = mysql_fetch_assoc($registreMc);
$totalRows_registreMc = mysql_num_rows($registreMc);
$colname_registreUs = "1";
if (isset($_GET['numselect'])) {
$colname_registreUs = (get_magic_quotes_gpc()) ? $_GET['numselect'] : addslashes($_GET['numselect']);
}
mysql_select_db($database_ateliermeca, $ateliermeca);
$query_registreUs = sprintf("SELECT points.Numdossier, points.Points, operations.Description, zones.Zones FROM points, operations, zones WHERE (points.Numdossier = '%s') and (points.Zones=2) AND (points.Operations=operations.ID) AND (points.Zones=zones.ID) ORDER BY points.Operations ASC", $colname_registreUs);
$registreUs = mysql_query($query_registreUs, $ateliermeca) or die(mysql_error());
$row_registreUs = mysql_fetch_assoc($registreUs);
$totalRows_registreUs = mysql_num_rows($registreUs);
$colname_registreFo = "1";
if (isset($_GET['numselect'])) {
$colname_registreFo = (get_magic_quotes_gpc()) ? $_GET['numselect'] : addslashes($_GET['numselect']);
}
mysql_select_db($database_ateliermeca, $ateliermeca);
$query_registreFo = sprintf("SELECT points.Numdossier, points.Points, operations.Description, zones.Zones FROM points, operations, zones WHERE (points.Numdossier = '%s') and (points.Zones=3) AND (points.Operations=operations.ID) AND (points.Zones=zones.ID) ORDER BY points.Operations ASC", $colname_registreFo);
$registreFo = mysql_query($query_registreFo, $ateliermeca) or die(mysql_error());
$row_registreFo = mysql_fetch_assoc($registreFo);
$totalRows_registreFo = mysql_num_rows($registreFo);
$colname_regsitretotalH = "0";
if (isset($_GET['numselect'])) {
$colname_regsitretotalH = (get_magic_quotes_gpc()) ? $_GET['numselect'] : addslashes($_GET['numselect']);
}
mysql_select_db($database_ateliermeca, $ateliermeca);
$query_regsitretotalH = sprintf("SELECT SUM(actions.Duree) FROM actions WHERE actions.Numdossier='%s'", $colname_regsitretotalH);
$regsitretotalH = mysql_query($query_regsitretotalH, $ateliermeca) or die(mysql_error());
$row_regsitretotalH = mysql_fetch_assoc($regsitretotalH);
$totalRows_regsitretotalH = mysql_num_rows($regsitretotalH);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="../../Templates/registre.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Registre: FDT</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" -->
<link href="../../Templates/titre_zone.css" rel="stylesheet" type="text/css">
<!-- InstanceEndEditable -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="style_entete.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-image: url(../../Model/bg_grad.jpg);
}
-->
</style>
<link href="menu_gauche.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Style1 {font-size: 24px}
.texte {
font-family: Arial, Helvetica, sans-serif;
color: #FF0000;
}
.Style2 {font-size: 14px}
.Style9 {color: #F2F2F2}
-->
</style>
</head>
<body>
<div id="Layer3" style="position:absolute; left:14px; top:10px; width:170px; height:23px; z-index:2; visibility: visible; font-style: italic; color: #FF0000; font-weight: bold;">
<div align="center" class="Style1"><a href="../sommaire.php">PONTICELLI</a></div>
</div>
<div id="Navhaut" style="position:absolute; left:11px; top:46px; width:1023px; height:15px; visibility: visible; z-index: 2;"><img src="../../Model/gblnav_left.gif" width="5" height="32"><a href="registregeneral.php"><img src="../../Model/glbnav_background.gif" width="165" height="32" border="0"></a><img src="../../Model/glbnav_background2.gif" width="4" height="32"><a href="../Expertise/expertisegeneral.php"><img src="../../Model/glbnav_background.gif" width="165" height="32" border="0"></a><img src="../../Model/glbnav_background2.gif" width="4" height="32"><a href="../Actions/actionsgeneral.php"><img src="../../Model/glbnav_background.gif" width="165" height="32" border="0"></a><img src="../../Model/glbnav_background2.gif" width="4" height="32"><a href="../FDT/fdtgeneral.php"><img src="../../Model/glbnav_background.gif" width="165" height="32" border="0"></a><img src="../../Model/glbnav_background2.gif" width="4" height="32"><a href="../Modifbasesannexes/mbageneral.php"><img src="../../Model/glbnav_background.gif" width="165" height="32" border="0"></a><img src="../../Model/glbnav_background2.gif" width="4" height="32"><a href="../Statistiques/statistiquegeneral.php"><img src="../../Model/glbnav_background.gif" width="165" height="32" border="0"></a><img src="../../Model/glbnav_right.gif" width="5" height="32"></div>
<div id="GestOT" style="position:absolute; left:21px; top:53px; width:159px; height:21px; z-index:3; visibility: visible;" class="entete">
<div align="center" class="entete">REGISTRE</div>
</div>
<div id="Layer1" style="position:absolute; left:187px; top:95px; width:841px; height:510px; z-index:4"><!-- InstanceBeginEditable name="zone" -->
<p class="titrezone">Cloture de dossier </p>
<form name="form1" method="get" action="registrefdt.php">
<select name="numselect" id="numselect">
<?php
do {
?>
<option value="<?php echo $row_registreselect['ID']?>"><?php echo $row_registreselect['NumDossier']?></option>
<?php
} while ($row_registreselect = mysql_fetch_assoc($registreselect));
$rows = mysql_num_rows($registreselect);
if($rows > 0) {
mysql_data_seek($registreselect, 0);
$row_registreselect = mysql_fetch_assoc($registreselect);
}
?>
</select>
<input type="submit" name="Submit" value="AFFICHER">
</form>
<table width="844" border="0">
<tr>
<th width="400" scope="col"><div align="left">Numéro de dossier : <?php echo $row_registredetails['NumDossier']; ?></div></th>
<th width="44" scope="col"> </th>
<th width="400" scope="col"><div align="right">Numéro de la pompe:<?php echo $row_registredetails['NumPompe']; ?> </div></th>
</tr>
<tr>
<td><div align="left">Numéro d'OT:<strong><?php echo $row_registredetails['NumOT']; ?></strong></div></td>
<td> </td>
<td><div align="right">Model: <strong><?php echo $row_registredetails['Marques']; ?></strong>-<strong><?php echo $row_registredetails['Models']; ?></strong> </div></td>
</tr>
<tr>
<td>Provenance: <strong><?php echo $row_registredetails['Secteurs']; ?></strong></td>
<td> </td>
<td><div align="right">Niveau d'urgence: <strong><?php echo $row_registredetails['Niveau']; ?></strong></div></td>
</tr>
</table>
<br>
<table height="135" border="0">
<tr>
<th width="260" scope="col">OPERATIONS MECANIQUES </th>
<th width="20" scope="col"> </th>
<th width="260" scope="col">OPERATIONS USINAGE </th>
<th width="27" scope="col"> </th>
<th width="260" scope="col">FOURNITURES & DIVERS </th>
</tr>
<tr>
<td width="260" height="65" valign="top"><table border="1">
<tr>
<td width="160"><div align="center"><strong>Operations</strong></div></td>
<td width="50"><div align="center"><strong>Zones</strong></div></td>
<td width="50"><div align="center"><strong>Points</strong></div></td>
</tr>
<?php
$total_dureeMc='';
do { ?> <tr>
<td width="160"><div align="center"><?php echo $row_registreMc['Description']; ?></div></td>
<td width="50"><div align="center"><?php echo $row_registreMc['Zones']; ?></div></td>
<td width="50"><div align="center"><?php echo $row_registreMc['Points']; ?></div></td>
</tr>
<?php
$total_dureeMc+=$row_registreMc['Points'];
} while ($row_registreMc = mysql_fetch_assoc($registreMc)); ?> </table>
<div align="right"><br>
TOTAL des points Mc :<strong><?php echo $total_dureeMc ?></strong></div></td>
<td width="20"> </td>
<td width="260" valign="top">
<table border="1">
<tr>
<td width="160"><div align="center"><strong>Operations</strong></div></td>
<td width="50"><div align="center"><strong>Zones</strong></div></td>
<td width="50"><div align="center"><strong>Points</strong></div></td>
</tr>
<?php
$total_dureeUs='';
do { ?> <tr>
<td width="160"><div align="center"></div>
<?php echo $row_registreUs['Description']; ?></td>
<td width="50"><div align="center"><?php echo $row_registreUs['Zones']; ?></div></td>
<td width="50"><div align="center"><?php echo $row_registreUs['Points']; ?></div></td>
</tr>
<?php
$total_dureeUs+=$row_registreUs['Points'];
} while ($row_registreUs = mysql_fetch_assoc($registreUs)); ?> </table>
<div align="right"><br>
TOTAL des points Us : <strong><?php echo $total_dureeUs ?></strong></div></td>
<td width="27"> </td>
<td width="260" valign="top">
<table border="1">
<tr>
<td width="160"><div align="center"><strong>Operations</strong></div></td>
<td width="50"><div align="center"><strong>Zones</strong></div></td>
<td width="50"><div align="center"><strong>Points</strong></div></td>
</tr>
<?php
$total_dureeFo='';
do { ?> <tr>
<td width="160"><div align="center"><?php echo $row_registreFo['Description']; ?></div></td>
<td width="50"><div align="center"><?php echo $row_registreFo['Zones']; ?></div></td>
<td width="50"><div align="center"><?php echo $row_registreFo['Points']; ?></div></td>
</tr>
<?php
$total_dureeFo+=$row_registreFo['Points'];
} while ($row_registreFo = mysql_fetch_assoc($registreFo)); ?>
</table>
<div align="right"><br>
TOTAL des points Fo : <strong><?php echo $total_dureeFo ?></strong></div></td>
</tr>
<tr>
<td height="24" colspan="5"><?php $total=$total_dureeMc+$total_dureeFo+$total_dureeUs?> <div align="center"><strong>Total des points de dossier: <?php echo $total=$total_dureeMc+$total_dureeFo+$total_dureeUs?> <br>
Total des heures: <?php echo $row_regsitretotalH['SUM(actions.Duree)']; ?></strong></div></td>
</tr>
</table>
<p> </p>
<!-- InstanceEndEditable --></div>
<div id="fondblanc" style="position:absolute; left:12px; top:88px; width:1021px; height:521px; z-index:2; background-color: #F2F2F2; layer-background-color: #F2F2F2; border: 1px none #000000;"></div>
<div id="hautgauche" style="position:absolute; left:12px; top:88px; width:169px; height:11px; z-index:3"><img src="../../Model/tl_curve_white.gif" width="6" height="6"></div>
<div id="Layer4" style="position:absolute; left:941px; top:88px; width:92px; height:13px; z-index:5">
<div align="right"><img src="../../Model/tr_curve_white.gif" width="6" height="6"></div>
</div>
<div id="Layer5" style="position:absolute; left:184px; top:95px; width:3px; height:511px; z-index:6; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;"></div>
<div id="Layer10" style="position:absolute; left:681px; top:19px; width:352px; height:18px; z-index:11; font-size: 10px; color: #FFFFFF;">
<p align="right" class="Style2">I <a href="../Recherche/recherchegeneral.php">RECHERCHE</a> I <a href="../Amelioration/ameliogeneral.php">AMELIORATIONS</a> I <a href="mailto:
[email protected]">CONTACTS</a> I</p>
</div>
<div id="Layer11" style="position:absolute; left:186px; top:53px; width:164px; height:21px; z-index:12" class="entete">EXPERTISE</div>
<div id="Layer12" style="position:absolute; left:354px; top:53px; width:165px; height:21px; z-index:13" class="entete">ACTIONS</div>
<div id="Layer13" style="position:absolute; left:522px; top:53px; width:166px; height:21px; z-index:14" class="entete">FDT</div>
<div id="Layer14" style="position:absolute; left:692px; top:53px; width:164px; height:21px; z-index:15" class="entete">Modif bases annexes</div>
<div id="Layer15" style="position:absolute; left:860px; top:53px; width:163px; height:21px; z-index:16" class="entete">STATISTIQUES</div>
<div id="gauche" style="position:absolute; left:16px; top:93px; width:167px; height:190px; z-index:20"><!-- InstanceBeginEditable name="gauche" -->
<div id="Layer16" style="position:absolute; left:1px; top:17px; width:163px; height:25px; z-index:2"><img src="../../Model/gblnav_leftbleu.jpg" width="5" height="25"><a href="registregeneral.php"><img src="../../Model/glbnav_backgroundbleu.jpg" width="153" height="25" border="0"></a><img src="../../Model/glbnav_rightbleu.jpg" width="5" height="25"></div>
<p> </p>
<div id="Layer16" style="position:absolute; left:1px; top:46px; width:163px; height:25px; z-index:2"><img src="../../Model/gblnav_leftbleu.jpg" width="5" height="25"><a href="registreconsult.php"><img src="../../Model/glbnav_backgroundbleu.jpg" width="153" height="25" border="0"></a><img src="../../Model/glbnav_rightbleu.jpg" width="5" height="25"></div>
<div id="Layer6" style="position:absolute; left:9px; top:51px; width:145px; height:18px; z-index:3" class="menu_gauche">
<p>Consultation</p>
</div>
<p> </p>
<div id="Layer16" style="position:absolute; left:1px; top:76px; width:163px; height:25px; z-index:2">
<h2><img src="../../Model/gblnav_leftbleu.jpg" width="5" height="25"><a href="registreajout.php"><img src="../../Model/glbnav_backgroundbleu.jpg" width="153" height="25" border="0"></a><img src="../../Model/glbnav_rightbleu.jpg" width="5" height="25"></h2>
</div>
<div id="Layer6" style="position:absolute; left:8px; top:111px; width:145px; height:18px; z-index:3" class="menu_gauche">
<p>Suppression</p>
</div>
<p> </p>
<div id="Layer16" style="position:absolute; left:1px; top:106px; width:163px; height:25px; z-index:2"><img src="../../Model/gblnav_leftbleu.jpg" width="5" height="25"><a href="registresupp.php"><img src="../../Model/glbnav_backgroundbleu.jpg" width="153" height="25" border="0"></a><img src="../../Model/glbnav_rightbleu.jpg" width="5" height="25"></div>
<div id="Layer6" style="position:absolute; left:9px; top:81px; width:145px; height:18px; z-index:3" class="menu_gauche">
<p>Nouveau dossier </p>
</div>
<p> </p>
<div id="Layer6" style="position:absolute; left:9px; top:21px; width:145px; height:18px; z-index:3" class="menu_gauche">
<p>Sommaire</p>
</div>
<div id="Layer16" style="position:absolute; left:1px; top:136px; width:163px; height:25px; z-index:2"><img src="../../Model/gblnav_leftbleu.jpg" width="5" height="25"><a href="registrefdt.php"><img src="../../Model/glbnav_backgroundbleu.jpg" width="153" height="25" border="0"></a><img src="../../Model/glbnav_rightbleu.jpg" width="5" height="25"></div>
<div id="Layer6" style="position:absolute; left:8px; top:140px; width:145px; height:18px; z-index:3" class="menu_gauche">
<p>FDT</p>
</div>
<div id="Layer16" style="position:absolute; left:1px; top:166px; width:163px; height:25px; z-index:2"><img src="../../Model/gblnav_leftbleu.jpg" width="5" height="25"><a href="registrereprise.php"><img src="../../Model/glbnav_backgroundbleu.jpg" width="153" height="25" border="0"></a><img src="../../Model/glbnav_rightbleu.jpg" width="5" height="25"></div>
<div id="Layer6" style="position:absolute; left:9px; top:172px; width:145px; height:18px; z-index:3" class="menu_gauche">
<p>Reprise /s garantie </p>
</div>
<p> </p>
<!-- InstanceEndEditable --></div>
<div id="Layer2" style="position:absolute; left:12px; top:603px; width:28px; height:6px; z-index:21"><img src="../../Model/ll_curve_white.gif" width="6" height="6"></div>
<div id="Layer7" style="position:absolute; left:1027px; top:603px; width:11px; height:9px; z-index:22"><img src="../../Model/lr_curve_white.gif" width="6" height="6"></div>
<div id="Layer8" style="position:absolute; left:46px; top:562px; width:130px; height:42px; z-index:23">
<p align="center"><span class="Style9">Réalisation:<br>
Fabrice M-B
</span><br>
</p>
</div>
</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($registreselect);
mysql_free_result($registredetails);
mysql_free_result($registreMc);
mysql_free_result($registreUs);
mysql_free_result($registreFo);
mysql_free_result($regsitretotalH);
?>
[/php]
Comme on peut le voir dans cette amas de lignes ;=), i y a une liste déroulante pour chosir le numéro du dossier , un boutton pour afficher les données du dossier choisi et c tout.
ou faudrait-il placer ta ligne de code ???
merci de votre aide,
FAb