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
|
<table>
<caption> Carriere</caption>
<tr>
<th>mois</th>
<th>année</th>
<th>Catégorie</th>
<th> Echelon</th>
</tr>
<?php
while($carriere1=mysql_fetch_array($carriere))
{
echo '<tr>
<td align=CENTER>'.$carriere1['mois'].' </td>
<td align=CENTER>'. $carriere1['annee'].' </td>
<td align=CENTER>'.$carriere1['categorie'].' </td>
<td align=CENTER>'.$carriere1['echelon'].' </td>
</tr>';
}
?>
</table>
........
<table>
<caption>Simulation de la carriere </caption>
<tr>
<th>mois</th>
<th>année</th>
<th>Catégorie</th>
<th> Echelon</th>
</tr>
<?php
$cat_entree=$_POST['cat'];
$ech_entree=$_POST['ech'];
$a_sortie=$_POST['annee'];
/// REVOIR POUR UTILISER LE NUMERO
$req3 = mysql_query( "SELECT numero FROM ponctcd WHERE cat_crtv = '".$cat_entree."' AND ech_crtv = '".$ech_entree."'");
$resul2= mysql_fetch_array($req3);
$num= $resul2['numero'];
$num1=$num+1;
//$req6 = mysql_query( "SELECT * FROM ponctcd WHERE numero= $num1");
?>
<?php
while($a<=$a_sortie)
{
$req5 = mysql_query( "SELECT * FROM ponctcd WHERE numero= $num");
while($resul3= mysql_fetch_array($req5))
{
$cat_entree=$resul3['cat_crtv'];
$ech_entree=$resul3['ech_crtv'];
$valeur= $resul3['Sal_base crtv'];
//mettre la condition pour tenir compte de la baisse de salaire lors de reclassement
//if (I
echo '<tr>
<td align=CENTER>'.$mois2.' </td>
<td align=CENTER>'. $a.' </td>
<td align=CENTER> '.$cat_entree.'</td>
<td align=CENTER> '.$ech_entree.'</td>
<br/>
</tr>';
}
$a=$a+2;
$num=$num+1;
}
?> |
Partager